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

◆ DrawSearch()

void GUIItemFilter.DrawSearch ( )
inlineprivate

Definition at line 125 of file GUIItemFilter.cs.

126 {
128 int num = 320;
129 string textValue = Language.GetTextValue("Mobile.Search");
130 if (num == 0)
131 {
132 }
133 bool flag = this.editingSearch;
135 int num2;
136 bool flag2;
138 {
139 if (!this.editingSearch)
140 {
141 string searchTerm = this.SearchTerm;
142 this.editDisplaySearch = searchTerm;
143 return;
144 }
145 }
146 else
147 {
148 num2 = 1;
149 int num3 = 1;
150 flag2 = this.editingSearch;
151 if (!flag2)
152 {
154 if (!flag2)
155 {
156 }
157 Main.clrInput();
158 string text = this.editSearch;
160 return;
161 }
162 }
163 if (!flag2)
164 {
165 }
166 if (num != 0)
167 {
168 return;
169 }
170 string text2 = this.editSearch;
171 int num4 = 312;
172 int num5 = 320;
173 long num6 = 0L;
174 if (num4 == 0)
175 {
176 }
177 int num7 = 1;
178 long num8 = 0L;
179 long num9 = 0L;
181 string inputText = Main.GetInputText(text2, rectangle, (int)num6, num2 != 0, num8 != 0L, num7 != 0, num9 != 0L);
182 this.editSearch = inputText;
183 if (num5 != 0)
184 {
185 string text3 = this.editSearchStart;
187 if (text3 == null)
188 {
189 }
191 return;
192 }
193 if (num5 == 0)
194 {
195 }
197 string text4 = this.editSearch;
198 this.SetSearchTerm(text4);
199 string text5 = this.editSearch;
201 string text6 = this.editDisplaySearch;
203 Vector2 vector = spriteFont.MeasureString(text6);
205 Vector2 vector2 = spriteFont2.MeasureString("|");
206 string text7 = this.editDisplaySearch;
207 int num10 = 1;
208 string text8 = text7.Substring(num10);
210 string text9 = this.editDisplaySearch;
212 Vector2 vector3 = spriteFont3.MeasureString(text9);
213 string text10 = this.editDisplaySearch;
214 }
class f__AnonymousType0<< Count > j__TPar
string editSearchStart
string editDisplaySearch
void SetSearchTerm(string term)
static string GetTextValue(string key)
Definition Language.cs:54
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 CloseKeyboard()
Definition Main.cs:8523
static void clrInput()
Definition Main.cs:8459

References Terraria.Main.CloseKeyboard(), Terraria.Main.clrInput(), editDisplaySearch, editingSearch, editSearch, editSearchStart, Terraria.Main.GetInputText(), Terraria.Localization.Language.GetTextValue(), PageControllerLayoutDefinition< T >.Instance, j__TPar, System.L, SearchTerm, SetSearchTerm(), and System.text.

Referenced by DrawFilter().