|
|
|
|
| #pragma once
|
|
|
| #include "CommonActivatableWidget.h"
|
| #include "Widgets/IGameSettingActionInterface.h"
|
|
|
| #include "LyraSafeZoneEditor.generated.h"
|
|
|
| enum class ECommonInputType : uint8;
|
|
|
| class UCommonButtonBase;
|
| class UCommonRichTextBlock;
|
| class UGameSetting;
|
| class UGameSettingValueScalar;
|
| class UObject;
|
| class UWidgetSwitcher;
|
| struct FAnalogInputEvent;
|
| struct FFrame;
|
| struct FGameplayTag;
|
| struct FGeometry;
|
| struct FPointerEvent;
|
|
|
| UCLASS(Abstract)
|
| class ULyraSafeZoneEditor : public UCommonActivatableWidget, public IGameSettingActionInterface
|
| {
|
| GENERATED_BODY()
|
|
|
| public:
|
| FSimpleMulticastDelegate OnSafeZoneSet;
|
|
|
| public:
|
| ULyraSafeZoneEditor(const FObjectInitializer& Initializer);
|
|
|
|
|
| virtual bool ExecuteActionForSetting_Implementation(FGameplayTag ActionTag, UGameSetting* InSetting) override;
|
|
|
|
|
| protected:
|
|
|
| UPROPERTY(EditAnywhere, Category = "Restrictions")
|
| bool bCanCancel = true;
|
|
|
| virtual void NativeOnActivated() override;
|
| virtual void NativeOnInitialized() override;
|
| virtual FReply NativeOnAnalogValueChanged(const FGeometry& InGeometry, const FAnalogInputEvent& InAnalogEvent) override;
|
| virtual FReply NativeOnMouseWheel(const FGeometry& InGeometry, const FPointerEvent& InMouseEvent) override;
|
|
|
| void HandleInputModeChanged(ECommonInputType InInputType);
|
|
|
| private:
|
| UFUNCTION()
|
| void HandleBackClicked();
|
|
|
| UFUNCTION()
|
| void HandleDoneClicked();
|
|
|
| TWeakObjectPtr<UGameSettingValueScalar> ValueSetting;
|
|
|
| UPROPERTY(BlueprintReadOnly, meta = (BindWidget, AllowPrivateAccess = true))
|
| TObjectPtr<UWidgetSwitcher> Switcher_SafeZoneMessage;
|
|
|
| UPROPERTY(BlueprintReadOnly, meta = (BindWidget, AllowPrivateAccess = true))
|
| TObjectPtr<UCommonRichTextBlock> RichText_Default;
|
|
|
| UPROPERTY(BlueprintReadOnly, meta = (BindWidget, AllowPrivateAccess = true))
|
| TObjectPtr<UCommonButtonBase> Button_Back;
|
|
|
| UPROPERTY(BlueprintReadOnly, meta = (BindWidget, AllowPrivateAccess = true))
|
| TObjectPtr<UCommonButtonBase> Button_Done;
|
| };
|
|
|