terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ TrimDisplayIfOverElementDimensions()

void Terraria.GameContent.UI.Elements.UICharacterNameButton.TrimDisplayIfOverElementDimensions ( int padding)
inline

Definition at line 73 of file UICharacterNameButton.cs.

74 {
75 float x = this._dimensions.X;
76 float y = this._dimensions.Y;
77 float width = this._dimensions.Width;
78 float height = this._dimensions.Height;
79 UIText text = this._text;
80 float x2 = text._dimensions.X;
81 float y2 = text._dimensions.Y;
82 float width2 = text._dimensions.Width;
83 float height2 = text._dimensions.Height;
84 UIText text2 = this._text;
85 string text3 = text2.Text;
86 int stringLength = this._text.Text._stringLength;
87 long num = 0L;
88 string text4;
89 text2.SetText(text4);
90 UIText text5 = this._text;
91 float x3 = text5._dimensions.X;
92 float y3 = text5._dimensions.Y;
93 float width3 = text5._dimensions.Width;
94 float height3 = text5._dimensions.Height;
95 UIText text6 = this._text;
96 string text7 = text6.Text;
97 int stringLength2 = this._text.Text._stringLength;
98 long num2 = 0L;
99 string text8 = text7.Substring((int)num2, (int)num) + "…";
100 text6.SetText(text8);
101 }
class f__AnonymousType0<< Count > j__TPar
CalculatedStyle _dimensions

References Terraria.UI.UIElement._dimensions, Terraria.GameContent.UI.Elements.UICharacterNameButton._text, Terraria.UI.CalculatedStyle.Height, j__TPar, System.L, Terraria.GameContent.UI.Elements.UIText.SetText(), System.text, Terraria.GameContent.UI.Elements.UIText.Text, Terraria.UI.CalculatedStyle.Width, Terraria.UI.CalculatedStyle.X, and Terraria.UI.CalculatedStyle.Y.