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

◆ Draw() [3/3]

static void GUIDraggableItemGrid.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 )
inlinestatic

Definition at line 59 of file GUIDraggableItemGrid.cs.

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 }
class f__AnonymousType0<< Count > j__TPar
static float GetMouseScrollDelta(bool ignoreEditor=false)

References XNAUnityRunner.GetMouseScrollDelta(), j__TPar, Microsoft.Xna.Framework.Vector2.X, Microsoft.Xna.Framework.Rectangle.Y, and Microsoft.Xna.Framework.Vector2.Y.