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.
1
using
System
;
2
using
Controller
;
3
using
Cpp2IlInjected
;
4
using
Microsoft.Xna.Framework
;
5
using
Terraria
;
6
using
Terraria.Localization
;
7
8
// Token: 0x0200011F RID: 287
9
public
class
GUIAccessoryInfo
10
{
11
// Token: 0x06000737 RID: 1847 RVA: 0x00019B28 File Offset: 0x00017D28
12
public
GUIAccessoryInfo
()
13
{
14
}
15
16
// Token: 0x06000738 RID: 1848 RVA: 0x00019B3C File Offset: 0x00017D3C
17
public
void
Draw
()
18
{
19
this.
BuildInfoAccs
();
20
bool
anyControllerConnected
=
ControllerActionManager
.
AnyControllerConnected
;
21
int
allowRowHeight
=
RightSideHUDAnchorUpdator
.
AllowRowHeight
;
22
}
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
}
44
GUIAccessoryInfo
.
StringState
[]
infoState
= this.
InfoState
;
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
}
58
int
myPlayer2
=
Main
.
myPlayer
;
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
}
76
int
myPlayer3
=
Main
.
myPlayer
;
77
if
(
num2
== 0)
78
{
79
}
80
int
myPlayer4
=
Main
.
myPlayer
;
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
{
93
GUIAccessoryInfo
.
StringState
[]
infoState
= this.
InfoState
;
94
int
num3
= this.
numInfoAccessories
;
95
this.numInfoAccessories
=
num3
;
96
if
(num3 == 0)
97
{
98
}
99
int
myPlayer5
=
Main
.
myPlayer
;
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
}
111
bool
playerInventory2
=
Main
.
playerInventory
;
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
}
134
bool
playerInventory3
=
Main
.
playerInventory
;
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
}
191
int
myPlayer10
=
Main
.
myPlayer
;
192
if
(
num7
!= 0)
193
{
194
if
(
num7
== 0)
195
{
196
}
197
bool
playerInventory4
=
Main
.
playerInventory
;
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
}
213
int
myPlayer11
=
Main
.
myPlayer
;
214
if
(
num8
!= 0)
215
{
216
string
[]
infoText2
= this.
InfoText
;
217
if
(num8 == 0)
218
{
219
}
220
int
myPlayer12
=
Main
.
myPlayer
;
221
if
(
text6
==
null
||
text6
!=
null
)
222
{
223
GUIAccessoryInfo
.
StringState
[]
infoState2
= this.
InfoState
;
224
num9 = this.
numInfoAccessories
;
225
this.numInfoAccessories
=
num9
;
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
}
239
int
myPlayer13
=
Main
.
myPlayer
;
240
if
(
num9
!= 0)
241
{
242
if
(
num9
== 0)
243
{
244
}
245
int
myPlayer14
=
Main
.
myPlayer
;
246
if
(
num9
!= 0)
247
{
248
if
(
num9
== 0)
249
{
250
}
251
bool
playerInventory5
=
Main
.
playerInventory
;
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
;
285
string
mapObjectName
=
Lang
.
GetMapObjectName
(
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
}
299
int
myPlayer15
=
Main
.
myPlayer
;
300
if
(
num12
!= 0)
301
{
302
if
(
num12
== 0)
303
{
304
}
305
int
myPlayer16
=
Main
.
myPlayer
;
306
if
(
num12
!= 0)
307
{
308
if
(
num12
== 0)
309
{
310
}
311
bool
playerInventory6
=
Main
.
playerInventory
;
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
}
325
int
myPlayer17
=
Main
.
myPlayer
;
326
if
(
num13
== 0)
327
{
328
}
329
int
myPlayer18
=
Main
.
myPlayer
;
330
if
(
text7
!=
null
)
331
{
332
int
myPlayer19
=
Main
.
myPlayer
;
333
return
;
334
}
335
int
num14
= 15;
336
if
(
num14
!= 0)
337
{
338
if
(
num14
== 0)
339
{
340
}
341
int
myPlayer20
=
Main
.
myPlayer
;
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
}
354
int
myPlayer21
=
Main
.
myPlayer
;
355
if
(
num16
!= 0)
356
{
357
if
(
num16
== 0)
358
{
359
}
360
int
myPlayer22
=
Main
.
myPlayer
;
361
if
(
num16
!= 0)
362
{
363
if
(
num16
== 0)
364
{
365
}
366
bool
playerInventory7
=
Main
.
playerInventory
;
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
}
380
int
myPlayer23
=
Main
.
myPlayer
;
381
if
(
num17
== 0)
382
{
383
}
384
int
myPlayer24
=
Main
.
myPlayer
;
385
if
(
text8
!=
null
)
386
{
387
return
;
388
}
389
int
myPlayer25
=
Main
.
myPlayer
;
390
return
;
391
}
392
}
393
else
394
{
395
int
num18
;
396
if
(
num18
== 0)
397
{
398
}
399
int
myPlayer26
=
Main
.
myPlayer
;
400
if
(
num18
!= 0)
401
{
402
if
(
num18
== 0)
403
{
404
}
405
int
myPlayer27
=
Main
.
myPlayer
;
406
if
(
num18
!= 0)
407
{
408
if
(
num18
== 0)
409
{
410
}
411
bool
playerInventory8
=
Main
.
playerInventory
;
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
}
425
int
myPlayer28
=
Main
.
myPlayer
;
426
string
[]
infoText4
= this.
InfoText
;
427
if
(num19 == 0)
428
{
429
}
430
int
num20
;
431
string
npcnameValue
=
Lang
.
GetNPCNameValue
(
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
}
449
int
myPlayer29
=
Main
.
myPlayer
;
450
string
textValue2
;
451
int
num23
;
452
if
(
num21
!= 0)
453
{
454
if
(
num21
== 0)
455
{
456
}
457
int
myPlayer30
=
Main
.
myPlayer
;
458
if
(
num21
!= 0)
459
{
460
if
(
num21
== 0)
461
{
462
}
463
bool
playerInventory9
=
Main
.
playerInventory
;
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
}
478
int
myPlayer31
=
Main
.
myPlayer
;
479
int
myPlayer32
=
Main
.
myPlayer
;
480
string
[]
infoText5
= this.
InfoText
;
481
int
num22
;
482
if
(num22 != 0)
483
{
484
int
myPlayer33
=
Main
.
myPlayer
;
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
}
499
GUIAccessoryInfo
.
StringState
[]
infoState3
= this.
InfoState
;
500
num23 = this.
numInfoAccessories
;
501
}
502
}
503
if
(num23 == 0)
504
{
505
}
506
int
myPlayer34
=
Main
.
myPlayer
;
507
if
(
num23
!= 0)
508
{
509
if
(
num23
== 0)
510
{
511
}
512
int
myPlayer35
=
Main
.
myPlayer
;
513
if
(
num23
!= 0)
514
{
515
if
(
num23
== 0)
516
{
517
}
518
bool
playerInventory10
=
Main
.
playerInventory
;
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
}
530
int
myPlayer36
=
Main
.
myPlayer
;
531
int
num24
= 32768;
532
int
myPlayer37
=
Main
.
myPlayer
;
533
if
(
num24
== 0)
534
{
535
}
536
int
myPlayer38
=
Main
.
myPlayer
;
537
if
(
num24
== 0)
538
{
539
}
540
int
myPlayer39
=
Main
.
myPlayer
;
541
int
myPlayer40
=
Main
.
myPlayer
;
542
return
;
543
}
544
}
545
else
546
{
547
int
num25
;
548
if
(
num25
== 0)
549
{
550
}
551
int
myPlayer41
=
Main
.
myPlayer
;
552
if
(
num25
== 0)
553
{
554
}
555
int
myPlayer42
=
Main
.
myPlayer
;
556
if
(
num25
!= 0)
557
{
558
if
(
num25
== 0)
559
{
560
}
561
bool
playerInventory11
=
Main
.
playerInventory
;
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
}
574
int
myPlayer43
=
Main
.
myPlayer
;
575
int
myPlayer44
=
Main
.
myPlayer
;
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
591
public
int
numInfoAccessories
;
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
603
private
GUIAccessoryInfo
.
StringState
[]
InfoState
;
604
605
// Token: 0x0400059F RID: 1439
606
private
Rectangle
lastDrawRegion
;
607
608
// Token: 0x040005A0 RID: 1440
609
private
GUIItemGrid.GetItemScaleHandler
itemScale
;
610
611
// Token: 0x040005A1 RID: 1441
612
private
GUIItemGrid.CursorOver
itemOver
;
613
614
// Token: 0x040005A2 RID: 1442
615
private
GUIItemGrid.DrawItemHandler
itemDraw
;
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
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Controller.ControllerActionManager.AnyControllerConnected
static bool AnyControllerConnected
Definition
ControllerActionManager.cs:135
Controller.ControllerActionManager
Definition
ControllerActionManager.cs:10
Cpp2IlInjected.AnalysisFailedException
Definition
AnalysisFailedException.cs:7
GUIAccessoryInfo.GUIAccessoryInfo
GUIAccessoryInfo()
Definition
GUIAccessoryInfo.cs:12
GUIAccessoryInfo.ItemScale
float ItemScale(int index)
Definition
GUIAccessoryInfo.cs:25
GUIAccessoryInfo.IconText
string[] IconText
Definition
GUIAccessoryInfo.cs:597
GUIAccessoryInfo.Draw
void Draw()
Definition
GUIAccessoryInfo.cs:17
GUIAccessoryInfo.itemOffset
int itemOffset
Definition
GUIAccessoryInfo.cs:618
GUIAccessoryInfo.itemDraw
GUIItemGrid.DrawItemHandler itemDraw
Definition
GUIAccessoryInfo.cs:615
GUIAccessoryInfo.itemOver
GUIItemGrid.CursorOver itemOver
Definition
GUIAccessoryInfo.cs:612
GUIAccessoryInfo.numInfoAccessories
int numInfoAccessories
Definition
GUIAccessoryInfo.cs:591
GUIAccessoryInfo.InfoText
string[] InfoText
Definition
GUIAccessoryInfo.cs:600
GUIAccessoryInfo.ItemOver
void ItemOver(int index)
Definition
GUIAccessoryInfo.cs:31
GUIAccessoryInfo.InfoState
GUIAccessoryInfo.StringState[] InfoState
Definition
GUIAccessoryInfo.cs:603
GUIAccessoryInfo.itemScale
GUIItemGrid.GetItemScaleHandler itemScale
Definition
GUIAccessoryInfo.cs:609
GUIAccessoryInfo.ItemDraw
void ItemDraw(ItemGrid_Layout gridLayout, int i, Vector2 position, float scale)
Definition
GUIAccessoryInfo.cs:36
GUIAccessoryInfo.DisplayIcons
int[] DisplayIcons
Definition
GUIAccessoryInfo.cs:594
GUIAccessoryInfo.lastDrawRegion
Rectangle lastDrawRegion
Definition
GUIAccessoryInfo.cs:606
GUIAccessoryInfo.BuildInfoAccs
void BuildInfoAccs()
Definition
GUIAccessoryInfo.cs:48
GUIAccessoryInfo.StringState
StringState
Definition
GUIAccessoryInfo.cs:622
GUIAccessoryInfo.StringState.Critter
@ Critter
GUIAccessoryInfo.StringState.Normal
@ Normal
GUIAccessoryInfo.StringState.Disabled
@ Disabled
GUIAccessoryInfo
Definition
GUIAccessoryInfo.cs:10
GUIItemGrid.CursorOver
Definition
GUIItemGrid.cs:194
GUIItemGrid.DrawItemHandler
Definition
GUIItemGrid.cs:277
GUIItemGrid.GetItemScaleHandler
Definition
GUIItemGrid.cs:226
ItemGrid_Layout
Definition
ItemGrid_Layout.cs:7
RightSideHUDAnchorUpdator.AllowRowHeight
static int AllowRowHeight
Definition
RightSideHUDAnchorUpdator.cs:59
RightSideHUDAnchorUpdator
Definition
RightSideHUDAnchorUpdator.cs:8
System.ArrayTypeMismatchException
Definition
ArrayTypeMismatchException.cs:9
Terraria.Lang.GetNPCNameValue
static string GetNPCNameValue(int netID)
Definition
Lang.cs:93
Terraria.Lang.GetMapObjectName
static string GetMapObjectName(int id)
Definition
Lang.cs:16
Terraria.Lang
Definition
Lang.cs:14
Terraria.Localization.Language.GetTextValue
static string GetTextValue(string key)
Definition
Language.cs:54
Terraria.Localization.Language
Definition
Language.cs:11
Terraria.Main.SceneMetrics
static SceneMetrics SceneMetrics
Definition
Main.cs:1791
Terraria.Main.myPlayer
static int myPlayer
Definition
Main.cs:2337
Terraria.Main.playerInventory
static bool playerInventory
Definition
Main.cs:2057
Terraria.Main
Definition
Main.cs:67
Terraria.SceneMetrics.bestOre
int bestOre
Definition
SceneMetrics.cs:1149
Controller
Definition
Axis.cs:4
Cpp2IlInjected
Definition
AnalysisFailedException.cs:4
Microsoft.Xna.Framework
Definition
AudioChannels.cs:4
System.ExceptionArgument.text
@ text
System.ExceptionArgument.index
@ index
System
Definition
__ComObject.cs:4
Terraria.Localization
Definition
GameCulture.cs:7
Terraria
Definition
Achievement.cs:10
Microsoft.Xna.Framework.Point
Definition
Point.cs:9
Microsoft.Xna.Framework.Rectangle
Definition
Rectangle.cs:9
Microsoft.Xna.Framework.Vector2.Length
float Length()
Definition
Vector2.cs:325
Microsoft.Xna.Framework.Vector2
Definition
Vector2.cs:10
Terraria.Tile.active
bool active()
Definition
Tile.cs:1241
Terraria.Tile
Definition
Tile.cs:12
source
GUIAccessoryInfo.cs
Generated by
1.10.0