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
UIDifficultyButton.cs
Go to the documentation of this file.
1using System;
5using Terraria.UI;
6
8{
9 // Token: 0x02000AB3 RID: 2739
11 {
12 // Token: 0x060050C2 RID: 20674 RVA: 0x0027E31C File Offset: 0x0027C51C
13 public UIDifficultyButton(Player player, LocalizedText title, LocalizedText description, byte difficulty, Color color)
14 {
15 int num = 1;
16 if (num == 0)
17 {
18 }
19 base..ctor();
20 this._player = player;
21 this._difficulty = difficulty;
22 if (num == 0)
23 {
24 }
25 if (17116 == 0)
26 {
27 }
28 }
29
30 // Token: 0x060050C3 RID: 20675 RVA: 0x0027E388 File Offset: 0x0027C588
31 protected override void DrawSelf(SpriteBatch spriteBatch)
32 {
33 if (!this._hovered)
34 {
35 return;
36 }
37 if (this._soundedHover)
38 {
39 return;
40 }
41 int num = 1;
42 this._soundedHover = num != 0;
43 Player player = this._player;
45 float height = this._dimensions.Height;
46 float x = this._dimensions.X;
47 float y = this._dimensions.Y;
48 float width = this._dimensions.Width;
49 byte difficulty = this._difficulty;
50 byte difficulty2 = player.difficulty;
51 if (player == null)
52 {
53 }
54 if (player == null)
55 {
56 }
57 int num2 = 32640;
58 int num3 = 32768;
59 if (this._BasePanelTexture == null)
60 {
61 }
62 if (num2 == 0)
63 {
64 }
65 if (this._hovered)
66 {
68 if (num2 == 0)
69 {
70 }
71 if (num3 == 0)
72 {
73 }
74 }
75 }
76
77 // Token: 0x060050C4 RID: 20676 RVA: 0x0027E440 File Offset: 0x0027C640
78 public override void LeftMouseDown(UIMouseEvent evt)
79 {
80 Player player = this._player;
81 byte difficulty = this._difficulty;
82 player.difficulty = difficulty;
83 base.LeftMouseDown(evt);
84 }
85
86 // Token: 0x060050C5 RID: 20677 RVA: 0x0027E46C File Offset: 0x0027C66C
87 public override void MouseOver(UIMouseEvent evt)
88 {
89 base.MouseOver(evt);
90 this._hovered = true;
91 }
92
93 // Token: 0x060050C6 RID: 20678 RVA: 0x0027E488 File Offset: 0x0027C688
94 public override void MouseOut(UIMouseEvent evt)
95 {
96 base.MouseOut(evt);
97 }
98
99 // Token: 0x0400897B RID: 35195
101
102 // Token: 0x0400897C RID: 35196
104
105 // Token: 0x0400897D RID: 35197
107
108 // Token: 0x0400897E RID: 35198
110
111 // Token: 0x0400897F RID: 35199
112 private readonly byte _difficulty;
113
114 // Token: 0x04008980 RID: 35200
116
117 // Token: 0x04008981 RID: 35201
118 private bool _hovered;
119
120 // Token: 0x04008982 RID: 35202
121 private bool _soundedHover;
122 }
123}
class f__AnonymousType0<< Count > j__TPar
override void DrawSelf(SpriteBatch spriteBatch)
UIDifficultyButton(Player player, LocalizedText title, LocalizedText description, byte difficulty, Color color)
CalculatedStyle _dimensions