Hide
EndText

Like LabelText, but it's rendered at the end of the field.

Parameters:

  • string richTextXml the content of the label, or a property/callback. Supports tags like RichLabel

    If it starts with $, the leading $ will be removed and isCallback will be set to true. Use \$ to escape the starting $.

  • bool isCallback=false if true, the richTextXml will be interpreted as a property/callback function, and the string value / the returned string value (tag supported) will be used as the label content

  • float padding=5f padding between the field and the label.

  • string show=null control the visibility. Show by default. Supports upwalk/downwalk

  • string GroupBy="" this is only for the error message box.

  • AllowMultiple: Yes

using SaintsField; [EndText("<color=grey>km/s")] public float speed; [EndText("<icon=eye.png/>", padding: 0)] public GameObject eye; [EndText("
quot;
+ nameof(TakeAGuess))] public int guess; public string TakeAGuess() { if(guess > 20) { return "<color=red>too high"; } if (guess < 10) { return "<color=blue>too low"; } return "<color=green>acceptable!"; }

post_field_rich_label