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

◆ DrawProfile()

void GUIVirtualInputControllerEdit.DrawProfile ( )
inlineprivate

Definition at line 67 of file GUIVirtualInputControllerEdit.cs.

68 {
69 bool mouseLeft = Main.mouseLeft;
70 bool mouseLeftRelease = Main.mouseLeftRelease;
71 bool flag = this.editingName;
72 if (flag)
73 {
76 this.CloseNameEdit();
77 }
78 if (this.SlotOrder == null)
79 {
80 }
81 int selectedControl = this.SelectedControl;
84 {
85 int num = 1;
86 this.editingName = num != 0;
87 if (num == 0)
88 {
89 }
90 Main.clrInput();
94 }
95 bool flag2 = this.editingName;
96 if (!flag2)
97 {
98 bool flag3 = this.displayProfileOptions;
101 {
102 int num2 = 1;
103 bool flag4 = this.displayProfileOptions;
104 if (flag4)
105 {
106 this.CloseProfileOptions();
107 return;
108 }
109 this.displayProfileOptions = num2 != 0;
110 if (!flag4)
111 {
112 }
116 }
118 bool flag5 = this.displayProfileOptions;
119 if (optionsBlocker != null)
120 {
121 if (flag5)
122 {
123 return;
124 }
125 }
126 else if (flag5)
127 {
128 if (optionsBlocker == null)
129 {
130 }
132 if (this.displayProfileOptions)
133 {
136 {
138 }
141 {
143 }
146 {
148 }
151 {
153 if (optionsBlocker5 != null)
154 {
155 int num3 = 1;
157 if (optionsBlocker5 == null)
158 {
159 }
161 if (optionsBlocker5 == null)
162 {
163 }
165 return;
166 }
167 }
168 else
169 {
171 }
172 }
173 }
174 return;
175 }
176 string text = this.editNameValue;
177 long num4 = 0L;
178 if (!flag2)
179 {
180 }
181 int num5 = 20;
182 long num6 = 0L;
183 long num7 = 0L;
184 long num8 = 0L;
186 string inputText = Main.GetInputText(text, rectangle, (int)num4, num5 != 0, num6 != 0L, num7 != 0L, num8 != 0L);
187 this.editNameValue = inputText;
188 int stringLength = inputText._stringLength;
189 int num9 = 20;
190 long num10 = 0L;
191 string text2 = inputText.Substring((int)num10, num9);
192 this.editNameValue = text2;
193 if (stringLength == 0)
194 {
195 }
196 if (flag)
197 {
198 return;
199 }
200 if (!flag)
201 {
202 }
203 string text3 = this.editNameValue;
206 int num11 = this.textBlinkerCount;
208 int num12 = this.textBlinkerState;
210 string text4 = this.editNameValue;
211 bool flag6 = string.IsNullOrEmpty(text4);
213 Microsoft.Xna.Framework.Vector2 vector = spriteFont.MeasureString(text4);
214 long num13 = 0L;
215 string text5 = "..." + text4;
218 int stringLength2 = text4._stringLength;
219 int num14 = 1;
220 string text6 = text4.Substring(num14, (int)num13);
221 }
class f__AnonymousType0<< Count > j__TPar
static void FlushBatches()
Definition Main.cs:5092
static bool mouseLeftRelease
Definition Main.cs:2029
static string GetInputText(string oldString, Rectangle region, int maxCharacters=-1, bool password=false, bool retainText=false, bool multiline=false, bool filterText=true)
Definition Main.cs:8537
static void clrInput()
Definition Main.cs:8459
static bool mouseLeft
Definition Main.cs:671

References _optionsBlocker, CloseNameEdit(), CloseProfileOptions(), Terraria.Main.clrInput(), displayProfileOptions, VirtualControlsProfile_Layout.EditedName, editingName, editNameValue, Terraria.Main.FlushBatches(), Terraria.Main.GetInputText(), j__TPar, System.L, Terraria.Main.mouseLeft, Terraria.Main.mouseLeftRelease, SelectedControl, SlotOrder, System.text, textBlinkerCount, and textBlinkerState.

Referenced by DrawWidgetOverlays(), and DrawWidgets().