EndTextLike LabelText, but it's rendered at the end of the field.
Parameters:
-
string richTextXmlthe content of the label, or a property/callback. Supports tags likeRichLabelIf it starts with
$, the leading$will be removed andisCallbackwill be set totrue. Use\$to escape the starting$. -
bool isCallback=falseif true, therichTextXmlwill 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=5fpadding between the field and the label. -
string show=nullcontrol 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!"; }
