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
GUIButtonBar.cs
Go to the documentation of this file.
1using System;
2using Controller;
8using Terraria;
10
11[global::Cpp2ILInjected.Token(Token = "0x2000127")]
12public class GUIButtonBar
13{
14 [global::Cpp2ILInjected.Token(Token = "0x60007A2")]
15 [global::Cpp2ILInjected.Address(RVA = "0x1323484", Offset = "0x1323484", Length = "0x19C")]
16 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIInstance), Member = ".ctor", ReturnType = typeof(void))]
17 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
18 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
19 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIItemGrid.GetItemScaleHandler), Member = ".ctor", MemberParameters = new object[]
20 {
21 typeof(object),
22 typeof(IntPtr)
23 }, ReturnType = typeof(void))]
24 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIItemGrid.CursorOver), Member = ".ctor", MemberParameters = new object[]
25 {
26 typeof(object),
27 typeof(IntPtr)
28 }, ReturnType = typeof(void))]
29 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIItemGrid.DrawItemHandler), Member = ".ctor", MemberParameters = new object[]
30 {
31 typeof(object),
32 typeof(IntPtr)
33 }, ReturnType = typeof(void))]
34 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 15)]
35 public GUIButtonBar()
36 {
37 throw null;
38 }
39
40 [global::Cpp2ILInjected.Token(Token = "0x60007A3")]
41 [global::Cpp2ILInjected.Address(RVA = "0x1323620", Offset = "0x1323620", Length = "0x84")]
42 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIButtonBar), Member = "RefreshItems", ReturnType = typeof(void))]
43 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
44 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
46 {
47 throw null;
48 }
49
50 [global::Cpp2ILInjected.Token(Token = "0x60007A4")]
51 [global::Cpp2ILInjected.Address(RVA = "0x13236A4", Offset = "0x13236A4", Length = "0x220")]
52 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
53 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIButtonBar), Member = "Draw", ReturnType = typeof(void))]
54 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
55 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIButtonBar), Member = "AddAction", MemberParameters = new object[]
56 {
59 }, ReturnType = typeof(void))]
60 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_GameMode", ReturnType = typeof(int))]
61 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_NetClientOnly", ReturnType = typeof(bool))]
62 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
63 private void RefreshItems()
64 {
65 throw null;
66 }
67
68 [global::Cpp2ILInjected.Token(Token = "0x60007A5")]
69 [global::Cpp2ILInjected.Address(RVA = "0x13238C4", Offset = "0x13238C4", Length = "0x4C")]
70 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
71 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
72 public float ItemScale(int index)
73 {
74 throw null;
75 }
76
77 [global::Cpp2ILInjected.Token(Token = "0x60007A6")]
78 [global::Cpp2ILInjected.Address(RVA = "0x1323910", Offset = "0x1323910", Length = "0x4")]
79 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
80 private void ItemOver(int index)
81 {
82 throw null;
83 }
84
85 [global::Cpp2ILInjected.Token(Token = "0x60007A7")]
86 [global::Cpp2ILInjected.Address(RVA = "0x1323914", Offset = "0x1323914", Length = "0x330")]
87 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
88 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIButtonBar), Member = "ItemDraw", MemberParameters = new object[]
89 {
91 typeof(int),
93 typeof(float)
94 }, ReturnType = typeof(void))]
95 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
96 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_mapEnabled", ReturnType = typeof(bool))]
97 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_mapReady", ReturnType = typeof(bool))]
98 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Texture_Layout), Member = "get_Texture", ReturnType = typeof(Texture2D))]
99 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 12)]
104
105 [global::Cpp2ILInjected.Token(Token = "0x60007A8")]
106 [global::Cpp2ILInjected.Address(RVA = "0x1323C44", Offset = "0x1323C44", Length = "0x214")]
107 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
108 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
109 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = ".ctor", MemberParameters = new object[]
110 {
111 typeof(int),
112 typeof(int),
113 typeof(int),
114 typeof(int)
115 }, ReturnType = typeof(void))]
116 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ControlAnchor), Member = "SetGridItemRegion", MemberParameters = new object[] { typeof(Rectangle) }, ReturnType = typeof(void))]
117 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIButtonBar), Member = "GetButtonSetup", MemberParameters = new object[]
118 {
120 typeof(int),
121 typeof(ref bool),
122 typeof(ref string),
124 }, ReturnType = typeof(Texture2D))]
125 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUITransactionButton), Member = "DrawWithBanner", MemberParameters = new object[]
126 {
131 typeof(string),
132 typeof(bool),
133 typeof(ref float),
134 typeof(Color?),
135 typeof(bool),
136 typeof(bool),
137 typeof(bool),
138 typeof(bool),
139 typeof(bool)
140 }, ReturnType = typeof(GUITransactionButton.InputState))]
141 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIButtonBar), Member = "PerformAction", MemberParameters = new object[] { typeof(GUIButtonBar.Action) }, ReturnType = typeof(void))]
142 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SpriteBatch), Member = "End", ReturnType = typeof(void))]
143 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SpriteBatch), Member = "Begin", MemberParameters = new object[]
144 {
150 typeof(Effect),
151 typeof(Matrix?),
152 typeof(bool)
153 }, ReturnType = typeof(void))]
154 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
155 private void ItemDraw(ItemGrid_Layout gridLayout, int index, Vector2 position, float scale)
156 {
157 throw null;
158 }
159
160 [global::Cpp2ILInjected.Token(Token = "0x60007A9")]
161 [global::Cpp2ILInjected.Address(RVA = "0x1323E58", Offset = "0x1323E58", Length = "0x290")]
162 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
163 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIButtonBar), Member = "ItemDraw", MemberParameters = new object[]
164 {
166 typeof(int),
168 typeof(float)
169 }, ReturnType = typeof(void))]
170 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
171 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIPageIcons), Member = "Close", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
172 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "set_playerInventory", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
173 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_myPlayer", ReturnType = typeof(int))]
174 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "set_npcChatCornerItem", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
175 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SoundEngine), Member = "PlaySound", MemberParameters = new object[]
176 {
177 typeof(int),
178 typeof(int),
179 typeof(int),
180 typeof(int),
181 typeof(float),
182 typeof(float)
183 }, ReturnType = typeof(SoundEffectInstance))]
184 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "set_mapFullscreenScale", MemberParameters = new object[] { typeof(float) }, ReturnType = typeof(void))]
185 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "set_mapFullscreen", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
186 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIControllerMappings), Member = "UpdateUIInteractionOverloads", MemberParameters = new object[] { typeof(GUIControllerMappings.InteractionOverloadState) }, ReturnType = typeof(void))]
187 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "set_resetMapFull", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
188 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIPageIcons), Member = "OpenUI", MemberParameters = new object[]
189 {
192 }, ReturnType = typeof(void))]
193 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
195 {
196 throw null;
197 }
198
199 [global::Cpp2ILInjected.Token(Token = "0x60007AA")]
200 [global::Cpp2ILInjected.Address(RVA = "0x13240E8", Offset = "0x13240E8", Length = "0x230")]
201 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
202 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
203 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_mapFullscreen", ReturnType = typeof(bool))]
204 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_myPlayer", ReturnType = typeof(int))]
205 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIPageIcons), Member = "DrawRightPageHUD", ReturnType = typeof(bool))]
206 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIButtonBar), Member = "RefreshItems", ReturnType = typeof(void))]
207 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIItemGrid), Member = "CalculateRegion", MemberParameters = new object[]
208 {
211 typeof(int),
213 }, ReturnType = typeof(Rectangle))]
214 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle?), Member = ".ctor", MemberParameters = new object[] { typeof(Rectangle) }, ReturnType = typeof(void))]
215 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIStretched), Member = "Draw", MemberParameters = new object[]
216 {
219 typeof(Color?)
220 }, ReturnType = typeof(void))]
221 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SpriteBatch), Member = "End", ReturnType = typeof(void))]
222 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SpriteBatch), Member = "Begin", MemberParameters = new object[]
223 {
229 typeof(Effect),
230 typeof(Matrix?),
231 typeof(bool)
232 }, ReturnType = typeof(void))]
233 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIItemGrid), Member = "Draw", MemberParameters = new object[]
234 {
239 typeof(int),
241 }, ReturnType = typeof(void))]
242 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 9)]
243 public void Draw()
244 {
245 throw null;
246 }
247
248 [global::Cpp2ILInjected.Token(Token = "0x400061F")]
249 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
250 private int ItemCount;
251
252 [global::Cpp2ILInjected.Token(Token = "0x4000620")]
253 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
255
256 [global::Cpp2ILInjected.Token(Token = "0x4000621")]
257 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
259
260 [global::Cpp2ILInjected.Token(Token = "0x4000622")]
261 [global::Cpp2ILInjected.FieldOffset(Offset = "0x28")]
262 public float[] Scale;
263
264 [global::Cpp2ILInjected.Token(Token = "0x4000623")]
265 [global::Cpp2ILInjected.FieldOffset(Offset = "0x30")]
266 private bool Expanded;
267
268 [global::Cpp2ILInjected.Token(Token = "0x4000624")]
269 [global::Cpp2ILInjected.FieldOffset(Offset = "0x38")]
271
272 [global::Cpp2ILInjected.Token(Token = "0x4000625")]
273 [global::Cpp2ILInjected.FieldOffset(Offset = "0x40")]
275
276 [global::Cpp2ILInjected.Token(Token = "0x4000626")]
277 [global::Cpp2ILInjected.FieldOffset(Offset = "0x48")]
279
280 [global::Cpp2ILInjected.Token(Token = "0x2000128")]
281 public enum Action
282 {
283 [global::Cpp2ILInjected.Token(Token = "0x4000628")]
285 [global::Cpp2ILInjected.Token(Token = "0x4000629")]
286 Chat,
287 [global::Cpp2ILInjected.Token(Token = "0x400062A")]
288 Tutorial,
289 [global::Cpp2ILInjected.Token(Token = "0x400062B")]
291 [global::Cpp2ILInjected.Token(Token = "0x400062C")]
292 Housing,
293 [global::Cpp2ILInjected.Token(Token = "0x400062D")]
294 PVP,
295 [global::Cpp2ILInjected.Token(Token = "0x400062E")]
296 Bestiary,
297 [global::Cpp2ILInjected.Token(Token = "0x400062F")]
299 [global::Cpp2ILInjected.Token(Token = "0x4000630")]
300 Map,
301 [global::Cpp2ILInjected.Token(Token = "0x4000631")]
303 [global::Cpp2ILInjected.Token(Token = "0x4000632")]
304 Count
305 }
306}
class f__AnonymousType0<< Count > j__TPar
void AddAction(GUIButtonBar.Action action, ControllerActionButton bannerAction)
void RefreshItems()
void ItemOver(int index)
GUIItemGrid.CursorOver itemOver
GUIButtonBar.Action[] Items
void ItemDraw(ItemGrid_Layout gridLayout, int index, Vector2 position, float scale)
Texture2D GetButtonSetup(GUIButtonBar.Action action, int entry, out bool disabled, out string actionString, out TransactionButton_Layout buttonLayout)
GUIItemGrid.DrawItemHandler itemDraw
float ItemScale(int index)
void PerformAction(GUIButtonBar.Action action)
ControllerActionButton[] ItemsActions
GUIItemGrid.GetItemScaleHandler itemScale
delegate void CursorOver(int itemIndex)
delegate void DrawItemHandler(ItemGrid_Layout gridLayout, int itemIndex, Vector2 position, float scale)
delegate float GetItemScaleHandler(int itemIndex)