terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
GUIAmmo.cs
Go to the documentation of this file.
1using System;
2using Controller;
8using Terraria;
10using Terraria.UI;
11using UnityEngine;
12
13[global::Cpp2ILInjected.Token(Token = "0x2000122")]
14public class GUIAmmo
15{
16 [global::Cpp2ILInjected.Token(Token = "0x6000746")]
17 [global::Cpp2ILInjected.Address(RVA = "0x11094F4", Offset = "0x11094F4", Length = "0x130")]
18 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIInstance), Member = ".ctor", ReturnType = typeof(void))]
19 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
20 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
21 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIItemGrid.GetItemScaleHandler), Member = ".ctor", MemberParameters = new object[]
22 {
23 typeof(object),
24 typeof(IntPtr)
25 }, ReturnType = typeof(void))]
26 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIItemGrid.CursorOver), Member = ".ctor", MemberParameters = new object[]
27 {
28 typeof(object),
29 typeof(IntPtr)
30 }, ReturnType = typeof(void))]
31 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIItemGrid.DrawItemHandler), Member = ".ctor", MemberParameters = new object[]
32 {
33 typeof(object),
34 typeof(IntPtr)
35 }, ReturnType = typeof(void))]
36 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 9)]
37 public GUIAmmo()
38 {
39 throw null;
40 }
41
42 [global::Cpp2ILInjected.Token(Token = "0x6000747")]
43 [global::Cpp2ILInjected.Address(RVA = "0x1109624", Offset = "0x1109624", Length = "0xB4")]
44 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
45 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIVirtualInputController), Member = "IsOverGroupRegion", MemberParameters = new object[]
46 {
49 }, ReturnType = typeof(bool))]
50 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "DoDraw_UpdateCameraPosition", ReturnType = typeof(void))]
51 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
52 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RightSideHUDAnchorUpdator), Member = "get_UseCollpasedCoinsAmmo", ReturnType = typeof(bool))]
53 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PageControllerLayoutDefinition<>), Member = "get_Instance", ReturnType = "T")]
54 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIItemGrid), Member = "CalculateRegion", MemberParameters = new object[]
55 {
58 typeof(int),
60 }, ReturnType = typeof(Rectangle))]
61 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
63 {
64 throw null;
65 }
66
67 [global::Cpp2ILInjected.Token(Token = "0x6000748")]
68 [global::Cpp2ILInjected.Address(RVA = "0x11096D8", Offset = "0x11096D8", Length = "0x38")]
69 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
70 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
72 {
73 throw null;
74 }
75
76 [global::Cpp2ILInjected.Token(Token = "0x6000749")]
77 [global::Cpp2ILInjected.Address(RVA = "0x1109710", Offset = "0x1109710", Length = "0x68")]
78 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
79 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
80 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RightSideHUDAnchorUpdator), Member = "get_UseCollpasedCoinsAmmo", ReturnType = typeof(bool))]
81 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PageControllerLayoutDefinition<>), Member = "get_Instance", ReturnType = "T")]
82 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
83 public float ItemScale(int index)
84 {
85 throw null;
86 }
87
88 [global::Cpp2ILInjected.Token(Token = "0x600074A")]
89 [global::Cpp2ILInjected.Address(RVA = "0x1109778", Offset = "0x1109778", Length = "0xD60")]
90 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
91 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIAmmo), Member = "ItemDraw", MemberParameters = new object[]
92 {
94 typeof(int),
96 typeof(float)
97 }, ReturnType = typeof(void))]
98 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
99 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_myPlayer", ReturnType = typeof(int))]
100 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_mouseItem", ReturnType = typeof(Item))]
101 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Item), Member = "get_IsAir", ReturnType = typeof(bool))]
102 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Player.SelectionRadial), Member = "get_SelectedItem", ReturnType = typeof(int))]
103 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Player.SelectionRadial), Member = "ChangeSelection", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
104 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ItemSlot), Member = "OverrideHover", MemberParameters = new object[]
105 {
106 typeof(Item[]),
107 typeof(int),
108 typeof(int)
109 }, ReturnType = typeof(void))]
110 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(XNAUIInputLayer), Member = "GetUICursor", ReturnType = typeof(global::Cursor))]
111 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(KeyboardInput), Member = "GetKey", MemberParameters = new object[] { typeof(KeyCode) }, ReturnType = typeof(bool))]
112 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(KeyboardInput), Member = "GetKeyDown", MemberParameters = new object[] { typeof(KeyCode) }, ReturnType = typeof(bool))]
113 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_mouseLeft", ReturnType = typeof(bool))]
114 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "set_mouseRight", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
115 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ItemSlot), Member = "RightClick", MemberParameters = new object[]
116 {
117 typeof(Item[]),
118 typeof(int),
119 typeof(int)
120 }, ReturnType = typeof(bool))]
121 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_mouseRight", ReturnType = typeof(bool))]
122 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIMouseItem), Member = "get_HoldingItem", ReturnType = typeof(bool))]
123 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIMouseItem), Member = "get_IsItemDropped", ReturnType = typeof(bool))]
124 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ItemSlot), Member = "LeftClick", MemberParameters = new object[]
125 {
126 typeof(Item[]),
127 typeof(int),
128 typeof(int)
129 }, ReturnType = typeof(void))]
130 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Recipe), Member = "FindRecipes", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
131 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIControllerPageRedirect), Member = "get_Ammo", ReturnType = typeof(GUIControllerAmmo))]
132 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIControllerNavigationController), Member = "set_CurrentNavigationItem", MemberParameters = new object[] { typeof(GUIControllerItem) }, ReturnType = typeof(void))]
133 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIControllerNavigationController), Member = "UpdateCursorPosition", ReturnType = typeof(void))]
134 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_mouseLeftRelease", ReturnType = typeof(bool))]
135 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "set_mouseRightRelease", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
136 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ItemSlot), Member = "MouseHover", MemberParameters = new object[]
137 {
138 typeof(Item[]),
139 typeof(int),
140 typeof(int)
141 }, ReturnType = typeof(void))]
142 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_cursorOverride", ReturnType = typeof(int))]
143 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIInventory), Member = "get_HasFocus", ReturnType = typeof(bool))]
144 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Language), Member = "GetTextValue", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(string))]
145 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIControlsBanner), Member = "AddAction", MemberParameters = new object[]
146 {
149 typeof(string)
150 }, ReturnType = typeof(void))]
151 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ControllerActionManager), Member = "get_ActiveController", ReturnType = typeof(ControllerDevice))]
152 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ControllerActionButton), Member = "GetButtonDown", MemberParameters = new object[] { typeof(ControllerDevice) }, ReturnType = typeof(bool))]
153 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ItemSlot), Member = "TakeOne", MemberParameters = new object[]
154 {
155 typeof(Item[]),
156 typeof(int),
157 typeof(int)
158 }, ReturnType = typeof(void))]
159 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 52)]
160 public void ItemOver(int index)
161 {
162 throw null;
163 }
164
165 [global::Cpp2ILInjected.Token(Token = "0x600074B")]
166 [global::Cpp2ILInjected.Address(RVA = "0x110A4D8", Offset = "0x110A4D8", Length = "0x63C")]
167 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
168 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
169 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIControllerHotbarRadial), Member = "GetSelectedItem", ReturnType = typeof(int))]
170 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIAmmo), Member = "ItemOver", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
171 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIControllerPageRedirect), Member = "get_Ammo", ReturnType = typeof(GUIControllerAmmo))]
172 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIControllerNavigationController), Member = "set_CurrentNavigationItem", MemberParameters = new object[] { typeof(GUIControllerItem) }, ReturnType = typeof(void))]
173 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIControllerNavigationController), Member = "UpdateCursorPosition", ReturnType = typeof(void))]
174 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Mouse), Member = "UpdateUICursorPoint", ReturnType = typeof(void))]
175 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIInventory), Member = "get_HasFocus", ReturnType = typeof(bool))]
176 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = ".ctor", MemberParameters = new object[]
177 {
178 typeof(int),
179 typeof(int),
180 typeof(int),
181 typeof(int)
182 }, ReturnType = typeof(void))]
183 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ControlAnchor), Member = "SetSelectedItemRegion", MemberParameters = new object[] { typeof(Rectangle) }, ReturnType = typeof(void))]
184 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RightSideHUDAnchorUpdator), Member = "get_UseCollpasedCoinsAmmo", ReturnType = typeof(bool))]
185 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PageControllerLayoutDefinition<>), Member = "get_Instance", ReturnType = "T")]
186 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ItemSlot), Member = "SetSelectHighlight", MemberParameters = new object[]
187 {
188 typeof(bool),
189 typeof(float)
190 }, ReturnType = typeof(void))]
191 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "set_inventoryScale", MemberParameters = new object[] { typeof(float) }, ReturnType = typeof(void))]
192 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_myPlayer", ReturnType = typeof(int))]
193 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ItemSlot), Member = "Draw", MemberParameters = new object[]
194 {
196 typeof(Item[]),
197 typeof(int),
198 typeof(int),
200 }, ReturnType = typeof(void))]
201 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ItemSlot), Member = "IsMouseItem", MemberParameters = new object[]
202 {
203 typeof(Item[]),
204 typeof(int)
205 }, ReturnType = typeof(bool))]
206 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_mouseItem", ReturnType = typeof(Item))]
207 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_mouseItemTime", ReturnType = typeof(float))]
208 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(AnimationCurve), Member = "Evaluate", MemberParameters = new object[] { typeof(float) }, ReturnType = typeof(float))]
209 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 30)]
210 public void ItemDraw(ItemGrid_Layout gridLayout, int index, Microsoft.Xna.Framework.Vector2 position, float scale)
211 {
212 throw null;
213 }
214
215 [global::Cpp2ILInjected.Token(Token = "0x600074C")]
216 [global::Cpp2ILInjected.Address(RVA = "0x110AB14", Offset = "0x110AB14", Length = "0x13C0")]
217 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
218 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIPageIcons), Member = "DrawInventoryPage", ReturnType = typeof(void))]
219 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
220 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Time), Member = "get_deltaTime", ReturnType = typeof(float))]
221 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Microsoft.Xna.Framework.Graphics.Color), Member = ".ctor", MemberParameters = new object[]
222 {
223 typeof(int),
224 typeof(int),
225 typeof(int),
226 typeof(int)
227 }, ReturnType = typeof(void))]
228 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Microsoft.Xna.Framework.Graphics.Color), Member = "op_Multiply", MemberParameters = new object[]
229 {
230 typeof(Microsoft.Xna.Framework.Graphics.Color),
231 typeof(float)
232 }, ReturnType = typeof(Microsoft.Xna.Framework.Graphics.Color))]
233 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RightSideHUDAnchorUpdator), Member = "get_UseCollpasedCoinsAmmo", ReturnType = typeof(bool))]
234 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PageControllerLayoutDefinition<>), Member = "get_Instance", ReturnType = "T")]
235 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIString), Member = "Draw", MemberParameters = new object[]
236 {
238 typeof(string),
240 typeof(bool)
241 }, ReturnType = typeof(void))]
242 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIItemGrid), Member = "Draw", MemberParameters = new object[]
243 {
248 typeof(int),
250 }, ReturnType = typeof(void))]
251 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_mouseLeft", ReturnType = typeof(bool))]
252 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_mouseItem", ReturnType = typeof(Item))]
253 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_myPlayer", ReturnType = typeof(int))]
254 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ItemSlot), Member = "LeftClick", MemberParameters = new object[]
255 {
256 typeof(Item[]),
257 typeof(int),
258 typeof(int)
259 }, ReturnType = typeof(void))]
260 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Recipe), Member = "FindRecipes", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
261 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 21)]
262 public void Draw()
263 {
264 throw null;
265 }
266
267 [global::Cpp2ILInjected.Token(Token = "0x40005AD")]
268 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
269 private int itemOver;
270
271 [global::Cpp2ILInjected.Token(Token = "0x40005AE")]
272 [global::Cpp2ILInjected.FieldOffset(Offset = "0x14")]
273 private int cursorOver;
274
275 [global::Cpp2ILInjected.Token(Token = "0x40005AF")]
276 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
277 private int itemDragStart;
278
279 [global::Cpp2ILInjected.Token(Token = "0x40005B0")]
280 [global::Cpp2ILInjected.FieldOffset(Offset = "0x1C")]
281 private int lastItemClicked;
282
283 [global::Cpp2ILInjected.Token(Token = "0x40005B1")]
284 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
285 private float doubleClickTimer;
286
287 [global::Cpp2ILInjected.Token(Token = "0x40005B2")]
288 [global::Cpp2ILInjected.FieldOffset(Offset = "0x24")]
289 private bool rightClickHeld;
290
291 [global::Cpp2ILInjected.Token(Token = "0x40005B3")]
292 [global::Cpp2ILInjected.FieldOffset(Offset = "0x28")]
294
295 [global::Cpp2ILInjected.Token(Token = "0x40005B4")]
296 [global::Cpp2ILInjected.FieldOffset(Offset = "0x30")]
298
299 [global::Cpp2ILInjected.Token(Token = "0x40005B5")]
300 [global::Cpp2ILInjected.FieldOffset(Offset = "0x38")]
302}
class f__AnonymousType0<< Count > j__TPar
bool CanBeStored(Item checkItem)
Definition GUIAmmo.cs:71
int cursorOver
Definition GUIAmmo.cs:273
int lastItemClicked
Definition GUIAmmo.cs:281
float doubleClickTimer
Definition GUIAmmo.cs:285
int itemDragStart
Definition GUIAmmo.cs:277
Rectangle GetRegion()
Definition GUIAmmo.cs:62
float ItemScale(int index)
Definition GUIAmmo.cs:83
void ItemOver(int index)
Definition GUIAmmo.cs:160
GUIItemGrid.GetItemScaleHandler ItemScaleDelegate
Definition GUIAmmo.cs:293
void ItemDraw(ItemGrid_Layout gridLayout, int index, Microsoft.Xna.Framework.Vector2 position, float scale)
Definition GUIAmmo.cs:210
bool rightClickHeld
Definition GUIAmmo.cs:289
GUIItemGrid.DrawItemHandler itemDrawDelegate
Definition GUIAmmo.cs:301
GUIAmmo()
Definition GUIAmmo.cs:37
int itemOver
Definition GUIAmmo.cs:269
void Draw()
Definition GUIAmmo.cs:262
GUIItemGrid.CursorOver ItemOverDelegate
Definition GUIAmmo.cs:297
delegate void CursorOver(int itemIndex)
delegate void DrawItemHandler(ItemGrid_Layout gridLayout, int itemIndex, Vector2 position, float scale)
delegate float GetItemScaleHandler(int itemIndex)