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.
1using System;
7using Terraria;
10
11// Token: 0x02000256 RID: 598
13{
14 // Token: 0x17000174 RID: 372
15 // (get) Token: 0x06000D5A RID: 3418 RVA: 0x0003FC38 File Offset: 0x0003DE38
27
28 // Token: 0x06000D5B RID: 3419 RVA: 0x0003FC6C File Offset: 0x0003DE6C
30 {
31 int id = achievement.Id;
32 int size = this.SortedAchievementsData._size;
33 int id2 = achievement.Id;
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 {
44 if (this._achievements == null)
45 {
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 {
57 }
58
59 // Token: 0x06000D5E RID: 3422 RVA: 0x0003FD94 File Offset: 0x0003DF94
60 private void DrawFilters()
61 {
63 }
64
65 // Token: 0x06000D5F RID: 3423 RVA: 0x0003FDE0 File Offset: 0x0003DFE0
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 {
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 }
118 }
119 if (!true)
120 {
121 }
124 if (!true)
125 {
126 }
127 bool flag2 = this.allowItemClicking;
128 if (flag2)
129 {
130 if (!flag2)
131 {
132 }
135 if (!flag2)
136 {
137 }
138 int mouseX = Main.mouseX;
139 int mouseY = Main.mouseY;
141 }
142 if (!flag2)
143 {
144 }
147 if (!flag2)
148 {
149 }
150 if (!flag2)
151 {
152 }
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;
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
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
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
236 {
237 if (!true)
238 {
239 }
241 if (!true)
242 {
243 }
244 if (!true)
245 {
246 }
249 this._tooltip = "";
251 base..ctor();
252 }
253
254 // Token: 0x040018B9 RID: 6329
256
257 // Token: 0x040018BA RID: 6330
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
268
269 // Token: 0x040018BE RID: 6334
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
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
304
305 // Token: 0x040018CA RID: 6346
307
308 // Token: 0x040018CB RID: 6347
310
311 // Token: 0x040018CC RID: 6348
313
314 // Token: 0x040018CD RID: 6349
316
317 // Token: 0x040018CE RID: 6350
319
320 // Token: 0x040018CF RID: 6351
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
331
332 // Token: 0x040018D3 RID: 6355
334
335 // Token: 0x040018D4 RID: 6356
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
352 {
353 // Token: 0x06000D6A RID: 3434 RVA: 0x00040170 File Offset: 0x0003E370
355 {
356 }
357
358 // Token: 0x040018D9 RID: 6361
359 public string Name;
360 }
361}
class f__AnonymousType0<< Count > j__TPar
GUIContollerTransactionButtonList _filterListOptionsController
static Texture2D AchievementsIconBorder
void AchievementOver(int index)
static Texture2D AchievementsIcons
List< Achievement > SortedAchievementsData
GUIContollerTransactionButtonList FilterListOptionsController
void DrawProgressBar(SpriteBatch spriteBatch, float progress, Vector2 spot, float Width=169f, [Optional] Color BackColor, [Optional] Color FillingColor, [Optional] Color BlipColor)
float AchievementScale(int index)
void GotoAchievement(Achievement achievement)
GUIControllerAchievements _controllerInput
int SortEntry(Achievement a, Achievement b)
void Open(int backTo, int selected=-1)
static Texture2D AchievementsCategories
void AchievementDraw(ItemGrid_Layout gridLayout, int index, Vector2 position, float scale)
List< Achievement > _achievements
static Texture2D Load(string name)
static AchievementManager Achievements
Definition Main.cs:4221
static bool mouseLeftRelease
Definition Main.cs:2029
static int mouseY
Definition Main.cs:601
static int mouseX
Definition Main.cs:587
static bool mouseLeft
Definition Main.cs:671
static DateTime Now
Definition DateTime.cs:530