22 virtual void NativePreConstruct()
override;
23 virtual void NativeConstruct()
override;
24 virtual void NativeTick(
const FGeometry& MyGeometry,
float InDeltaTime)
override;
28 void SetText(
const FString& InString);
29 void SetText(
const FText& InText);
35 void OnClickLink(const FString& LinkID, const FString& Content);
37 void ApplyStyleWithFontSize(int32 InFontSize,
bool bPreserveText);
38 void UpdateFontSizeToFitWidth(const FGeometry& MyGeometry);
41 UPROPERTY(meta = (BindWidget), BlueprintReadOnly)
42 TObjectPtr<class URichTextBlock> RichTxt;
45 UPROPERTY(EditAnywhere, Category = "Style")
48 UPROPERTY(EditAnywhere, Category = "Style")
49 bool bAutoFitToWidth = true;
51 UPROPERTY(EditAnywhere, Category = "Style", meta = (EditCondition = "bAutoFitToWidth", ClampMin = "4"))
52 int32 MinAutoFontSize = 12;
54 UPROPERTY(EditAnywhere, Category = "Style")
55 FLinearColor TextColor = FLinearColor::White;
57 UPROPERTY(EditAnywhere, Category = "Style")
64 FOnClickHyperLink OnClickHyperLink;
66 int32 CurrentFontSize = 0;
69 bool bNeedsFontSizeUpdate = false;
72 int32 StabilizationFrames = 0;
75 float LastWidgetWidth = 0.0f;
DECLARE_DELEGATE_OneParam(FOnClickHyperLink, const FPhonemeData &)
void SetOnClickHyperLink(const FOnClickHyperLink &InClick)