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
GUIDraggableItemGrid.cs
Go to the documentation of this file.
1using System;
6using UnityEngine;
7
8// Token: 0x02000109 RID: 265
9public static class GUIDraggableItemGrid
10{
11 // Token: 0x060006B8 RID: 1720 RVA: 0x00016248 File Offset: 0x00014448
13 {
14 if (!true)
15 {
16 }
17 if (!true)
18 {
19 }
21 }
22
23 // Token: 0x060006B9 RID: 1721 RVA: 0x00016268 File Offset: 0x00014468
25 {
26 if (!true)
27 {
28 }
29 float x = gridLayout.PickingBorder.X;
30 float y = gridLayout.PickingBorder.Y;
31 float x2 = gridLayout.PickingOffset.X;
32 float y2 = gridLayout.PickingOffset.Y;
33 int num = 32640;
34 int num2 = 32768;
35 int value = num.m_value;
36 if (num2 == 0)
37 {
38 }
39 if (num == 0)
40 {
41 }
42 }
43
44 // Token: 0x060006BA RID: 1722 RVA: 0x000162F4 File Offset: 0x000144F4
46 {
47 if (!true)
48 {
49 }
50 if (!true)
51 {
52 }
53 if (!true)
54 {
55 }
56 }
57
58 // Token: 0x060006BB RID: 1723 RVA: 0x0001630C File Offset: 0x0001450C
60 {
61 IntPtr invoke_impl = scaleHandler.invoke_impl;
62 IntPtr method_code = scaleHandler.method_code;
63 IntPtr method = scaleHandler.method;
64 if (invoke_impl == 0)
65 {
66 }
67 if (!gridLayout.ExplicitDragRegionSize)
68 {
69 int itemCount2 = gridLayout.ItemCount;
70 int itemCount3;
71 if (itemCount3 == 0)
72 {
73 }
74 if (itemCount3 == 0)
75 {
76 }
79 float y = gridLayout.MaxDragRegion.Y;
80 if (itemCount3 == 0)
81 {
82 float y2 = gridLayout.MaxDragRegion.Y;
83 }
84 float x = gridLayout.MaxDragRegion.X;
85 if (itemCount3 == 0)
86 {
87 float x2 = gridLayout.MaxDragRegion.X;
88 }
89 bool dragHorizontal = gridLayout.DragHorizontal;
90 while (!dragHorizontal)
91 {
92 }
93 if (!dragHorizontal)
94 {
95 }
96 int alphaFalloff = gridLayout.AlphaFalloff;
97 if (gridLayout.FirstItemAnchor == (LayoutCalculator.AnchorType)0)
98 {
99 }
100 int alphaFalloff2 = gridLayout.AlphaFalloff;
101 return;
102 }
105 float x3 = gridLayout.FirstItemLocation.X;
106 float y3 = gridLayout.FirstItemLocation.Y;
107 float x4 = gridLayout.DragRegionEndItemLocation.X;
108 float y4 = gridLayout.DragRegionEndItemLocation.Y;
111 if (gridLayout.DragHorizontal)
112 {
113 if (gridLayout.Horizontal)
114 {
115 int itemCount3 = gridLayout.ItemCount;
117 return;
118 }
119 int itemLineCount = gridLayout.ItemLineCount;
120 int itemCount4 = gridLayout.ItemCount;
121 return;
122 }
123 else
124 {
125 int itemLineCount2 = gridLayout.ItemLineCount;
126 int itemCount5 = gridLayout.ItemCount;
127 bool explicitDragRegionSize = gridLayout.ExplicitDragRegionSize;
129 {
130 int itemCount6 = gridLayout.ItemCount;
131 return;
132 }
134 {
135 return;
136 }
137 int itemLineCount3 = gridLayout.ItemLineCount;
138 bool dragHorizontal2 = gridLayout.DragHorizontal;
139 float y5 = gridLayout.ExtraElementSpacing.Y;
140 if (itemLineCount3 == 0)
141 {
142 }
143 if (dragHorizontal2)
144 {
145 int alphaFalloff3 = gridLayout.AlphaFalloff;
146 int alphaFalloff4 = gridLayout.AlphaFalloff;
147 return;
148 }
149 int alphaFalloff5 = gridLayout.AlphaFalloff;
150 int alphaFalloff6 = gridLayout.AlphaFalloff;
151 if (gridLayout.ExplicitDragRegionSize)
152 {
153 bool dragHorizontal3 = gridLayout.DragHorizontal;
154 if (!dragHorizontal3)
155 {
156 if (!dragHorizontal3)
157 {
158 }
159 int dragRegionTopOffset = gridLayout.DragRegionTopOffset;
160 int dragRegionTopOffset2 = gridLayout.DragRegionTopOffset;
161 int dragRegionBottomOffset = gridLayout.DragRegionBottomOffset;
162 }
163 }
164 float momentumDampen = gridLayout.MomentumDampen;
165 float mouseScrollDelta = XNAUnityRunner.GetMouseScrollDelta(false);
166 return;
167 }
168 }
169
170 // Token: 0x060006BC RID: 1724 RVA: 0x00016698 File Offset: 0x00014898
172 {
173 IntPtr invoke_impl = scaleHandler.invoke_impl;
174 IntPtr method_code = scaleHandler.method_code;
175 IntPtr method = scaleHandler.method;
176 if (gridLayout.ExplicitDragRegionSize)
177 {
180 float x = gridLayout.FirstItemLocation.X;
181 float y = gridLayout.FirstItemLocation.Y;
182 float x2 = gridLayout.DragRegionEndItemLocation.X;
183 float y2 = gridLayout.DragRegionEndItemLocation.Y;
186 return;
187 }
188 Debug.LogError("Not supported!!");
189 bool dragHorizontal = gridLayout.DragHorizontal;
190 if (dragHorizontal)
191 {
192 if (!dragHorizontal)
193 {
194 }
195 Debug.LogError("Not supported!!");
196 return;
197 }
198 bool explicitDragRegionSize = gridLayout.ExplicitDragRegionSize;
200 {
201 }
203 {
204 }
205 float y3 = gridLayout.ExtraElementSpacing.Y;
206 }
207
208 // Token: 0x060006BD RID: 1725 RVA: 0x00016998 File Offset: 0x00014B98
209 // Note: this type is marked as 'beforefieldinit'.
211 {
212 }
213
214 // Token: 0x04000555 RID: 1365
215 public static Rectangle dragRegion;
216
217 // Token: 0x04000556 RID: 1366
218 public static Rectangle fullRegion;
219
220 // Token: 0x04000557 RID: 1367
222
223 // Token: 0x04000558 RID: 1368
224 private static float itemWidth;
225
226 // Token: 0x04000559 RID: 1369
227 private static float itemHeight;
228
229 // Token: 0x0400055A RID: 1370
230 private static float orgScrollOffset;
231
232 // Token: 0x0400055B RID: 1371
234
235 // Token: 0x0400055C RID: 1372
237
238 // Token: 0x0400055D RID: 1373
240
241 // Token: 0x0400055E RID: 1374
243
244 // Token: 0x0400055F RID: 1375
246
247 // Token: 0x0200010A RID: 266
249 {
250 // Token: 0x060006BE RID: 1726 RVA: 0x000169AC File Offset: 0x00014BAC
251 public DrawItemClippedHandler(object @object, IntPtr method)
252 {
254 this.m_target = @object;
256 this.method_code = this;
257 }
258
259 // Token: 0x060006BF RID: 1727 RVA: 0x00016A0C File Offset: 0x00014C0C
261 {
264 IntPtr method = this.method;
265 }
266
267 // Token: 0x060006C0 RID: 1728 RVA: 0x000021DB File Offset: 0x000003DB
269 {
270 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
271 }
272
273 // Token: 0x060006C1 RID: 1729 RVA: 0x00016A30 File Offset: 0x00014C30
274 public void EndInvoke(IAsyncResult result)
275 {
276 }
277 }
278}
class f__AnonymousType0<< Count > j__TPar
void Invoke(ItemGrid_Layout gridLayout, int itemIndex, Microsoft.Xna.Framework.Vector2 position, float scale, Rectangle inner, Rectangle outer)
IAsyncResult BeginInvoke(ItemGrid_Layout gridLayout, int itemIndex, Microsoft.Xna.Framework.Vector2 position, float scale, Rectangle inner, Rectangle outer, AsyncCallback callback, object @object)
DrawItemClippedHandler(object @object, IntPtr method)
static GUIItemGrid.CursorOver _overHandler
static GUIItemGrid.DrawItemHandler _drawhandler
static void Draw(DraggableItemGrid_Layout gridLayout, GUIItemGrid.GetItemScaleHandler scaleHandler, GUIItemGrid.CursorOver cursorOverHandler, GUIItemGrid.DrawItemHandler drawhandler, int itemCount, float scrollOffset, float momentum, int draggingState, Microsoft.Xna.Framework.Vector2 dragPosition, GUIItemGrid.GetItemSizeHandler itemSizeHandler, bool drawMissingItems=false, bool allowMouseScroll=false, bool disableDragScroll=false)
static GUIItemGrid.DrawItemHandler ClippedDrawItem
static void SetSizeClippedDrawItemHandler(ItemGrid_Layout gridLayout, int itemIndex, Microsoft.Xna.Framework.Vector2 position, float scale)
static GUIItemGrid.DrawItemHandler SetSizeClippedDrawItem
static GUIItemGrid.GetItemSizeHandler _sizehandler
static void Draw(DraggableItemGrid_Layout gridLayout, GUIItemGrid.GetItemScaleHandler scaleHandler, GUIItemGrid.CursorOver cursorOverHandler, GUIItemGrid.DrawItemHandler drawhandler, int itemCount, float scrollOffset, float momentum, int draggingState, Microsoft.Xna.Framework.Vector2 dragPosition, Microsoft.Xna.Framework.Vector2 itemSize, bool drawMissingItems=false, bool allowMouseScroll=false, bool disableDragScroll=false)
static void Draw(DraggableItemGrid_Layout gridLayout, GUIItemGrid.GetItemScaleHandler scaleHandler, GUIItemGrid.CursorOver cursorOverHandler, GUIItemGrid.DrawItemHandler drawhandler, int itemCount, float scrollOffset, float momentum, int draggingState, Microsoft.Xna.Framework.Vector2 dragPosition, [Optional] Microsoft.Xna.Framework.Graphics.Texture2D overloadBackingTexture, bool drawMissingItems=false, bool allowMouseScroll=false, bool disableDragScroll=false)
static void ClippedDrawItemHandler(ItemGrid_Layout gridLayout, int itemIndex, Microsoft.Xna.Framework.Vector2 position, float scale)
static Microsoft.Xna.Framework.Vector2 drawOffset
IntPtr method_code
Definition Delegate.cs:386
IntPtr invoke_impl
Definition Delegate.cs:371
static void LogError(object message)
Definition Debug.cs:62
static float GetMouseScrollDelta(bool ignoreEditor=false)