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

◆ ItemOver()

void GUIAmmo.ItemOver ( int index)
inline

Definition at line 68 of file GUIAmmo.cs.

69 {
70 int myPlayer = Main.myPlayer;
77 global::Cursor cursor;
78 if (cursor != null)
79 {
80 return;
81 }
82 long num = 0L;
83 global::Cursor cursor2;
84 if (cursor2 != null)
85 {
86 return;
87 }
88 bool flag = this.rightClickHeld;
89 int num3;
90 if (num == 0L && !flag)
91 {
92 float num2 = this.doubleClickTimer;
93 num3 = this.lastItemClicked;
95 }
96 if (flag)
97 {
98 int num4 = this.lastItemClicked;
99 int num5 = this.lastItemClicked;
100 if (num5 == 0)
101 {
102 }
103 bool mouseLeft = Main.mouseLeft;
104 int type;
105 if (num5 != 0)
106 {
107 if (num5 == 0)
108 {
109 }
110 if (Main.mouseItem != null)
111 {
112 if (num5 == 0)
113 {
114 }
115 type = Main.mouseItem.type;
116 if (type != 0)
117 {
118 }
119 }
120 }
121 if (type == 0)
122 {
123 }
125 int myPlayer7 = Main.myPlayer;
126 if (num3 == 0)
127 {
128 }
129 bool mouseRight = Main.mouseRight;
130 int myPlayer8 = Main.myPlayer;
131 return;
132 }
133 int myPlayer9 = Main.myPlayer;
136 if (num3 == 0)
137 {
138 }
139 Recipe.FindRecipes(false);
140 if (num3 == 0)
141 {
143 if (guicontrollerAmmo != null)
144 {
146 return;
147 }
148 return;
149 }
150 else
151 {
153 int type2;
154 if (Main.mouseItem == null || Main.mouseItem.type == 0)
155 {
156 int num6 = this.itemDragStart;
157 if (num6 == 0)
158 {
159 }
160 bool mouseLeftRelease = Main.mouseLeftRelease;
161 if (num6 == 0)
162 {
163 }
165 if (num6 == 0)
166 {
167 }
168 if (Main.mouseItem != null)
169 {
170 if (num6 == 0)
171 {
172 }
174 if (type2 != 0)
175 {
176 }
177 }
178 }
179 if (type2 == 0)
180 {
181 }
183 int cursorOverride = Main.cursorOverride;
184 int num7;
185 int num8;
186 if (num7 != 0)
187 {
188 if (type2 == 0)
189 {
190 }
192 if (num8 == 0)
193 {
194 }
195 if (type2 == 0)
196 {
197 }
198 Recipe.FindRecipes(false);
201 }
202 if (num8 != 0)
203 {
204 string textValue = Language.GetTextValue("ControllerMappings.TakeOne");
206 Recipe.FindRecipes(false);
207 return;
208 }
209 return;
210 }
211 }
class f__AnonymousType0<< Count > j__TPar
int lastItemClicked
Definition GUIAmmo.cs:313
float doubleClickTimer
Definition GUIAmmo.cs:316
int itemDragStart
Definition GUIAmmo.cs:310
bool rightClickHeld
Definition GUIAmmo.cs:319
bool IsAir
Definition Item.cs:1820
static string GetTextValue(string key)
Definition Language.cs:54
static int myPlayer
Definition Main.cs:2337
static bool mouseRight
Definition Main.cs:685
static int cursorOverride
Definition Main.cs:3147
static bool mouseLeftRelease
Definition Main.cs:2029
static Item mouseItem
Definition Main.cs:2155
static bool mouseLeft
Definition Main.cs:671
static void FindRecipes(bool canDelayCheck=false)
Definition Recipe.cs:204

References Terraria.Main.cursorOverride, doubleClickTimer, Terraria.Recipe.FindRecipes(), Terraria.Localization.Language.GetTextValue(), System.index, Terraria.Item.IsAir, itemDragStart, j__TPar, Microsoft.Xna.Framework.Input.L, lastItemClicked, Terraria.Main.mouseItem, Terraria.Main.mouseLeft, Terraria.Main.mouseLeftRelease, Terraria.Main.mouseRight, Terraria.Main.myPlayer, rightClickHeld, and Terraria.Item.type.

Referenced by ItemDraw().