A Demo Project for the UnrealEngineSDK
|
Custom widget class representing a button. More...
#include <ButtonWidget.h>
Public Member Functions | |
void | ActivateButtonHighlight () |
void | ActivateButtonPulsationHighlight () |
virtual void | ChangeButtonState (const bool bState) |
Changes the state of the button . | |
void | DeactivateButtonHighlight () |
const FText & | GetButtonName () |
UFUNCTION(BlueprintCallable) | |
bool | GetState () const |
Gets the state of the button. | |
ButtonType | GetType () const |
virtual void | NativeOnInitialized () override |
virtual void | NativePreConstruct () override |
void | OnHintActivated (bool Activate) |
UFUNCTION(BlueprintNativeEvent, BlueprintCallable) | |
void | RefreshWidgetStyle () |
Refreshes the visual style of the button widget. | |
void | SetButtonName (const FText &Name) |
UFUNCTION(BlueprintCallable) | |
Public Attributes | |
FText | ActiveStep |
UPROPERTY(BlueprintReadWrite) | |
FText | ActiveSubStep |
UPROPERTY(BlueprintReadWrite) | |
bool | bWidgetActiveOnStep |
UPROPERTY(BlueprintReadWrite) | |
UHintManager * | HintManager |
UPROPERTY(BlueprintReadWrite) | |
FClickEventDelegate | OnClickEventDelegate |
UPROPERTY(BlueprintAssignable, BlueprintCallable, Category = "Delegate") | |
FClickEventPtrDelegate | OnClickEventPtrDelegate |
UPROPERTY(BlueprintAssignable, BlueprintCallable, Category = "Delegate") | |
FClickEventSelfPtrDelegate | OnClickEventSelfPtrDelegate |
UPROPERTY(BlueprintAssignable, BlueprintCallable, Category = "Delegate") | |
UStoryManager * | StoryManager |
UPROPERTY(BlueprintReadWrite) | |
Protected Attributes | |
bool | ActivateHighlightOnEachActiveStep = false |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Highlight") | |
bool | bIsPulsationHighlight = false |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Highlight") | |
bool | bIsSelectable = true |
UPROPERTY(EditAnywhere, BlueprintReadWrite) | |
UTextBlock * | BtnName |
UPROPERTY(BlueprintReadOnly, meta = (BindWidget)) | |
UButton * | Button |
UPROPERTY(BlueprintReadOnly, meta = (BindWidget)) | |
UBorder * | ButtonBounds |
UPROPERTY(BlueprintReadOnly, meta = (BindWidget)) | |
FLinearColor | ButtonBoundsColor = FLinearColor::Black |
UPROPERTY(EditAnywhere, BlueprintReadWrite) | |
float | ButtonBoundsWidth = 2.f |
UPROPERTY(EditAnywhere, BlueprintReadWrite) | |
UBorder * | ButtonHighlight |
UPROPERTY(BlueprintReadOnly, meta = (BindWidget)) | |
UWidgetAnimation * | ButtonHighlightAnimation |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Highlight") | |
FLinearColor | ButtonHighlightColor = FLinearColor(0.25f, 0.6f, 0.0f, 0.f) |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Highlight") | |
float | ButtonHighlightWidth = 0.f |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Highlight") | |
FText | ButtonName = FText::FromString(TEXT("Text")) |
UPROPERTY(EditAnywhere, BlueprintReadWrite) | |
FLinearColor | ButtonNameColor = FLinearColor::White |
UPROPERTY(EditAnywhere, BlueprintReadWrite) | |
float | ButtonNameFontSize = 18.f |
UPROPERTY(EditAnywhere, BlueprintReadWrite) | |
FLinearColor | DefaultButtonColor = FLinearColor(0.91f, 0.22f, 0.0f, 1.0f) |
UPROPERTY(EditAnywhere, BlueprintReadWrite) | |
FLinearColor | DefaultHoveredButtonColor = FLinearColor(0.25f, 0.6f, 0.0f, 1.0f) |
UPROPERTY(EditAnywhere, BlueprintReadWrite) | |
TArray< FText > | HighlightActiveSteps |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Highlight") | |
TArray< FText > | HighlightActiveSubSteps |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Highlight") | |
float | HighlightAnimationSpeed = 1.f |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Highlight") | |
USoundBase * | HoverSound |
UPROPERTY(EditAnywhere, BlueprintReadWrite) | |
FLinearColor | PressedButtonColor = FLinearColor(0.25f, 0.6f, 0.0f, 1.0f) |
UPROPERTY(EditAnywhere, BlueprintReadWrite) | |
FLinearColor | SelectedButtonColor = FLinearColor(0.25f, 0.6f, 0.0f, 1.0f) |
UPROPERTY(EditAnywhere, BlueprintReadWrite) | |
FLinearColor | SelectedHoveredButtonColor = FLinearColor(0.25f, 0.6f, 0.0f, 1.0f) |
UPROPERTY(EditAnywhere, BlueprintReadWrite) | |
USoundBase * | SelectSound |
UPROPERTY(EditAnywhere, BlueprintReadWrite) | |
ButtonType | Type |
Private Member Functions | |
void | ButtonHovered () |
UFUNCTION() | |
void | ButtonReleased () |
UFUNCTION() | |
GENERATED_BODY () | |
void | NewStep (FStoryStep NewStep, bool IsForward) |
UFUNCTION() | |
void | NewSubStep (FStoryStep NewSubStep) |
UFUNCTION() | |
void | OnPressed () |
UFUNCTION() | |
void | OnUnHovered () |
UFUNCTION() | |
void | StoryLoaded () |
UFUNCTION() | |
void | SwitchButtonColor (const bool bState) |
Switches the button color based on the state. | |
Private Attributes | |
bool | bCurrentState |
void UButtonWidget::ActivateButtonHighlight | ( | ) |
void UButtonWidget::ActivateButtonPulsationHighlight | ( | ) |
|
private |
UFUNCTION()
Definition at line 188 of file ButtonWidget.cpp.
|
private |
UFUNCTION()
Definition at line 172 of file ButtonWidget.cpp.
|
virtualBlueprintCallable |
Changes the state of the button .
bState | The new state of the button (true - selected, false - default). |
UFUNCTION(BlueprintCallable)
Reimplemented in UCheckButtonWidget.
Definition at line 87 of file ButtonWidget.cpp.
void UButtonWidget::DeactivateButtonHighlight | ( | ) |
|
private |
|
BlueprintCallable |
UFUNCTION(BlueprintCallable)
Definition at line 82 of file ButtonWidget.cpp.
|
inlineBlueprintCallable |
Gets the state of the button.
UFUNCTION(BlueprintCallable)
Definition at line 85 of file ButtonWidget.h.
|
inline |
Definition at line 87 of file ButtonWidget.h.
|
overridevirtual |
Reimplemented in UCheckButtonWidget.
Definition at line 22 of file ButtonWidget.cpp.
|
overridevirtual |
|
private |
UFUNCTION()
Definition at line 209 of file ButtonWidget.cpp.
|
private |
UFUNCTION()
Definition at line 254 of file ButtonWidget.cpp.
|
BlueprintCallableBlueprintNativeEvent |
UFUNCTION(BlueprintNativeEvent, BlueprintCallable)
|
private |
UFUNCTION()
Definition at line 204 of file ButtonWidget.cpp.
|
private |
UFUNCTION()
Definition at line 199 of file ButtonWidget.cpp.
void UButtonWidget::RefreshWidgetStyle | ( | ) |
Refreshes the visual style of the button widget.
Definition at line 98 of file ButtonWidget.cpp.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable)
Definition at line 76 of file ButtonWidget.cpp.
|
private |
UFUNCTION()
Definition at line 300 of file ButtonWidget.cpp.
|
private |
Switches the button color based on the state.
bState | Whether button is selected or not. |
Definition at line 93 of file ButtonWidget.cpp.
|
protectedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Highlight")
Definition at line 367 of file ButtonWidget.h.
|
BlueprintReadWrite |
UPROPERTY(BlueprintReadWrite)
Definition at line 181 of file ButtonWidget.h.
|
BlueprintReadWrite |
UPROPERTY(BlueprintReadWrite)
Definition at line 187 of file ButtonWidget.h.
|
private |
Definition at line 370 of file ButtonWidget.h.
|
protectedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Highlight")
Definition at line 325 of file ButtonWidget.h.
|
protectedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite)
Definition at line 309 of file ButtonWidget.h.
|
protectedBlueprintReadOnly |
UPROPERTY(BlueprintReadOnly, meta = (BindWidget))
Definition at line 218 of file ButtonWidget.h.
|
protectedBlueprintReadOnly |
UPROPERTY(BlueprintReadOnly, meta = (BindWidget))
Definition at line 212 of file ButtonWidget.h.
|
protectedBlueprintReadOnly |
UPROPERTY(BlueprintReadOnly, meta = (BindWidget))
Definition at line 206 of file ButtonWidget.h.
|
protectedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite)
Definition at line 232 of file ButtonWidget.h.
|
protectedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite)
Definition at line 225 of file ButtonWidget.h.
|
protectedBlueprintReadOnly |
UPROPERTY(BlueprintReadOnly, meta = (BindWidget))
Definition at line 200 of file ButtonWidget.h.
|
protectedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Highlight")
Definition at line 318 of file ButtonWidget.h.
|
protectedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Highlight")
Definition at line 360 of file ButtonWidget.h.
|
protectedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Highlight")
Definition at line 353 of file ButtonWidget.h.
|
protectedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite)
Definition at line 246 of file ButtonWidget.h.
|
protectedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite)
Definition at line 253 of file ButtonWidget.h.
|
protectedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite)
Definition at line 239 of file ButtonWidget.h.
|
BlueprintReadWrite |
UPROPERTY(BlueprintReadWrite)
Definition at line 193 of file ButtonWidget.h.
|
protectedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite)
Definition at line 260 of file ButtonWidget.h.
|
protectedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite)
Definition at line 274 of file ButtonWidget.h.
|
protectedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Highlight")
Definition at line 339 of file ButtonWidget.h.
|
protectedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Highlight")
Definition at line 346 of file ButtonWidget.h.
|
protectedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Highlight")
Definition at line 332 of file ButtonWidget.h.
|
BlueprintReadWrite |
UPROPERTY(BlueprintReadWrite)
Definition at line 169 of file ButtonWidget.h.
|
protectedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite)
Definition at line 302 of file ButtonWidget.h.
|
BlueprintCallableBlueprintAssignable |
UPROPERTY(BlueprintAssignable, BlueprintCallable, Category = "Delegate")
Definition at line 149 of file ButtonWidget.h.
|
BlueprintCallableBlueprintAssignable |
UPROPERTY(BlueprintAssignable, BlueprintCallable, Category = "Delegate")
Definition at line 156 of file ButtonWidget.h.
|
BlueprintCallableBlueprintAssignable |
UPROPERTY(BlueprintAssignable, BlueprintCallable, Category = "Delegate")
Definition at line 163 of file ButtonWidget.h.
|
protectedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite)
Definition at line 288 of file ButtonWidget.h.
|
protectedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite)
Definition at line 267 of file ButtonWidget.h.
|
protectedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite)
Definition at line 281 of file ButtonWidget.h.
|
protectedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite)
Definition at line 295 of file ButtonWidget.h.
|
BlueprintReadWrite |
UPROPERTY(BlueprintReadWrite)
Definition at line 175 of file ButtonWidget.h.
|
protected |
Definition at line 311 of file ButtonWidget.h.