fix(ui): ButtonText usa UTextBlock (CommonTextBlock desnecessario; estilo via FUIStyle)
Como o estilo do botao e dirigido pelo FUIStyle (nao pelo CommonTextStyle), trocar UCommonTextBlock->UTextBlock no BindWidgetOptional simplifica e casa com as tools de WBP. Sem perda de comportamento. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
#include "Components/Image.h"
|
||||
#include "Components/SizeBox.h"
|
||||
#include "Components/OverlaySlot.h"
|
||||
#include "CommonTextBlock.h"
|
||||
#include "CommonActionWidget.h"
|
||||
|
||||
namespace
|
||||
|
||||
@@ -12,7 +12,6 @@ class UBorder;
|
||||
class UTextBlock;
|
||||
class UImage;
|
||||
class USizeBox;
|
||||
class UCommonTextBlock;
|
||||
class UCommonActionWidget;
|
||||
|
||||
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FOnUIButtonActivatedByTimeout);
|
||||
@@ -152,7 +151,7 @@ protected:
|
||||
TObjectPtr<USizeBox> SizeBox_Master;
|
||||
|
||||
UPROPERTY(meta = (BindWidgetOptional))
|
||||
TObjectPtr<UCommonTextBlock> ButtonText;
|
||||
TObjectPtr<UTextBlock> ButtonText;
|
||||
|
||||
UPROPERTY(meta = (BindWidgetOptional))
|
||||
TObjectPtr<UTextBlock> Number_Text;
|
||||
|
||||
Reference in New Issue
Block a user