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
GUIAccessoryInfo.cs
Go to the documentation of this file.
1using System;
2using Controller;
5using Terraria;
7
8// Token: 0x0200011F RID: 287
9public class GUIAccessoryInfo
10{
11 // Token: 0x06000737 RID: 1847 RVA: 0x00019B28 File Offset: 0x00017D28
13 {
14 }
15
16 // Token: 0x06000738 RID: 1848 RVA: 0x00019B3C File Offset: 0x00017D3C
23
24 // Token: 0x06000739 RID: 1849 RVA: 0x000021DB File Offset: 0x000003DB
25 public float ItemScale(int index)
26 {
27 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
28 }
29
30 // Token: 0x0600073A RID: 1850 RVA: 0x00019D84 File Offset: 0x00017F84
31 public void ItemOver(int index)
32 {
33 }
34
35 // Token: 0x0600073B RID: 1851 RVA: 0x00019D94 File Offset: 0x00017F94
36 public void ItemDraw(ItemGrid_Layout gridLayout, int i, Vector2 position, float scale)
37 {
38 int num = this.itemOffset;
39 int[] displayIcons = this.DisplayIcons;
40 string[] infoText = this.InfoText;
41 if (num == 0)
42 {
43 }
45 }
46
47 // Token: 0x0600073C RID: 1852 RVA: 0x00019E0C File Offset: 0x0001800C
48 public void BuildInfoAccs()
49 {
50 int num = 1;
51 if (num == 0)
52 {
53 }
54 int myPlayer = Main.myPlayer;
55 if (num == 0)
56 {
57 }
59 if (num != 0)
60 {
61 if (num == 0)
62 {
63 }
64 bool playerInventory = Main.playerInventory;
65 }
66 string text = "0" + "";
67 int num2;
68 if ("0" == null)
69 {
70 num2 = 12;
71 return;
72 }
73 if (num2 == 0)
74 {
75 }
77 if (num2 == 0)
78 {
79 }
81 int[] displayIcons = this.DisplayIcons;
82 string[] iconText = this.IconText;
83 if (displayIcons == null)
84 {
85 }
86 if ("00" == null || "00" != null)
87 {
88 string[] infoText = this.InfoText;
89 string text2;
90 string text3;
91 if ((text2 == null || text2 != null) && (":" == null || ":" != null) && ("00" == null || "00" != null) && (" " == null || " " != null) && ("AM" == null || "AM" != null) && (text3 == null || text3 != null))
92 {
94 int num3 = this.numInfoAccessories;
96 if (num3 == 0)
97 {
98 }
100 if (num3 != 0)
101 {
102 if (num3 == 0)
103 {
104 }
105 int myPlayer6 = Main.myPlayer;
106 if (num3 != 0)
107 {
108 if (num3 == 0)
109 {
110 }
112 }
113 if (num3 == 0)
114 {
115 }
116 return;
117 }
118 int num4;
119 if (num4 == 0)
120 {
121 }
122 int myPlayer7 = Main.myPlayer;
123 if (num4 != 0)
124 {
125 if (num4 == 0)
126 {
127 }
128 int myPlayer8 = Main.myPlayer;
129 if (num4 != 0)
130 {
131 if (num4 == 0)
132 {
133 }
135 }
136 if (num4 == 0)
137 {
138 }
139 int num5;
140 if (num5 != 0)
141 {
142 if (num5 == 0)
143 {
144 }
145 if (num4 == 0)
146 {
147 return;
148 }
149 }
150 if (num4 == 0)
151 {
152 }
153 if (num5 != 0)
154 {
155 if (num5 == 0)
156 {
157 }
158 }
159 else
160 {
161 int num6 = 7;
162 int[] displayIcons2 = this.DisplayIcons;
163 string[] iconText2 = this.IconText;
164 if (num6 == 0)
165 {
166 }
167 string text4;
168 if (text4 == null || text4 != null)
169 {
170 if (displayIcons2 == null)
171 {
172 }
173 return;
174 }
175 goto IL_0BB1;
176 }
177 return;
178 }
179 int num7;
180 if (num7 == 0)
181 {
182 }
183 int myPlayer9 = Main.myPlayer;
184 string text6;
185 int num9;
186 if (num7 != 0)
187 {
188 if (num7 == 0)
189 {
190 }
192 if (num7 != 0)
193 {
194 if (num7 == 0)
195 {
196 }
198 }
199 int[] displayIcons3 = this.DisplayIcons;
200 int num8 = 2;
201 string[] iconText3 = this.IconText;
202 if (displayIcons3 == null)
203 {
204 }
205 string text5;
206 if (text5 == null || text5 != null)
207 {
208 if (num8 != 0)
209 {
210 if (num8 == 0)
211 {
212 }
214 if (num8 != 0)
215 {
216 string[] infoText2 = this.InfoText;
217 if (num8 == 0)
218 {
219 }
221 if (text6 == null || text6 != null)
222 {
224 num9 = this.numInfoAccessories;
226 goto IL_03CB;
227 }
228 goto IL_0BB1;
229 }
230 }
231 return;
232 }
233 goto IL_0BB1;
234 }
235 IL_03CB:
236 if (num9 == 0)
237 {
238 }
240 if (num9 != 0)
241 {
242 if (num9 == 0)
243 {
244 }
246 if (num9 != 0)
247 {
248 if (num9 == 0)
249 {
250 }
252 }
253 int[] displayIcons4 = this.DisplayIcons;
254 int num10 = 10;
255 string[] iconText4 = this.IconText;
256 if (displayIcons4 == null)
257 {
258 }
259 if (text6 == null || text6 != null)
260 {
261 if (this.InfoState == null)
262 {
263 }
264 if (Main.SceneMetrics.bestOre == 0)
265 {
266 }
267 int bestOre = Main.SceneMetrics.bestOre;
268 if (Main.SceneMetrics.<ClosestOrePosition>k__BackingField == null)
269 {
270 }
271 Point? <ClosestOrePosition>k__BackingField = Main.SceneMetrics.<ClosestOrePosition>k__BackingField;
272 Tile tile;
273 bool flag = tile.active();
274 if (num10 == 0)
275 {
276 }
277 if (num10 != 0 || num10 == 0)
278 {
279 }
280 string[] infoText3 = this.InfoText;
281 if (num10 == 0)
282 {
283 }
284 int num11;
286 string textValue = Language.GetTextValue("GameUI.OreDetected", mapObjectName);
287 if (textValue == null || textValue != null)
288 {
289 return;
290 }
291 }
292 }
293 else
294 {
295 int num12;
296 if (num12 == 0)
297 {
298 }
300 if (num12 != 0)
301 {
302 if (num12 == 0)
303 {
304 }
306 if (num12 != 0)
307 {
308 if (num12 == 0)
309 {
310 }
312 }
313 int[] displayIcons5 = this.DisplayIcons;
314 int num13 = 11;
315 string[] iconText5 = this.IconText;
316 if (displayIcons5 == null)
317 {
318 }
319 string text7;
320 if (text7 == null || text7 != null)
321 {
322 if (this.InfoState == null)
323 {
324 }
326 if (num13 == 0)
327 {
328 }
330 if (text7 != null)
331 {
333 return;
334 }
335 int num14 = 15;
336 if (num14 != 0)
337 {
338 if (num14 == 0)
339 {
340 }
342 Vector2 vector;
343 float num15 = vector.Length();
344 }
345 return;
346 }
347 }
348 else
349 {
350 int num16;
351 if (num16 == 0)
352 {
353 }
355 if (num16 != 0)
356 {
357 if (num16 == 0)
358 {
359 }
361 if (num16 != 0)
362 {
363 if (num16 == 0)
364 {
365 }
367 }
368 int[] displayIcons6 = this.DisplayIcons;
369 int num17 = 5;
370 string[] iconText6 = this.IconText;
371 if (displayIcons6 == null)
372 {
373 }
374 string text8;
375 if (text8 == null || text8 != null)
376 {
377 if (this.InfoState == null)
378 {
379 }
381 if (num17 == 0)
382 {
383 }
385 if (text8 != null)
386 {
387 return;
388 }
390 return;
391 }
392 }
393 else
394 {
395 int num18;
396 if (num18 == 0)
397 {
398 }
400 if (num18 != 0)
401 {
402 if (num18 == 0)
403 {
404 }
406 if (num18 != 0)
407 {
408 if (num18 == 0)
409 {
410 }
412 }
413 int[] displayIcons7 = this.DisplayIcons;
414 int num19 = 6;
415 string[] iconText7 = this.IconText;
416 if (displayIcons7 == null)
417 {
418 }
419 string text9;
420 if (text9 == null || text9 != null)
421 {
422 if (this.InfoState == null)
423 {
424 }
426 string[] infoText4 = this.InfoText;
427 if (num19 == 0)
428 {
429 }
430 int num20;
432 if (num19 == 0)
433 {
434 }
435 string text11;
436 string text10 = npcnameValue + ": " + text11;
437 if (text10 == null || text10 != null)
438 {
439 return;
440 }
441 }
442 }
443 else
444 {
445 int num21;
446 if (num21 == 0)
447 {
448 }
450 string textValue2;
451 int num23;
452 if (num21 != 0)
453 {
454 if (num21 == 0)
455 {
456 }
458 if (num21 != 0)
459 {
460 if (num21 == 0)
461 {
462 }
464 }
465 int[] displayIcons8 = this.DisplayIcons;
466 string[] iconText8 = this.IconText;
467 if (displayIcons8 == null)
468 {
469 }
470 string text12;
471 if (text12 != null && text12 == null)
472 {
473 goto IL_0BB1;
474 }
475 if (this.InfoState == null)
476 {
477 }
480 string[] infoText5 = this.InfoText;
481 int num22;
482 if (num22 != 0)
483 {
485 string text13;
486 if (text13 == null || text13 != null)
487 {
488 return;
489 }
490 goto IL_0BB1;
491 }
492 else
493 {
494 textValue2 = Language.GetTextValue("GameUI.NoDPS");
495 if (textValue2 != null && textValue2 == null)
496 {
497 goto IL_0BB1;
498 }
500 num23 = this.numInfoAccessories;
501 }
502 }
503 if (num23 == 0)
504 {
505 }
507 if (num23 != 0)
508 {
509 if (num23 == 0)
510 {
511 }
513 if (num23 != 0)
514 {
515 if (num23 == 0)
516 {
517 }
519 }
520 int[] displayIcons9 = this.DisplayIcons;
521 string[] iconText9 = this.IconText;
522 if (displayIcons9 == null)
523 {
524 }
525 if (textValue2 == null || textValue2 != null)
526 {
527 if (this.InfoState == null)
528 {
529 }
531 int num24 = 32768;
533 if (num24 == 0)
534 {
535 }
537 if (num24 == 0)
538 {
539 }
542 return;
543 }
544 }
545 else
546 {
547 int num25;
548 if (num25 == 0)
549 {
550 }
552 if (num25 == 0)
553 {
554 }
556 if (num25 != 0)
557 {
558 if (num25 == 0)
559 {
560 }
562 }
563 int[] displayIcons10 = this.DisplayIcons;
564 string[] iconText10 = this.IconText;
565 if (displayIcons10 == null)
566 {
567 }
568 string text14;
569 if (text14 == null || text14 != null)
570 {
571 if (this.InfoState == null)
572 {
573 }
576 string[] infoText6 = this.InfoText;
577 return;
578 }
579 }
580 }
581 }
582 }
583 }
584 }
585 }
586 IL_0BB1:
587 throw new ArrayTypeMismatchException();
588 }
589
590 // Token: 0x0400059A RID: 1434
592
593 // Token: 0x0400059B RID: 1435
594 public int[] DisplayIcons;
595
596 // Token: 0x0400059C RID: 1436
597 public string[] IconText;
598
599 // Token: 0x0400059D RID: 1437
600 public string[] InfoText;
601
602 // Token: 0x0400059E RID: 1438
604
605 // Token: 0x0400059F RID: 1439
607
608 // Token: 0x040005A0 RID: 1440
610
611 // Token: 0x040005A1 RID: 1441
613
614 // Token: 0x040005A2 RID: 1442
616
617 // Token: 0x040005A3 RID: 1443
618 private int itemOffset;
619
620 // Token: 0x02000120 RID: 288
621 private enum StringState
622 {
623 // Token: 0x040005A5 RID: 1445
624 Normal,
625 // Token: 0x040005A6 RID: 1446
626 Disabled,
627 // Token: 0x040005A7 RID: 1447
628 Critter
629 }
630}
class f__AnonymousType0<< Count > j__TPar
float ItemScale(int index)
GUIItemGrid.DrawItemHandler itemDraw
GUIItemGrid.CursorOver itemOver
void ItemOver(int index)
GUIAccessoryInfo.StringState[] InfoState
GUIItemGrid.GetItemScaleHandler itemScale
void ItemDraw(ItemGrid_Layout gridLayout, int i, Vector2 position, float scale)
static string GetNPCNameValue(int netID)
Definition Lang.cs:93
static string GetMapObjectName(int id)
Definition Lang.cs:16
static string GetTextValue(string key)
Definition Language.cs:54
static SceneMetrics SceneMetrics
Definition Main.cs:1791
static int myPlayer
Definition Main.cs:2337
static bool playerInventory
Definition Main.cs:2057
bool active()
Definition Tile.cs:1241