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
GUIAchievementsMenu.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Collections.Generic
;
3
using
System.Runtime.InteropServices
;
4
using
Cpp2IlInjected
;
5
using
Microsoft.Xna.Framework
;
6
using
Microsoft.Xna.Framework.Graphics
;
7
using
Terraria
;
8
using
Terraria.Achievements
;
9
using
Terraria.Graphics
;
10
11
// Token: 0x02000256 RID: 598
12
public
class
GUIAchievementsMenu
13
{
14
// Token: 0x17000174 RID: 372
15
// (get) Token: 0x06000D5A RID: 3418 RVA: 0x0003FC38 File Offset: 0x0003DE38
16
private
GUIContollerTransactionButtonList
FilterListOptionsController
17
{
18
get
19
{
20
GUIContollerTransactionButtonList
filterListOptionsController
= this.
_filterListOptionsController
;
21
if
(filterListOptionsController !=
null
|| (
filterListOptionsController
!=
null
&&
filterListOptionsController
==
null
) || (
filterListOptionsController
!=
null
&&
filterListOptionsController
==
null
) || (
filterListOptionsController
!=
null
&&
filterListOptionsController
==
null
) ||
filterListOptionsController
==
null
||
filterListOptionsController
!=
null
)
22
{
23
}
24
throw
new
ArrayTypeMismatchException
();
25
}
26
}
27
28
// Token: 0x06000D5B RID: 3419 RVA: 0x0003FC6C File Offset: 0x0003DE6C
29
public
void
GotoAchievement
(
Achievement
achievement
)
30
{
31
int
id
=
achievement
.Id;
32
int
size = this.
SortedAchievementsData
.
_size
;
33
int
id2
= achievement.
Id
;
34
int
size2
= this.
SortedAchievementsData
.
_size
;
35
}
36
37
// Token: 0x17000175 RID: 373
38
// (get) Token: 0x06000D5C RID: 3420 RVA: 0x0003FCBC File Offset: 0x0003DEBC
39
private
List<Achievement>
Achievements
40
{
41
get
42
{
43
List<Achievement>
list
;
44
if
(this.
_achievements
==
null
)
45
{
46
list =
Main
.
Achievements
.
CreateAchievementsList
();
47
this._achievements
=
list
;
48
}
49
return
list
;
50
}
51
}
52
53
// Token: 0x06000D5D RID: 3421 RVA: 0x0003FCE8 File Offset: 0x0003DEE8
54
public
void
Open
(
int
backTo
,
int
selected
= -1)
55
{
56
this._source
=
backTo
;
57
}
58
59
// Token: 0x06000D5E RID: 3422 RVA: 0x0003FD94 File Offset: 0x0003DF94
60
private
void
DrawFilters
()
61
{
62
List<bool>
list
= this.
catButtonsActive
;
63
}
64
65
// Token: 0x06000D5F RID: 3423 RVA: 0x0003FDE0 File Offset: 0x0003DFE0
66
public
void
Draw
()
67
{
68
if
(this.
displayFilters
)
69
{
70
GUIContollerTransactionButtonList
filterListOptionsController
= this.
FilterListOptionsController
;
71
GUIContollerTransactionButtonList
filterListOptionsController2
= this.
FilterListOptionsController
;
72
GUIContollerTransactionButtonList
filterListOptionsController3
= this.
FilterListOptionsController
;
73
int
num = 3;
74
filterListOptionsController3._selectedItem
= num;
75
return
;
76
}
77
GUIControllerAchievements
controllerInput
= this.
_controllerInput
;
78
}
79
80
// Token: 0x06000D60 RID: 3424 RVA: 0x0003FE6C File Offset: 0x0003E06C
81
public
void
Back
()
82
{
83
int
source
= this.
_source
;
84
}
85
86
// Token: 0x06000D61 RID: 3425 RVA: 0x000021DB File Offset: 0x000003DB
87
private
void
AchievementDraw
(
ItemGrid_Layout
gridLayout
,
int
index
,
Vector2
position,
float
scale)
88
{
89
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
90
}
91
92
// Token: 0x06000D62 RID: 3426 RVA: 0x000021DB File Offset: 0x000003DB
93
private
float
AchievementScale
(
int
index
)
94
{
95
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
96
}
97
98
// Token: 0x06000D63 RID: 3427 RVA: 0x0003FEB8 File Offset: 0x0003E0B8
99
private
void
AchievementOver
(
int
index
)
100
{
101
this.achievementOver
=
index
;
102
if
(!
true
)
103
{
104
}
105
bool
mouseLeft =
Main
.
mouseLeft
;
106
if
(!
true
)
107
{
108
}
109
bool
mouseLeftRelease =
Main
.
mouseLeftRelease
;
110
bool
flag = this.
allowItemClicking
;
111
if
(!flag)
112
{
113
if
(!flag)
114
{
115
}
116
bool
mouseLeftRelease2
=
Main
.
mouseLeftRelease
;
117
this.allowItemClicking
=
true
;
118
}
119
if
(!
true
)
120
{
121
}
122
bool
mouseLeft2
=
Main
.
mouseLeft
;
123
DateTime
lastTouchTime
= this.
LastTouchTime
;
124
if
(!
true
)
125
{
126
}
127
bool
flag2
= this.
allowItemClicking
;
128
if
(flag2)
129
{
130
if
(!
flag2
)
131
{
132
}
133
DateTime
now
=
DateTime
.
Now
;
134
this.LastTouchTime
=
now
;
135
if
(!
flag2
)
136
{
137
}
138
int
mouseX =
Main
.
mouseX
;
139
int
mouseY =
Main
.
mouseY
;
140
this.LastTouchMouse
=
flag2
;
141
}
142
if
(!
flag2
)
143
{
144
}
145
bool
mouseLeft3
=
Main
.
mouseLeft
;
146
DateTime
lastTouchTime2
= this.
LastTouchTime
;
147
if
(!flag2)
148
{
149
}
150
if
(!
flag2
)
151
{
152
}
153
DateTime
now2
=
DateTime
.
Now
;
154
DateTime
lastTouchTime3
= this.
LastTouchTime
;
155
double
totalMilliseconds
= (now2 -
lastTouchTime3
).TotalMilliseconds;
156
float
x = this.
LastTouchMouse
.
X
;
157
float
y = this.
LastTouchMouse
.
Y
;
158
int
mouseX2
=
Main
.
mouseX
;
159
int
mouseY2
=
Main
.
mouseY
;
160
this.SelectedItem
=
index
;
161
}
162
163
// Token: 0x06000D64 RID: 3428 RVA: 0x0003FFE8 File Offset: 0x0003E1E8
164
public
static
void
LoadContent
()
165
{
166
Texture2D
texture2D
=
TextureManager
.
Load
(
"Images/UI/Achievement_Categories"
);
167
}
168
169
// Token: 0x06000D65 RID: 3429 RVA: 0x000021DB File Offset: 0x000003DB
170
public
void
UpdateAchievements
()
171
{
172
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
173
}
174
175
// Token: 0x06000D66 RID: 3430 RVA: 0x000021DB File Offset: 0x000003DB
176
public
void
SortAndFilderAchievements
()
177
{
178
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
179
}
180
181
// Token: 0x06000D67 RID: 3431 RVA: 0x00040000 File Offset: 0x0003E200
182
private
int
SortEntry
(
Achievement
a,
Achievement
b)
183
{
184
bool
isCompleted = a.
IsCompleted
;
185
bool
isCompleted2
= b.
IsCompleted
;
186
bool
isCompleted3
= a.
IsCompleted
;
187
bool
isCompleted4
= b.
IsCompleted
;
188
return
1;
189
}
190
191
// Token: 0x06000D68 RID: 3432 RVA: 0x00040040 File Offset: 0x0003E240
192
private
void
DrawProgressBar
(
SpriteBatch
spriteBatch,
float
progress,
Vector2
spot
,
float
Width = 169f, [Optional]
Color
BackColor
, [Optional]
Color
FillingColor, [Optional]
Color
BlipColor
)
193
{
194
int
num = 1;
195
if
(num == 0)
196
{
197
}
198
if
(num == 0)
199
{
200
}
201
if
(num == 0)
202
{
203
}
204
if
(!
true
)
205
{
206
}
207
if
(!
true
)
208
{
209
}
210
int
num2
= 1;
211
if
(
num2
== 0)
212
{
213
}
214
int
value
=
num2
.m_value;
215
if
(!
true
)
216
{
217
}
218
int
num3
= 1;
219
if
(
num3
== 0)
220
{
221
}
222
int
value2
=
num3
.m_value;
223
if
(!
true
)
224
{
225
}
226
if
(!
true
)
227
{
228
}
229
if
(32768 == 0)
230
{
231
}
232
}
233
234
// Token: 0x06000D69 RID: 3433 RVA: 0x00040128 File Offset: 0x0003E328
235
public
GUIAchievementsMenu
()
236
{
237
if
(!
true
)
238
{
239
}
240
this.LastTouchTime
= 1;
241
if
(!
true
)
242
{
243
}
244
if
(!
true
)
245
{
246
}
247
this.allowItemClicking
=
true
;
248
this.LastTouchMouse
= 1;
249
this._tooltip
=
""
;
250
this.achievementOver
=
""
;
251
base
..ctor();
252
}
253
254
// Token: 0x040018B9 RID: 6329
255
private
GUIControllerAchievements
_controllerInput
;
256
257
// Token: 0x040018BA RID: 6330
258
private
GUIContollerTransactionButtonList
_filterListOptionsController
;
259
260
// Token: 0x040018BB RID: 6331
261
private
const
double
SINGLE_CLICK_TIME
= 350.0;
262
263
// Token: 0x040018BC RID: 6332
264
private
const
float
SINGLE_CLICK_DISTANCE
= 30f;
265
266
// Token: 0x040018BD RID: 6333
267
private
DateTime
LastTouchTime
;
268
269
// Token: 0x040018BE RID: 6334
270
private
Vector2
LastTouchMouse
;
271
272
// Token: 0x040018BF RID: 6335
273
private
int
_source
;
274
275
// Token: 0x040018C0 RID: 6336
276
private
bool
allowItemClicking
;
277
278
// Token: 0x040018C1 RID: 6337
279
private
float
TitleScale
;
280
281
// Token: 0x040018C2 RID: 6338
282
private
float
BackScale
;
283
284
// Token: 0x040018C3 RID: 6339
285
public
float
ScrollOffset
;
286
287
// Token: 0x040018C4 RID: 6340
288
private
float
ScrollMomentum
;
289
290
// Token: 0x040018C5 RID: 6341
291
private
int
ScrollDragging
;
292
293
// Token: 0x040018C6 RID: 6342
294
private
Vector2
DragOffset
;
295
296
// Token: 0x040018C7 RID: 6343
297
public
int
SelectedItem
;
298
299
// Token: 0x040018C8 RID: 6344
300
public
int
SelectedItemId
;
301
302
// Token: 0x040018C9 RID: 6345
303
private
Vector2
InGameWindowShift
;
304
305
// Token: 0x040018CA RID: 6346
306
private
List<bool>
catButtonsActive
;
307
308
// Token: 0x040018CB RID: 6347
309
private
List<Achievement>
_achievements
;
310
311
// Token: 0x040018CC RID: 6348
312
public
List<Achievement>
SortedAchievementsData
;
313
314
// Token: 0x040018CD RID: 6349
315
private
static
Texture2D
AchievementsIcons
;
316
317
// Token: 0x040018CE RID: 6350
318
private
static
Texture2D
AchievementsCategories
;
319
320
// Token: 0x040018CF RID: 6351
321
private
static
Texture2D
AchievementsIconBorder
;
322
323
// Token: 0x040018D0 RID: 6352
324
private
string
_tooltip
;
325
326
// Token: 0x040018D1 RID: 6353
327
private
bool
_tooltipShow
;
328
329
// Token: 0x040018D2 RID: 6354
330
private
Vector2
_tooltipLocation
;
331
332
// Token: 0x040018D3 RID: 6355
333
private
DateTime
_tooltipTime
;
334
335
// Token: 0x040018D4 RID: 6356
336
private
Vector2
startPoint
;
337
338
// Token: 0x040018D5 RID: 6357
339
private
float
[]
catScale
;
340
341
// Token: 0x040018D6 RID: 6358
342
private
bool
displayFilters
;
343
344
// Token: 0x040018D7 RID: 6359
345
private
float
filtersScale
;
346
347
// Token: 0x040018D8 RID: 6360
348
private
int
achievementOver
;
349
350
// Token: 0x02000257 RID: 599
351
public
class
AchievementFileData
352
{
353
// Token: 0x06000D6A RID: 3434 RVA: 0x00040170 File Offset: 0x0003E370
354
public
AchievementFileData
()
355
{
356
}
357
358
// Token: 0x040018D9 RID: 6361
359
public
string
Name
;
360
}
361
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Cpp2IlInjected.AnalysisFailedException
Definition
AnalysisFailedException.cs:7
GUIAchievementsMenu.AchievementFileData.AchievementFileData
AchievementFileData()
Definition
GUIAchievementsMenu.cs:354
GUIAchievementsMenu.AchievementFileData.Name
string Name
Definition
GUIAchievementsMenu.cs:359
GUIAchievementsMenu.AchievementFileData
Definition
GUIAchievementsMenu.cs:352
GUIAchievementsMenu.BackScale
float BackScale
Definition
GUIAchievementsMenu.cs:282
GUIAchievementsMenu.ScrollOffset
float ScrollOffset
Definition
GUIAchievementsMenu.cs:285
GUIAchievementsMenu.SelectedItem
int SelectedItem
Definition
GUIAchievementsMenu.cs:297
GUIAchievementsMenu._filterListOptionsController
GUIContollerTransactionButtonList _filterListOptionsController
Definition
GUIAchievementsMenu.cs:258
GUIAchievementsMenu.filtersScale
float filtersScale
Definition
GUIAchievementsMenu.cs:345
GUIAchievementsMenu.Back
void Back()
Definition
GUIAchievementsMenu.cs:81
GUIAchievementsMenu.allowItemClicking
bool allowItemClicking
Definition
GUIAchievementsMenu.cs:276
GUIAchievementsMenu.ScrollMomentum
float ScrollMomentum
Definition
GUIAchievementsMenu.cs:288
GUIAchievementsMenu.LastTouchTime
DateTime LastTouchTime
Definition
GUIAchievementsMenu.cs:267
GUIAchievementsMenu.InGameWindowShift
Vector2 InGameWindowShift
Definition
GUIAchievementsMenu.cs:303
GUIAchievementsMenu.GUIAchievementsMenu
GUIAchievementsMenu()
Definition
GUIAchievementsMenu.cs:235
GUIAchievementsMenu._tooltipLocation
Vector2 _tooltipLocation
Definition
GUIAchievementsMenu.cs:330
GUIAchievementsMenu._source
int _source
Definition
GUIAchievementsMenu.cs:273
GUIAchievementsMenu.AchievementsIconBorder
static Texture2D AchievementsIconBorder
Definition
GUIAchievementsMenu.cs:321
GUIAchievementsMenu.ScrollDragging
int ScrollDragging
Definition
GUIAchievementsMenu.cs:291
GUIAchievementsMenu.AchievementOver
void AchievementOver(int index)
Definition
GUIAchievementsMenu.cs:99
GUIAchievementsMenu.AchievementsIcons
static Texture2D AchievementsIcons
Definition
GUIAchievementsMenu.cs:315
GUIAchievementsMenu.SortedAchievementsData
List< Achievement > SortedAchievementsData
Definition
GUIAchievementsMenu.cs:312
GUIAchievementsMenu.achievementOver
int achievementOver
Definition
GUIAchievementsMenu.cs:348
GUIAchievementsMenu.UpdateAchievements
void UpdateAchievements()
Definition
GUIAchievementsMenu.cs:170
GUIAchievementsMenu.displayFilters
bool displayFilters
Definition
GUIAchievementsMenu.cs:342
GUIAchievementsMenu.DrawFilters
void DrawFilters()
Definition
GUIAchievementsMenu.cs:60
GUIAchievementsMenu.SelectedItemId
int SelectedItemId
Definition
GUIAchievementsMenu.cs:300
GUIAchievementsMenu._tooltipShow
bool _tooltipShow
Definition
GUIAchievementsMenu.cs:327
GUIAchievementsMenu.SortAndFilderAchievements
void SortAndFilderAchievements()
Definition
GUIAchievementsMenu.cs:176
GUIAchievementsMenu.FilterListOptionsController
GUIContollerTransactionButtonList FilterListOptionsController
Definition
GUIAchievementsMenu.cs:17
GUIAchievementsMenu.DrawProgressBar
void DrawProgressBar(SpriteBatch spriteBatch, float progress, Vector2 spot, float Width=169f, [Optional] Color BackColor, [Optional] Color FillingColor, [Optional] Color BlipColor)
Definition
GUIAchievementsMenu.cs:192
GUIAchievementsMenu.AchievementScale
float AchievementScale(int index)
Definition
GUIAchievementsMenu.cs:93
GUIAchievementsMenu.startPoint
Vector2 startPoint
Definition
GUIAchievementsMenu.cs:336
GUIAchievementsMenu.GotoAchievement
void GotoAchievement(Achievement achievement)
Definition
GUIAchievementsMenu.cs:29
GUIAchievementsMenu.LastTouchMouse
Vector2 LastTouchMouse
Definition
GUIAchievementsMenu.cs:270
GUIAchievementsMenu.catScale
float[] catScale
Definition
GUIAchievementsMenu.cs:339
GUIAchievementsMenu.LoadContent
static void LoadContent()
Definition
GUIAchievementsMenu.cs:164
GUIAchievementsMenu._controllerInput
GUIControllerAchievements _controllerInput
Definition
GUIAchievementsMenu.cs:255
GUIAchievementsMenu.DragOffset
Vector2 DragOffset
Definition
GUIAchievementsMenu.cs:294
GUIAchievementsMenu.SortEntry
int SortEntry(Achievement a, Achievement b)
Definition
GUIAchievementsMenu.cs:182
GUIAchievementsMenu.Open
void Open(int backTo, int selected=-1)
Definition
GUIAchievementsMenu.cs:54
GUIAchievementsMenu._tooltipTime
DateTime _tooltipTime
Definition
GUIAchievementsMenu.cs:333
GUIAchievementsMenu.SINGLE_CLICK_DISTANCE
const float SINGLE_CLICK_DISTANCE
Definition
GUIAchievementsMenu.cs:264
GUIAchievementsMenu._tooltip
string _tooltip
Definition
GUIAchievementsMenu.cs:324
GUIAchievementsMenu.SINGLE_CLICK_TIME
const double SINGLE_CLICK_TIME
Definition
GUIAchievementsMenu.cs:261
GUIAchievementsMenu.AchievementsCategories
static Texture2D AchievementsCategories
Definition
GUIAchievementsMenu.cs:318
GUIAchievementsMenu.AchievementDraw
void AchievementDraw(ItemGrid_Layout gridLayout, int index, Vector2 position, float scale)
Definition
GUIAchievementsMenu.cs:87
GUIAchievementsMenu.TitleScale
float TitleScale
Definition
GUIAchievementsMenu.cs:279
GUIAchievementsMenu.catButtonsActive
List< bool > catButtonsActive
Definition
GUIAchievementsMenu.cs:306
GUIAchievementsMenu.Draw
void Draw()
Definition
GUIAchievementsMenu.cs:66
GUIAchievementsMenu._achievements
List< Achievement > _achievements
Definition
GUIAchievementsMenu.cs:309
GUIAchievementsMenu
Definition
GUIAchievementsMenu.cs:13
GUIContollerTransactionButtonList
Definition
GUIContollerTransactionButtonList.cs:8
GUIControllerAchievements
Definition
GUIControllerAchievements.cs:6
ItemGrid_Layout
Definition
ItemGrid_Layout.cs:7
Microsoft.Xna.Framework.Graphics.SpriteBatch
Definition
SpriteBatch.cs:14
Microsoft.Xna.Framework.Graphics.Texture2D
Definition
Texture2D.cs:10
System.ArrayTypeMismatchException
Definition
ArrayTypeMismatchException.cs:9
System.Collections.Generic.List._size
int _size
Definition
List.cs:394
System.Collections.Generic.List
Definition
List.cs:13
Terraria.Achievements.AchievementManager.CreateAchievementsList
List< Achievement > CreateAchievementsList()
Definition
AchievementManager.cs:78
Terraria.Achievements.Achievement.Id
readonly int Id
Definition
Achievement.cs:286
Terraria.Achievements.Achievement.IsCompleted
bool IsCompleted
Definition
Achievement.cs:83
Terraria.Achievements.Achievement
Definition
Achievement.cs:14
Terraria.Graphics.TextureManager.Load
static Texture2D Load(string name)
Definition
TextureManager.cs:20
Terraria.Graphics.TextureManager
Definition
TextureManager.cs:10
Terraria.Main.Achievements
static AchievementManager Achievements
Definition
Main.cs:4221
Terraria.Main.mouseLeftRelease
static bool mouseLeftRelease
Definition
Main.cs:2029
Terraria.Main.mouseY
static int mouseY
Definition
Main.cs:601
Terraria.Main.mouseX
static int mouseX
Definition
Main.cs:587
Terraria.Main.mouseLeft
static bool mouseLeft
Definition
Main.cs:671
Terraria.Main
Definition
Main.cs:67
Cpp2IlInjected
Definition
AnalysisFailedException.cs:4
Microsoft.Xna.Framework.Graphics
Definition
Blend.cs:4
Microsoft.Xna.Framework
Definition
AudioChannels.cs:4
System.Collections.Generic
Definition
ArrayBuilder.cs:5
System.Runtime.InteropServices
Definition
_Activator.cs:4
System.ExceptionArgument.list
@ list
System.ExceptionArgument.value
@ value
System.ExceptionArgument.source
@ source
System.ExceptionArgument.index
@ index
System
Definition
__ComObject.cs:4
Terraria.Achievements
Definition
Achievement.cs:10
Terraria.Graphics
Definition
Camera.cs:6
Terraria
Definition
Achievement.cs:10
Microsoft.Xna.Framework.Graphics.Color
Definition
Color.cs:12
Microsoft.Xna.Framework.Vector2.X
float X
Definition
Vector2.cs:698
Microsoft.Xna.Framework.Vector2.Y
float Y
Definition
Vector2.cs:701
Microsoft.Xna.Framework.Vector2
Definition
Vector2.cs:10
System.DateTime.Now
static DateTime Now
Definition
DateTime.cs:530
System.DateTime
Definition
DateTime.cs:13
source
GUIAchievementsMenu.cs
Generated by
1.10.0