class UMagesButtonWidget

Overview

#include <MagesButtonWidget.h>

class UMagesButtonWidget: public UMagesWidget
{
public:
    // fields

    bool isToggleMode = false;
    EMagesButtonInteractionMethod ButtonInteractionMethod = EMagesButtonInteractionMethod::Default;
    float RepeatInitialDelay = 0.5f;
    float RepeatDelay = 0.1f;
    bool IsTextVisibleOnInit = true;
    FOnMagesButtonClicked OnEventClicked;
    FOnMagesButtonToggled OnEventToggled;

    // methods

    void SetText(const FString& text);
    void SetTextVisible(bool Value);
    void OnClicked();
    bool GetIsToggleMode();
    void SetToggled(bool Toggled);
    bool GetToggled();
    bool IsButtonHovered();
    virtual void NativeOnInteractiveChanged(bool NewInteractive);
};

// direct descendants

class UMagesQuestionButtonWidget;

Inherited Members

public:
    // methods

    virtual void SetupWidget(
        FOnRequestDestroySelf RequestDestroySelfDelegate,
        FOnRequestOwnerRef RequestOwnerRef
        );

    UMagesWidgetComponent* RequestOwner();
    void RequestDestroySelf(bool ForceNoAnim);
    void SetInteractive(bool NewInteractive);
    void OnCreated();
    void OnInteractiveChanged(bool NewInteractive);
    FORCEINLINE bool IsInteractive();
    virtual void NativeOnInteractiveChanged(bool bIsInteractive);
    virtual void NativeOnCreated();

Detailed Documentation

Fields

bool isToggleMode = false

Button is Toggled or not

bool IsTextVisibleOnInit = true

Determined if text block will be visible on initialization