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
GUICraftGuidePopup.cs
Go to the documentation of this file.
1using System;
3using Controller;
7using Terraria;
8using Terraria.UI;
9
10// Token: 0x02000137 RID: 311
12{
13 // Token: 0x06000817 RID: 2071 RVA: 0x0001FF84 File Offset: 0x0001E184
14 public void LoadRegion()
15 {
16 int num = this.focusGuideRecipe;
18 }
19
20 // Token: 0x06000818 RID: 2072 RVA: 0x0001FFC4 File Offset: 0x0001E1C4
31
32 // Token: 0x06000819 RID: 2073 RVA: 0x0001FFFC File Offset: 0x0001E1FC
33 public void OpenPopup()
34 {
35 if (!this.PopupDisplayed)
36 {
40 }
41 if (!true)
42 {
43 }
44 if (!true)
45 {
46 }
47 this.FindRecipes();
49 }
50
51 // Token: 0x0600081A RID: 2074 RVA: 0x00020034 File Offset: 0x0001E234
52 public void ClosePopup()
53 {
54 if (!this.PopupDisplayed || this.PickingInterceptor != null)
55 {
56 }
57 }
58
59 // Token: 0x0600081B RID: 2075 RVA: 0x00020054 File Offset: 0x0001E254
61 {
63 bool flag;
64 return flag;
65 }
66
67 // Token: 0x0600081C RID: 2076 RVA: 0x00020090 File Offset: 0x0001E290
74
75 // Token: 0x0600081D RID: 2077 RVA: 0x000200AC File Offset: 0x0001E2AC
76 private void DrawItem()
77 {
78 int num = this.focusGuideRecipe;
79 int num2 = this.focusGuideRecipe;
80 int[] array = this.availableGuideRecipe;
81 }
82
83 // Token: 0x170000D5 RID: 213
84 // (get) Token: 0x0600081E RID: 2078 RVA: 0x00020100 File Offset: 0x0001E300
86 {
87 get
88 {
89 int[] array = this.availableGuideRecipe;
90 return 15;
91 }
92 }
93
94 // Token: 0x0600081F RID: 2079 RVA: 0x00020118 File Offset: 0x0001E318
95 private void DrawMaterials()
96 {
99 }
100
101 // Token: 0x06000820 RID: 2080 RVA: 0x000021DB File Offset: 0x000003DB
102 public float MaterialItemScale(int index)
103 {
104 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
105 }
106
107 // Token: 0x06000821 RID: 2081 RVA: 0x00020134 File Offset: 0x0001E334
108 public void MaterialItemOver(int index)
109 {
110 if (!true)
111 {
112 }
113 int[] array = this.availableGuideRecipe;
115 if (array == null)
116 {
117 this._controller.GridNav.Activate(index);
118 }
119 if (array == null)
120 {
121 }
123 }
124
125 // Token: 0x06000822 RID: 2082 RVA: 0x00020184 File Offset: 0x0001E384
126 public void MaterialItemDraw(ItemGrid_Layout gridLayout, int index, Vector2 position, float scale)
127 {
128 if (!true)
129 {
130 }
131 int[] array = this.availableGuideRecipe;
132 if (this.cursorOver == 0)
133 {
134 }
135 int num = 1;
136 if (num == 0)
137 {
138 }
139 int num2 = 1;
140 if (num == 0)
141 {
142 }
143 Main.inventoryScale = scale;
144 if (num2 == 0)
145 {
146 }
147 }
148
149 // Token: 0x06000823 RID: 2083 RVA: 0x000021DB File Offset: 0x000003DB
150 private void UpdateText()
151 {
152 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
153 }
154
155 // Token: 0x06000824 RID: 2084 RVA: 0x000201CC File Offset: 0x0001E3CC
156 private void DrawText()
157 {
158 string text = this.displayString;
159 }
160
161 // Token: 0x06000825 RID: 2085 RVA: 0x000201E0 File Offset: 0x0001E3E0
162 public void Draw()
163 {
164 if (!true)
165 {
166 }
167 if (!true)
168 {
169 }
171 if (this.PickingInterceptor != null)
172 {
173 }
175 this._controller.Activate();
176 this.FindRecipes();
177 int num = this.focusGuideRecipe;
179 }
180
181 // Token: 0x06000826 RID: 2086 RVA: 0x000202DC File Offset: 0x0001E4DC
182 private void DrawGrid()
183 {
185 if (rectangle == null)
186 {
187 }
188 int mouseX = Main.mouseX;
189 int mouseY = Main.mouseY;
190 int num = this.numAvailableGuideRecipes;
192 {
193 }
194 }
195
196 // Token: 0x06000827 RID: 2087 RVA: 0x000021DB File Offset: 0x000003DB
197 public float CraftItemScale(int index)
198 {
199 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
200 }
201
202 // Token: 0x06000828 RID: 2088 RVA: 0x0002030C File Offset: 0x0001E50C
203 public void CraftItemOver(int index)
204 {
206 int num = this.numAvailableGuideRecipes;
207 Item item;
208 if (item.type != 0)
209 {
210 int[] array = this.availableGuideRecipe;
211 }
212 int num2 = this.focusGuideRecipe;
213 int type = item.type;
214 if (type != 0)
215 {
216 if (type == 0)
217 {
218 }
219 bool mouseLeft = Main.mouseLeft;
220 if (type == 0)
221 {
222 }
223 bool mouseLeftRelease = Main.mouseLeftRelease;
224 }
226 int type2 = item.type;
227 if (type2 != 0)
228 {
229 if (type2 == 0)
230 {
231 }
232 int[] array2 = this.availableGuideRecipe;
233 int[] array3 = this.availableGuideRecipe;
234 int num4 = 22;
235 Item item2;
237 int[] array4 = this.availableGuideRecipe;
238 if (num4 == 0)
239 {
240 int[] array5 = this.availableGuideRecipe;
241 }
243 return;
244 }
245 }
246
247 // Token: 0x06000829 RID: 2089 RVA: 0x000203E4 File Offset: 0x0001E5E4
248 public void CraftItemDraw(ItemGrid_Layout gridLayout, int index, Vector2 position, float scale)
249 {
250 if (this.cursorOver == 0)
251 {
252 }
253 if (!true)
254 {
255 }
256 int num = this.numAvailableGuideRecipes;
257 Item item;
258 int type = item.type;
259 !0 instance;
260 int[] array2;
261 if (type != 0)
262 {
263 if (type == 0)
264 {
265 }
266 int[] array = this.availableGuideRecipe;
267 if (type == 0)
268 {
269 }
270 Main.inventoryScale = scale;
271 int num2 = this.focusGuideRecipe;
273 if (array == null)
274 {
275 }
276 ItemSlot.SetSelectHighlight(true, scale);
277 if (instance == null)
278 {
279 }
281 return;
282 }
284 if (instance != null)
285 {
288 if (array2 == null)
289 {
290 }
292 Vector2 vector = texture2D.Size();
294 Vector2 vector2 = texture2D2.Size();
295 int num3 = 1;
296 if (num3 == 0)
297 {
298 }
299 if (num3 == 0)
300 {
301 }
304 }
305 }
306
307 // Token: 0x0600082A RID: 2090 RVA: 0x000204AC File Offset: 0x0001E6AC
308 public void FindRecipes()
309 {
310 int[] array = this.availableGuideRecipe;
311 Item item;
312 int type = item.type;
313 int stack = item.stack;
314 bool flag = item.Name != "";
315 if (stack == 0)
316 {
317 }
318 if (stack != 0)
319 {
320 int type2 = item.type;
321 int type3 = item.type;
322 int type4 = item.type;
323 int type5 = item.type;
324 int type6 = item.type;
325 int type7 = item.type;
326 while (stack != 0)
327 {
328 }
329 return;
330 }
331 }
332
333 // Token: 0x0600082B RID: 2091 RVA: 0x0002053C File Offset: 0x0001E73C
335 {
336 }
337
338 // Token: 0x040006E4 RID: 1764
340
341 // Token: 0x040006E5 RID: 1765
343
344 // Token: 0x040006E6 RID: 1766
346
347 // Token: 0x040006E7 RID: 1767
349
350 // Token: 0x040006E8 RID: 1768
352
353 // Token: 0x040006E9 RID: 1769
354 private int cursorOver;
355
356 // Token: 0x040006EA RID: 1770
357 private int OpenedFrame;
358
359 // Token: 0x040006EB RID: 1771
360 public bool PopupDisplayed;
361
362 // Token: 0x040006EC RID: 1772
364
365 // Token: 0x040006ED RID: 1773
367
368 // Token: 0x040006EE RID: 1774
369 private string materialHoverItemName;
370
371 // Token: 0x040006EF RID: 1775
373
374 // Token: 0x040006F0 RID: 1776
375 private int yoyoLogo;
376
377 // Token: 0x040006F1 RID: 1777
378 private int researchLine;
379
380 // Token: 0x040006F2 RID: 1778
381 private int setBonusLine;
382
383 // Token: 0x040006F3 RID: 1779
384 private int materialsLine;
385
386 // Token: 0x040006F4 RID: 1780
387 private int numLines;
388
389 // Token: 0x040006F5 RID: 1781
390 private string[] toolTipLine;
391
392 // Token: 0x040006F6 RID: 1782
393 private bool[] preFixLine;
394
395 // Token: 0x040006F7 RID: 1783
396 private bool[] badPreFixLine;
397
398 // Token: 0x040006F8 RID: 1784
399 private Item lastItem;
400
401 // Token: 0x040006F9 RID: 1785
402 private float CachedLayoutSize;
403
404 // Token: 0x040006FA RID: 1786
405 private float CachedLayoutWrapSize;
406
407 // Token: 0x040006FB RID: 1787
409
410 // Token: 0x040006FC RID: 1788
412
413 // Token: 0x040006FD RID: 1789
414 private string displayString;
415
416 // Token: 0x040006FE RID: 1790
417 public float craftScrollOffset;
418
419 // Token: 0x040006FF RID: 1791
420 private float craftScrollMomentum;
421
422 // Token: 0x04000700 RID: 1792
424
425 // Token: 0x04000701 RID: 1793
427
428 // Token: 0x04000702 RID: 1794
429 private int _selectedItem;
430
431 // Token: 0x04000703 RID: 1795
432 private int multiCraftDelay;
433
434 // Token: 0x04000704 RID: 1796
436
437 // Token: 0x04000705 RID: 1797
439
440 // Token: 0x04000706 RID: 1798
442}
class f__AnonymousType0<< Count > j__TPar
static void SetGridItemRegion(Rectangle region)
GUIControllerDynamicGridNavigator GridNav
void MaterialItemOver(int index)
GUIControllerCraftingGuidePopup _controller
float MaterialItemScale(int index)
void CraftItemOver(int index)
List< string > _requiredObjecsForCraftingText
float CraftItemScale(int index)
GUIInputRegionExclusive PickingInterceptor
bool IsOver(Vector2 cursorPosition)
void MaterialItemDraw(ItemGrid_Layout gridLayout, int index, Vector2 position, float scale)
void CraftItemDraw(ItemGrid_Layout gridLayout, int index, Vector2 position, float scale)
static void FlushBatches()
Definition Main.cs:5092
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 void UpdateTooltipContext(int context, int slot)
Definition ItemSlot.cs:972
static void SetSelectHighlight(bool hasFocus, float highlightScale=-1f)
Definition ItemSlot.cs:702