28 UFUNCTION(BlueprintCallable, Category =
"TextureButton")
29 void SetButtonTexture(UTexture2D* InTexture);
35 UFUNCTION(BlueprintCallable, Category =
"TextureButton")
36 void SetSymbolTexture(UTexture2D* InTexture);
43 UFUNCTION(BlueprintCallable, Category =
"TextureButton")
44 void SetButtonSize(
float InWidth,
float InHeight);
50 UFUNCTION(BlueprintCallable, Category =
"TextureButton")
51 void SetButtonEnabled(
bool bInEnabled);
54 virtual void NativePreConstruct()
override;
55 virtual void NativeConstruct()
override;
59 void ApplySymbolColor(
const FLinearColor&
Color);
68 void HandleUnhovered();
74 void HandleReleased();
78 UPROPERTY(BlueprintAssignable, Category =
"Event")
79 FOnTextureButtonClickedEvent OnButtonClickedEvent;
82 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Style", meta = (ExposeOnSpawn = true))
83 UTexture2D* ButtonTexture =
nullptr;
86 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Style", meta = (ExposeOnSpawn = true))
87 UTexture2D* SymbolTexture =
nullptr;
90 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Style", meta = (ExposeOnSpawn = true))
91 float ButtonWidth = 100.0f;
94 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Style", meta = (ExposeOnSpawn = true))
95 float ButtonHeight = 100.0f;
98 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Style", meta = (ExposeOnSpawn = true))
99 FLinearColor NormalSymbolColor = FLinearColor::White;
102 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Style", meta = (ExposeOnSpawn = true))
103 FLinearColor HoverSymbolColor = FLinearColor(1.2f, 1.2f, 1.2f, 1.0f);
106 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Style", meta = (ExposeOnSpawn = true))
107 FLinearColor PressSymbolColor = FLinearColor(0.8f, 0.8f, 0.8f, 1.0f);
110 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Style", meta = (ExposeOnSpawn = true))
111 FLinearColor DisabledSymbolColor = FLinearColor(0.5f, 0.5f, 0.5f, 1.0f);
114 UPROPERTY(meta = (BindWidget))
115 class UButton* Button_Main;
117 UPROPERTY(meta = (BindWidget))
118 class UImage* Image_Symbol;
120 bool bEnabled = true;