Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Text

string Terraria.GameContent.UI.Elements.UIHeader.Text
getset

Definition at line 12 of file UIHeader.cs.

13 {
14 get
15 {
16 return _text;
17 }
18 set
19 {
20 if (_text != value)
21 {
22 _text = value;
23 if (!Main.dedServ)
24 {
25 Vector2 vector = FontAssets.DeathText.Value.MeasureString(Text);
26 Width.Pixels = vector.X;
27 Height.Pixels = vector.Y;
28 }
29 Width.Precent = 0f;
30 Height.Precent = 0f;
32 }
33 }
34 }
virtual void Recalculate()
Definition UIElement.cs:281

Referenced by Terraria.GameContent.UI.States.UIWorldLoad.DrawSelf().