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
UIAchievementListItem.cs
Go to the documentation of this file.
1using System;
8using Terraria.UI;
9
11{
12 // Token: 0x02000A93 RID: 2707
14 {
15 // Token: 0x06004FEB RID: 20459 RVA: 0x0027BAD8 File Offset: 0x00279CD8
17 {
18 int num = 1;
19 base..ctor();
20 if (num == 0)
21 {
22 }
23 Color color;
27 bool large = this._large;
28 int num2 = true.ToInt();
29 int num3 = this._large.ToInt();
30 int num4 = this._large.ToInt();
33 string name = achievement.Name;
38 this.UpdateIconFrame();
39 if (iconFrameLocked != null)
40 {
41 }
42 }
43
44 // Token: 0x06004FEC RID: 20460 RVA: 0x000021DB File Offset: 0x000003DB
45 protected override void DrawSelf(SpriteBatch spriteBatch)
46 {
47 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
48 }
49
50 // Token: 0x06004FED RID: 20461 RVA: 0x0027BBF4 File Offset: 0x00279DF4
51 private void UpdateIconFrame()
52 {
53 bool locked = this._locked;
54 if (this._achievementIcon != null)
55 {
56 bool value = locked.m_value;
57 return;
58 }
59 }
60
61 // Token: 0x06004FEE RID: 20462 RVA: 0x0027BC18 File Offset: 0x00279E18
62 private void DrawPanelTop(SpriteBatch spriteBatch, Vector2 position, float width, Color color)
63 {
65 if (!true)
66 {
67 }
71 if (innerPanelTopTexture2 == null)
72 {
73 }
74 if (!true)
75 {
76 }
79 }
80
81 // Token: 0x06004FEF RID: 20463 RVA: 0x0027BC74 File Offset: 0x00279E74
82 private void DrawPanelBottom(SpriteBatch spriteBatch, Vector2 position, float width, Color color)
83 {
85 if (!true)
86 {
87 }
91 if (innerPanelBottomTexture2 == null)
92 {
93 }
94 if (!true)
95 {
96 }
99 }
100
101 // Token: 0x06004FF0 RID: 20464 RVA: 0x0027BCD0 File Offset: 0x00279ED0
102 public override void MouseOver(UIMouseEvent evt)
103 {
104 base.MouseOver(evt);
105 }
106
107 // Token: 0x06004FF1 RID: 20465 RVA: 0x0027BCE4 File Offset: 0x00279EE4
108 public override void MouseOut(UIMouseEvent evt)
109 {
110 base.MouseOut(evt);
111 if (!true)
112 {
113 }
114 Color color;
115 this.BackgroundColor = color;
118 }
119
120 // Token: 0x06004FF2 RID: 20466 RVA: 0x0027BD0C File Offset: 0x00279F0C
122 {
123 return this._achievement;
124 }
125
126 // Token: 0x06004FF3 RID: 20467 RVA: 0x0027BD20 File Offset: 0x00279F20
128 {
130 if (this._achievement._tracker != null)
131 {
132 }
133 long num = 0L;
134 decimal num2 = 1073741824;
135 long value = num.m_value;
136 if (num != 0L)
137 {
138 if (value == 0L)
139 {
140 }
141 long value2 = value.m_value;
142 }
143 if (num != 0L)
144 {
145 }
146 Tuple tuple;
147 return tuple;
148 }
149
150 // Token: 0x06004FF4 RID: 20468 RVA: 0x0027BD7C File Offset: 0x00279F7C
151 private void DrawProgressBar(SpriteBatch spriteBatch, float progress, Vector2 spot, float Width = 169f, [Optional] Color BackColor, [Optional] Color FillingColor, [Optional] Color BlipColor)
152 {
153 if (!true)
154 {
155 }
156 if (!true)
157 {
158 }
159 int num = 1;
160 if (num == 0)
161 {
162 }
163 int value = num.m_value;
164 if (!true)
165 {
166 }
167 int num2 = 1;
168 if (num2 == 0)
169 {
170 }
171 int value2 = num2.m_value;
172 if (!true)
173 {
174 }
175 int num3 = 1;
176 if (num3 == 0)
177 {
178 }
179 if (num3 == 0)
180 {
181 }
182 }
183
184 // Token: 0x06004FF5 RID: 20469 RVA: 0x0027BE5C File Offset: 0x0027A05C
185 public override int CompareTo(object obj)
186 {
187 if (obj != null)
188 {
189 }
190 bool isCompleted = this._achievement.IsCompleted;
192 return 1;
193 }
194
195 // Token: 0x040088CE RID: 35022
197
198 // Token: 0x040088CF RID: 35023
200
201 // Token: 0x040088D0 RID: 35024
203
204 // Token: 0x040088D1 RID: 35025
205 private const int _iconSize = 64;
206
207 // Token: 0x040088D2 RID: 35026
208 private const int _iconSizeWithSpace = 66;
209
210 // Token: 0x040088D3 RID: 35027
211 private const int _iconsPerRow = 8;
212
213 // Token: 0x040088D4 RID: 35028
214 private int _iconIndex;
215
216 // Token: 0x040088D5 RID: 35029
218
219 // Token: 0x040088D6 RID: 35030
221
222 // Token: 0x040088D7 RID: 35031
224
225 // Token: 0x040088D8 RID: 35032
227
228 // Token: 0x040088D9 RID: 35033
230
231 // Token: 0x040088DA RID: 35034
233
234 // Token: 0x040088DB RID: 35035
235 private bool _locked;
236
237 // Token: 0x040088DC RID: 35036
238 private bool _large;
239 }
240}
class f__AnonymousType0<< Count > j__TPar
UIAchievementListItem(Achievement achievement, bool largeForOtherLanguages)
void DrawPanelBottom(SpriteBatch spriteBatch, Vector2 position, float width, Color color)
void DrawPanelTop(SpriteBatch spriteBatch, Vector2 position, float width, Color color)
void DrawProgressBar(SpriteBatch spriteBatch, float progress, Vector2 spot, float Width=169f, [Optional] Color BackColor, [Optional] Color FillingColor, [Optional] Color BlipColor)
static AchievementManager Achievements
Definition Main.cs:4221
StyleDimension Width
static int Height(this Asset< Texture2D > asset)
Definition Utils.cs:701