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
ChestUI.cs
Go to the documentation of this file.
1using System;
5
6namespace Terraria.UI
7{
8 // Token: 0x020006DC RID: 1756
9 public class ChestUI
10 {
11 // Token: 0x06003AF7 RID: 15095 RVA: 0x00233488 File Offset: 0x00231688
12 public static void UpdateHover(int ID, bool hovering)
13 {
14 int num = 1;
15 if (num == 0)
16 {
17 }
18 if (num == 0)
19 {
20 }
21 if (num == 0)
22 {
23 }
24 }
25
26 // Token: 0x06003AF8 RID: 15096 RVA: 0x002334A4 File Offset: 0x002316A4
27 public static void Draw(SpriteBatch spritebatch)
28 {
29 int num = 1;
30 if (num == 0)
31 {
32 }
33 int myPlayer = Main.myPlayer;
34 if (num == 0)
35 {
36 }
37 if (num != 0)
38 {
39 if (num == 0)
40 {
41 }
42 if (num == 0)
43 {
44 }
45 return;
46 }
47 if (num == 0)
48 {
49 }
50 int mouseX = Main.mouseX;
51 int mouseY = Main.mouseY;
52 float inventoryScale = Main.inventoryScale;
54 int num2 = 17042;
55 if (num2 == 0)
56 {
57 }
59 if (num2 == 0)
60 {
61 }
62 }
63
64 // Token: 0x06003AF9 RID: 15097 RVA: 0x0023351C File Offset: 0x0023171C
65 private static void DrawName(SpriteBatch spritebatch)
66 {
67 if (!true)
68 {
69 }
70 int myPlayer = Main.myPlayer;
71 bool editChest = Main.editChest;
72 string npcChatText = Main.npcChatText;
73 }
74
75 // Token: 0x06003AFA RID: 15098 RVA: 0x002335EC File Offset: 0x002317EC
76 private static void DrawButtons(SpriteBatch spritebatch)
77 {
78 if (!true)
79 {
80 }
81 }
82
83 // Token: 0x06003AFB RID: 15099 RVA: 0x00233604 File Offset: 0x00231804
84 private static void DrawButton(SpriteBatch spriteBatch, int ID, int X, int Y)
85 {
86 if (!true)
87 {
88 }
89 int myPlayer = Main.myPlayer;
90 }
91
92 // Token: 0x06003AFC RID: 15100 RVA: 0x00233788 File Offset: 0x00231988
93 private static void ToggleVacuum()
94 {
95 if (!true)
96 {
97 }
98 int myPlayer = Main.myPlayer;
99 }
100
101 // Token: 0x06003AFD RID: 15101 RVA: 0x002337A4 File Offset: 0x002319A4
102 private static void DrawSlots(SpriteBatch spriteBatch)
103 {
104 if (!true)
105 {
106 }
107 int myPlayer = Main.myPlayer;
108 }
109
110 // Token: 0x06003AFE RID: 15102 RVA: 0x00233874 File Offset: 0x00231A74
111 public static bool CanBeDepositied(int p)
112 {
113 if (!true)
114 {
115 }
116 int myPlayer = Main.myPlayer;
117 bool flag;
118 return flag;
119 }
120
121 // Token: 0x06003AFF RID: 15103 RVA: 0x002338D4 File Offset: 0x00231AD4
122 public static void Deposit(int p)
123 {
124 if (!true)
125 {
126 }
127 int myPlayer = Main.myPlayer;
128 }
129
130 // Token: 0x06003B00 RID: 15104 RVA: 0x002339D8 File Offset: 0x00231BD8
131 public static void LootItem(int j)
132 {
133 if (!true)
134 {
135 }
136 int myPlayer = Main.myPlayer;
137 int myPlayer2 = Main.myPlayer;
138 Item item;
139 if (item == null || item != null)
140 {
142 return;
143 }
144 throw new ArrayTypeMismatchException();
145 }
146
147 // Token: 0x06003B01 RID: 15105 RVA: 0x00233A4C File Offset: 0x00231C4C
148 public static void LootAll()
149 {
150 if (!true)
151 {
152 }
153 int myPlayer = Main.myPlayer;
154 int myPlayer2 = Main.myPlayer;
155 Item item;
156 if (item == null || item != null)
157 {
158 bool netClient = Main.NetClient;
159 return;
160 }
161 throw new ArrayTypeMismatchException();
162 }
163
164 // Token: 0x06003B02 RID: 15106 RVA: 0x00233ADC File Offset: 0x00231CDC
165 public static void DepositAll(ContainerTransferContext context)
166 {
167 if (!true)
168 {
169 }
170 int myPlayer = Main.myPlayer;
171 }
172
173 // Token: 0x06003B03 RID: 15107 RVA: 0x00233C24 File Offset: 0x00231E24
174 public static void QuickStack(ContainerTransferContext context, bool voidStack = false)
175 {
176 if (!true)
177 {
178 }
179 int myPlayer = Main.myPlayer;
180 }
181
182 // Token: 0x06003B04 RID: 15108 RVA: 0x00233D24 File Offset: 0x00231F24
183 public static void RenameChest()
184 {
185 if (!true)
186 {
187 }
188 int myPlayer = Main.myPlayer;
189 bool editChest = Main.editChest;
190 }
191
192 // Token: 0x06003B05 RID: 15109 RVA: 0x00233D9C File Offset: 0x00231F9C
193 public static void RenameChestSubmit(Player player)
194 {
195 int num = 1;
196 if (num == 0)
197 {
198 }
199 Main.editChest = false;
200 if (num == 0)
201 {
202 }
203 string npcChatText = Main.npcChatText;
204 string defaultChestName = Main.defaultChestName;
205 bool flag = npcChatText == defaultChestName;
206 if (num == 0)
207 {
208 }
209 Main.npcChatText = "";
210 if (num == 0)
211 {
212 }
214 bool flag2 = "" != npcChatText2;
215 if (num == 0)
216 {
217 }
219 bool netClient = Main.NetClient;
220 int num2 = 1;
222 }
223
224 // Token: 0x06003B06 RID: 15110 RVA: 0x00233E24 File Offset: 0x00232024
225 public static void RenameChestCancel()
226 {
227 if (!true)
228 {
229 }
230 Main.editChest = false;
231 string text;
233 }
234
235 // Token: 0x06003B07 RID: 15111 RVA: 0x00233E40 File Offset: 0x00232040
236 public static void Restock()
237 {
238 if (!true)
239 {
240 }
241 int myPlayer = Main.myPlayer;
242 }
243
244 // Token: 0x06003B08 RID: 15112 RVA: 0x00233EDC File Offset: 0x002320DC
245 public static long MoveCoins(Item[] pInv, Item[] cInv, ContainerTransferContext context)
246 {
247 long entityId = pInv.entityId;
248 long num;
249 return num;
250 }
251
252 // Token: 0x06003B09 RID: 15113 RVA: 0x00233FA0 File Offset: 0x002321A0
253 public static bool TryPlacingInChest(Item I, bool justCheck, int itemSlotContext)
254 {
255 if (!true)
256 {
257 }
258 bool flag;
259 return flag;
260 }
261
262 // Token: 0x06003B0A RID: 15114 RVA: 0x00234038 File Offset: 0x00232238
263 public static void GetContainerUsageInfo([Out] bool sync, [Out] Item[] chestinv)
264 {
265 if (!true)
266 {
267 }
268 int myPlayer = Main.myPlayer;
270 }
271
272 // Token: 0x06003B0B RID: 15115 RVA: 0x00234060 File Offset: 0x00232260
273 public static bool IsBlockedFromTransferIntoChest(Item item, Item[] container)
274 {
275 if (true)
276 {
277 if (!true)
278 {
279 }
281 if (item2 != null)
282 {
283 if (item2 == null)
284 {
285 }
287 }
288 }
289 return true;
290 }
291
292 // Token: 0x06003B0C RID: 15116 RVA: 0x002340A4 File Offset: 0x002322A4
293 public static bool TryPlacingInPlayer(int slot, bool justCheck)
294 {
295 if (!true)
296 {
297 }
298 int myPlayer = Main.myPlayer;
299 return Main.NetClientOnly;
300 }
301
302 // Token: 0x06003B0D RID: 15117 RVA: 0x0023412C File Offset: 0x0023232C
303 public ChestUI()
304 {
305 }
306
307 // Token: 0x06003B0E RID: 15118 RVA: 0x00234140 File Offset: 0x00232340
308 // Note: this type is marked as 'beforefieldinit'.
309 static ChestUI()
310 {
311 if (!true)
312 {
313 }
314 }
315
316 // Token: 0x04007AE0 RID: 31456
317 public const float buttonScaleMinimum = 0.75f;
318
319 // Token: 0x04007AE1 RID: 31457
320 public const float buttonScaleMaximum = 1f;
321
322 // Token: 0x04007AE2 RID: 31458
323 public static float[] ButtonScale;
324
325 // Token: 0x04007AE3 RID: 31459
326 public static bool[] ButtonHovered;
327
328 // Token: 0x020006DD RID: 1757
329 public class ButtonID
330 {
331 // Token: 0x06003B0F RID: 15119 RVA: 0x00234150 File Offset: 0x00232350
332 public ButtonID()
333 {
334 }
335
336 // Token: 0x06003B10 RID: 15120 RVA: 0x00234164 File Offset: 0x00232364
337 // Note: this type is marked as 'beforefieldinit'.
338 static ButtonID()
339 {
340 }
341
342 // Token: 0x04007AE4 RID: 31460
343 public const int LootAll = 0;
344
345 // Token: 0x04007AE5 RID: 31461
346 public const int DepositAll = 1;
347
348 // Token: 0x04007AE6 RID: 31462
349 public const int QuickStack = 2;
350
351 // Token: 0x04007AE7 RID: 31463
352 public const int Restock = 3;
353
354 // Token: 0x04007AE8 RID: 31464
355 public const int Sort = 4;
356
357 // Token: 0x04007AE9 RID: 31465
358 public const int RenameChest = 5;
359
360 // Token: 0x04007AEA RID: 31466
361 public const int RenameChestCancel = 6;
362
363 // Token: 0x04007AEB RID: 31467
364 public const int ToggleVacuum = 7;
365
366 // Token: 0x04007AEC RID: 31468
367 public static readonly int Count;
368 }
369 }
370}
class f__AnonymousType0<< Count > j__TPar
Item[] item
Definition Chest.cs:1344
static string npcChatText
Definition Main.cs:2463
static int myPlayer
Definition Main.cs:2337
static bool NetClient
Definition Main.cs:5438
static bool NetClientOnly
Definition Main.cs:5407
static float inventoryScale
Definition Main.cs:2253
static bool editChest
Definition Main.cs:2407
static string defaultChestName
Definition Main.cs:2449
static int mouseY
Definition Main.cs:601
static Player LocalPlayer
Definition Main.cs:5267
static int mouseX
Definition Main.cs:587
static readonly int Count
Definition ChestUI.cs:367
static bool TryPlacingInPlayer(int slot, bool justCheck)
Definition ChestUI.cs:293
static float[] ButtonScale
Definition ChestUI.cs:323
static bool[] ButtonHovered
Definition ChestUI.cs:326
static void DepositAll(ContainerTransferContext context)
Definition ChestUI.cs:165
const float buttonScaleMaximum
Definition ChestUI.cs:320
static void DrawButtons(SpriteBatch spritebatch)
Definition ChestUI.cs:76
static void RenameChestCancel()
Definition ChestUI.cs:225
const float buttonScaleMinimum
Definition ChestUI.cs:317
static void Deposit(int p)
Definition ChestUI.cs:122
static bool CanBeDepositied(int p)
Definition ChestUI.cs:111
static bool IsBlockedFromTransferIntoChest(Item item, Item[] container)
Definition ChestUI.cs:273
static void LootItem(int j)
Definition ChestUI.cs:131
static void DrawName(SpriteBatch spritebatch)
Definition ChestUI.cs:65
static void RenameChestSubmit(Player player)
Definition ChestUI.cs:193
static void LootAll()
Definition ChestUI.cs:148
static long MoveCoins(Item[] pInv, Item[] cInv, ContainerTransferContext context)
Definition ChestUI.cs:245
static void Draw(SpriteBatch spritebatch)
Definition ChestUI.cs:27
static void DrawButton(SpriteBatch spriteBatch, int ID, int X, int Y)
Definition ChestUI.cs:84
static void QuickStack(ContainerTransferContext context, bool voidStack=false)
Definition ChestUI.cs:174
static void GetContainerUsageInfo([Out] bool sync, [Out] Item[] chestinv)
Definition ChestUI.cs:263
static void RenameChest()
Definition ChestUI.cs:183
static bool TryPlacingInChest(Item I, bool justCheck, int itemSlotContext)
Definition ChestUI.cs:253
static void ToggleVacuum()
Definition ChestUI.cs:93
static void DrawSlots(SpriteBatch spriteBatch)
Definition ChestUI.cs:102
static void UpdateHover(int ID, bool hovering)
Definition ChestUI.cs:12
static void Restock()
Definition ChestUI.cs:236