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
GUIPVPIcons.cs
Go to the documentation of this file.
1using System;
2using Controller;
5using Terraria;
7using Terraria.UI;
8
9// Token: 0x02000166 RID: 358
10public class GUIPVPIcons
11{
12 // Token: 0x17000104 RID: 260
13 // (get) Token: 0x060009FA RID: 2554 RVA: 0x0002F3FC File Offset: 0x0002D5FC
14 public bool Collapsed
15 {
16 get
17 {
18 if (!true)
19 {
20 }
22 }
23 }
24
25 // Token: 0x060009FB RID: 2555 RVA: 0x0002F41C File Offset: 0x0002D61C
32
33 // Token: 0x060009FC RID: 2556 RVA: 0x0002F438 File Offset: 0x0002D638
35 {
38 return rectangle;
39 }
40
41 // Token: 0x060009FD RID: 2557 RVA: 0x0002F44C File Offset: 0x0002D64C
42 public bool ShowTeamGrids()
43 {
44 return this.ShowTeamGrid;
45 }
46
47 // Token: 0x17000105 RID: 261
48 // (get) Token: 0x060009FE RID: 2558 RVA: 0x0002F460 File Offset: 0x0002D660
49 public bool HasFocus
50 {
51 get
52 {
54 return true;
55 }
56 }
57
58 // Token: 0x060009FF RID: 2559 RVA: 0x0002F478 File Offset: 0x0002D678
59 public void DrawTeamGrid()
60 {
61 if (this.ShowTeamGrid)
62 {
63 Rectangle region = this.GetRegion();
67 return;
68 }
69 if (this.pickingInterceptor != null)
70 {
71 }
74 if (32640 == 0)
75 {
76 }
78 if (guiinputRegionExclusive != null)
79 {
80 int num = 1;
82 }
83 }
84
85 // Token: 0x06000A00 RID: 2560 RVA: 0x0002F4E0 File Offset: 0x0002D6E0
87 {
89 {
90 }
91 if (this.TeamGridActive)
92 {
95 return true;
96 }
97 }
98
99 // Token: 0x06000A01 RID: 2561 RVA: 0x0002F510 File Offset: 0x0002D710
100 public void Draw()
101 {
102 if (!true)
103 {
104 }
105 if (!true)
106 {
107 }
110 bool playerOver = this._playerOver;
111 if (!playerOver)
112 {
113 this._lastPlayerOver = (playerOver ? 1 : 0);
114 }
115 if (!playerOver)
116 {
117 }
118 if (!playerOver)
119 {
120 }
121 int num = 255;
122 if (num == 0)
123 {
124 }
125 if (num == 0)
126 {
127 }
128 int myPlayer = Main.myPlayer;
130 if (rectangle == null)
131 {
132 }
133 int myPlayer2 = Main.myPlayer;
134 int myPlayer3 = Main.myPlayer;
136 int myPlayer4 = Main.myPlayer;
137 int num2 = 1936;
138 if (num2 == 0)
139 {
140 }
141 int teamCooldown = Main.teamCooldown;
143 if (num2 == 0)
144 {
145 }
146 }
147
148 // Token: 0x06000A02 RID: 2562 RVA: 0x0002F870 File Offset: 0x0002DA70
149 public void OnPlayerDisconected(int player)
150 {
152 {
153 int selectedPlayer = this.SelectedPlayer;
154 }
155 }
156
157 // Token: 0x06000A03 RID: 2563 RVA: 0x0002F88C File Offset: 0x0002DA8C
159 {
161 Main.gameMenu = true;
162 if (!true)
163 {
164 }
166 Main.gameMenu = false;
167 }
168
169 // Token: 0x06000A04 RID: 2564 RVA: 0x0002F8B8 File Offset: 0x0002DAB8
171 {
174 string textValue = Language.GetTextValue("Mobile.VoiceMute");
175 string textValue2 = Language.GetTextValue("Mobile.ViewPlayerProfile");
178 {
179 return;
180 }
181 }
182
183 // Token: 0x06000A05 RID: 2565 RVA: 0x0002F948 File Offset: 0x0002DB48
185 {
186 int num = 1;
188 if (num == 0)
189 {
190 }
192 string textValue = Language.GetTextValue("GameUI.PlayerLifeMax");
193 string text2;
194 string text = text2 + textValue;
195 }
196
197 // Token: 0x06000A06 RID: 2566 RVA: 0x0002FA80 File Offset: 0x0002DC80
198 public void DrawSelectedPlayer()
199 {
200 if (!true)
201 {
202 }
203 if (!true)
204 {
205 }
206 int num = 16256;
210 if (this.pickingInterceptor != null)
211 {
212 }
214 if (!true)
215 {
216 }
217 if (num == 0)
218 {
219 }
222 string text;
224 if (connectedPlayers2 == null)
225 {
226 }
227 int myPlayer = Main.myPlayer;
228 int myPlayer2 = Main.myPlayer;
230 }
231
232 // Token: 0x06000A07 RID: 2567 RVA: 0x0002FB48 File Offset: 0x0002DD48
233 private void RefreshPlayerList()
234 {
235 int num = 1;
236 if (num == 0)
237 {
238 }
239 bool gameMenu = Main.gameMenu;
240 if (num == 0)
241 {
242 }
243 if (num != 0)
244 {
245 if (num == 0)
246 {
247 }
248 if (num != 0)
249 {
253 }
254 }
255 int selectedPlayer = this.SelectedPlayer;
257 }
258
259 // Token: 0x06000A08 RID: 2568 RVA: 0x0002FB98 File Offset: 0x0002DD98
260 public float TeamScale(int index)
261 {
262 /*
263An exception occurred when decompiling this method (06000A08)
264
265ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single GUIPVPIcons::TeamScale(System.Int32)
266
267 ---> System.Exception: Basic block has to end with unconditional control flow.
268{
269 Block_0:
270 stloc:!0(var_0_05, callgetter:!0(PageControllerLayoutDefinition`1::get_Instance))
271}
272
273 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
274 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
275 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
276 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
277 --- End of inner exception stack trace ---
278 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
279 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
280*/;
281 }
282
283 // Token: 0x06000A09 RID: 2569 RVA: 0x0002FBAC File Offset: 0x0002DDAC
284 public void TeamOver(int index)
285 {
286 int num = 1;
288 if (num == 0)
289 {
290 }
292 if (num == 0)
293 {
294 }
295 bool mouseLeft = Main.mouseLeft;
296 if (num == 0)
297 {
298 }
299 bool mouseLeftRelease = Main.mouseLeftRelease;
300 if (num == 0)
301 {
302 }
303 int myPlayer = Main.myPlayer;
304 }
305
306 // Token: 0x06000A0A RID: 2570 RVA: 0x0002FCA0 File Offset: 0x0002DEA0
307 public void TeamDraw(ItemGrid_Layout gridLayout, int index, Vector2 position, float scale)
308 {
310 int myPlayer = Main.myPlayer;
311 if (this.HoverTeam == 0)
312 {
313 }
314 string text;
315 string textValue = Language.GetTextValue("ControllerMappings.PVPTeam" + text);
316 if ("ControllerMappings.PVPTeam" == null)
317 {
318 }
319 int hoverTeam = this.HoverTeam;
320 Cursor cursor;
321 if (cursor != null)
322 {
323 }
324 int myPlayer2 = Main.myPlayer;
325 }
326
327 // Token: 0x06000A0B RID: 2571 RVA: 0x0002FD04 File Offset: 0x0002DF04
328 public float PlayerScale(int index)
329 {
330 /*
331An exception occurred when decompiling this method (06000A0B)
332
333ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single GUIPVPIcons::PlayerScale(System.Int32)
334
335 ---> System.Exception: Basic block has to end with unconditional control flow.
336{
337 Block_0:
338 stloc:!0(var_0_05, callgetter:!0(PageControllerLayoutDefinition`1::get_Instance))
339}
340
341 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
342 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
343 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
344 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
345 --- End of inner exception stack trace ---
346 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
347 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
348*/;
349 }
350
351 // Token: 0x06000A0C RID: 2572 RVA: 0x0002FD18 File Offset: 0x0002DF18
352 public void PlayerOver(int index)
353 {
354 int num = 38;
356 bool mouseLeft = Main.mouseLeft;
357 bool mouseLeftRelease = Main.mouseLeftRelease;
358 }
359
360 // Token: 0x06000A0D RID: 2573 RVA: 0x0002FD50 File Offset: 0x0002DF50
361 public void PlayerDraw(ItemGrid_Layout gridLayout, int index, Vector2 position, float scale)
362 {
364 if (this.ConnectedPlayerCount == 0)
365 {
366 }
368 }
369
370 // Token: 0x06000A0E RID: 2574 RVA: 0x0002FE34 File Offset: 0x0002E034
371 private void DrawPlayer(Player player, Vector2 position, Vector2 size, bool animated)
372 {
373 }
374
375 // Token: 0x06000A0F RID: 2575 RVA: 0x0002FE44 File Offset: 0x0002E044
376 public GUIPVPIcons()
377 {
378 }
379
380 // Token: 0x040009D7 RID: 2519
381 private int HoverPlayer;
382
383 // Token: 0x040009D8 RID: 2520
384 private int HoverTeam;
385
386 // Token: 0x040009D9 RID: 2521
387 private int SelectedPlayer;
388
389 // Token: 0x040009DA RID: 2522
390 private float PVPEnabledScale;
391
392 // Token: 0x040009DB RID: 2523
393 private float SelectedplayerScale;
394
395 // Token: 0x040009DC RID: 2524
397
398 // Token: 0x040009DD RID: 2525
399 private int[] ConnectedPlayers;
400
401 // Token: 0x040009DE RID: 2526
402 public bool ShowTeamGrid;
403
404 // Token: 0x040009DF RID: 2527
405 public bool TeamGridActive;
406
407 // Token: 0x040009E0 RID: 2528
408 public float scrollOffset;
409
410 // Token: 0x040009E1 RID: 2529
411 private float scrollMomentum;
412
413 // Token: 0x040009E2 RID: 2530
414 private int scrollDragging;
415
416 // Token: 0x040009E3 RID: 2531
418
419 // Token: 0x040009E4 RID: 2532
420 private float scrollDelay;
421
422 // Token: 0x040009E5 RID: 2533
423 public string playerString;
424
425 // Token: 0x040009E6 RID: 2534
426 private int _lastPlayerOver;
427
428 // Token: 0x040009E7 RID: 2535
429 private bool _playerOver;
430
431 // Token: 0x040009E8 RID: 2536
433
434 // Token: 0x040009E9 RID: 2537
436
437 // Token: 0x040009EA RID: 2538
439
440 // Token: 0x040009EB RID: 2539
442
443 // Token: 0x040009EC RID: 2540
445
446 // Token: 0x040009ED RID: 2541
447 private string playerStringBanner;
448
449 // Token: 0x040009EE RID: 2542
451}
class f__AnonymousType0<< Count > j__TPar
static void SetGridItemRegion(Rectangle region)
static DrPlatform.DrPlatformType CurrentPlatform
Definition DrPlatform.cs:26
void DrawSelectedPlayerTeamOnlyElements(bool sameTeam, bool isMyPlayer)
void TeamDraw(ItemGrid_Layout gridLayout, int index, Vector2 position, float scale)
void LoadPageRegion()
Player EmptyPlayer
string playerStringBanner
int ConnectedPlayerCount
string playerString
Rectangle GetRegion()
void DrawSelectedPlayer()
float TeamScale(int index)
float scrollOffset
void DrawTeamGrid()
void PlayerDraw(ItemGrid_Layout gridLayout, int index, Vector2 position, float scale)
GUIInputRegionExclusive pickingInterceptor
int _lastPlayerOver
float scrollMomentum
bool IsOver(Vector2 cursorPosition)
int[] ConnectedPlayers
void DrawSelectedPlayerImage()
void DrawSelectedPlayerPlatformControls()
float scrollDelay
Vector2 CharacterDrawOffset
void RefreshPlayerList()
float PlayerScale(int index)
Vector2 dragOffset
bool DrawSelectedPlayerOverlay
Player clonePlayer
bool TeamGridActive
bool ShowTeamGrids()
void DrawPlayer(Player player, Vector2 position, Vector2 size, bool animated)
void TeamOver(int index)
float SelectedplayerScale
void OnPlayerDisconected(int player)
float PVPEnabledScale
void PlayerOver(int index)
int DrawSelectedPlayerOverlayStart
bool ShowTeamGrid
static Rectangle GetRegion(TransactionButton_Layout layout)
bool IsCollapsed(GUIPageIcons.Category category)
static InterfaceProfile_Layout Active
static string GetTextValue(string key)
Definition Language.cs:54
static void FlushBatches()
Definition Main.cs:5092
static int myPlayer
Definition Main.cs:2337
static bool mouseLeftRelease
Definition Main.cs:2029
static int teamCooldown
Definition Main.cs:1567
static bool gameMenu
Definition Main.cs:2673
static bool mouseLeft
Definition Main.cs:671
static void UpdateTooltipContext(int context, int slot)
Definition ItemSlot.cs:972
static bool ControllerModeLocked