Cannot support custom theme in decorator, UE provides no UI to edit properties of decorators

This commit is contained in:
Steve Streeting 2020-11-24 12:00:27 +00:00
parent 3273836f3d
commit 1904476cc4

View File

@ -11,15 +11,9 @@ UCLASS()
class STEVESUEHELPERS_API URichTextBlockInputImageDecorator : public URichTextBlockDecorator class STEVESUEHELPERS_API URichTextBlockInputImageDecorator : public URichTextBlockDecorator
{ {
GENERATED_BODY() GENERATED_BODY()
protected:
/// Custom theme to use for this input image set; if not supplied will use UStevesGameSubsystem::DefaultUiTheme
UPROPERTY(EditAnywhere, BlueprintReadOnly)
UUiTheme* CustomTheme;
public: public:
virtual TSharedPtr<ITextDecorator> CreateDecorator(URichTextBlock* InOwner) override; virtual TSharedPtr<ITextDecorator> CreateDecorator(URichTextBlock* InOwner) override;
virtual UUiTheme* GetCustomTheme() const { return CustomTheme; }
}; };