Native class
SGBANewAttributeVariableWidget#
class
SGBANewAttributeVariableWidget :
public SCompoundWidget
Slate widget to handle addition of a new Blueprint Attribute variable in Attribute Sets (used from Details customization)
Provides a form to specify variable name, description, replication condition, and so on...
Internal delegates#
-
public
Methods#
-
publicstatic boolAddMemberVariable(UBlueprint* InBlueprint,
const FString& InVarName,
const FEdGraphPinType& InPinType,
const FString& InDescription,
const bool bInIsReplicated -
voidConstruct(const FArguments& InArgs,
const TSharedPtr<FGBANewAttributeViewModel>& InViewModelConstructs this widget with InArgs
-
static voidReplicationOnRepFuncChanged(UBlueprint* InBlueprint,
const FString& InNewOnRepFunc,
const FName& InVarName -
inline
-
privateboolCanFinish() const
-
voidCloseWindow()
-
virtual FVector2DComputeDesiredSize(float InLayoutScaleMultiplier
-
TSharedPtr<INameValidatorInterface>CreateNameValidator() const
Creates an appropriate name validator
-
static FNameFindUniqueKismetName(const UBlueprint* InBlueprint,
const FString& InBaseName,
UStruct* InScope = nullptrWrapper on top of FBlueprintEditorUtils::FindUniqueKismetName
-
FReply
-
voidHandleDescriptionTextChanged(const FText& InText
-
voidHandleDescriptionTextCommitted(const FText& InText,
ETextCommit::Type InArg -
FReply
-
FTextHandleGetDescriptionText() const
-
ECheckBoxStateHandleGetReplicationCheckboxState() const
-
voidHandleReplicationCheckboxStateChanged(ECheckBoxState InCheckBoxState
-
boolHandleVerifyVariableNameChanged(const FText& InText,
FText& OutErrorText -
FTextOnGetVarName() const
-
FEdGraphPinTypeOnGetVarType() const
-
voidOnVarNameChanged(const FText& InText
-
voidOnVarNameCommitted(const FText& InText,
ETextCommit::Type InTextCommit -
voidOnVarTypeChanged(const FEdGraphPinType& InEdGraphPin
Fields#
-
privatestatic FVector2d DesiredSizeOverride
Desired Size overrides, to ensure it has a minimum width / height
-
TSharedPtr<INameValidatorInterface> NameValidator
Name validator for BP variable names
-
FOnWindowClosed OnCancelDelegate
Invoked when user clicks the Cancel button
-
FOnWindowClosed OnFinishDelegate
Invoked when user clicks the Cancel button
-
TSharedPtr<SEditableTextBox> VarNameEditableTextBox
The widget used when in variable name editing mode
-
TSharedPtr<FGBANewAttributeViewModel> ViewModel
View model for this widget