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
UIBestiaryEntryGrid.cs
Go to the documentation of this file.
1using System;
9using Terraria.UI;
10
12{
13 [global::Cpp2ILInjected.Token(Token = "0x2000A98")]
15 {
16 [global::Cpp2ILInjected.Token(Token = "0x1400005C")]
17 public event Action OnGridContentsChanged
18 {
20 [global::Cpp2ILInjected.Token(Token = "0x6005007")]
21 [global::Cpp2ILInjected.Address(RVA = "0x9074DC", Offset = "0x9074DC", Length = "0xA0")]
22 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
23 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UIBestiaryTest), Member = "BuildPage", ReturnType = typeof(void))]
24 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
25 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Delegate), Member = "Combine", MemberParameters = new object[]
26 {
29 }, ReturnType = typeof(Delegate))]
30 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
31 add
32 {
33 throw null;
34 }
36 [global::Cpp2ILInjected.Token(Token = "0x6005008")]
37 [global::Cpp2ILInjected.Address(RVA = "0x90757C", Offset = "0x90757C", Length = "0xA0")]
38 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
39 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
40 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Delegate), Member = "Remove", MemberParameters = new object[]
41 {
44 }, ReturnType = typeof(Delegate))]
45 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
46 remove
47 {
48 throw null;
49 }
50 }
51
52 [global::Cpp2ILInjected.Token(Token = "0x6005009")]
53 [global::Cpp2ILInjected.Address(RVA = "0x90761C", Offset = "0x90761C", Length = "0x108")]
54 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UIBestiaryTest), Member = "BuildPage", ReturnType = typeof(void))]
55 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
56 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UIElement), Member = ".ctor", ReturnType = typeof(void))]
57 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(StyleDimension), Member = ".ctor", MemberParameters = new object[]
58 {
59 typeof(float),
60 typeof(float)
61 }, ReturnType = typeof(void))]
62 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UIElement), Member = "SetPadding", MemberParameters = new object[] { typeof(float) }, ReturnType = typeof(void))]
63 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UIBestiaryEntryGrid), Member = "FillBestiarySpaceWithEntries", ReturnType = typeof(void))]
64 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
69
70 [global::Cpp2ILInjected.Token(Token = "0x600500A")]
71 [global::Cpp2ILInjected.Address(RVA = "0x907724", Offset = "0x907724", Length = "0x44")]
72 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
73 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
74 public void UpdateEntries()
75 {
76 throw null;
77 }
78
79 [global::Cpp2ILInjected.Token(Token = "0x600500B")]
80 [global::Cpp2ILInjected.Address(RVA = "0x907768", Offset = "0x907768", Length = "0x410")]
81 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
82 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UIBestiaryTest), Member = "FillBestiarySpaceWithEntries", ReturnType = typeof(void))]
83 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UIBestiaryEntryGrid), Member = ".ctor", MemberParameters = new object[]
84 {
87 }, ReturnType = typeof(void))]
88 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UIBestiaryEntryGrid), Member = "Recalculate", ReturnType = typeof(void))]
89 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UIBestiaryEntryGrid), Member = "OffsetLibrary", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
90 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
91 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UIElement), Member = "RemoveAllChildren", ReturnType = typeof(void))]
92 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CalculatedStyle), Member = "ToRectangle", ReturnType = typeof(Rectangle))]
93 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UIBestiaryEntryGrid), Member = "FixBestiaryRange", MemberParameters = new object[]
94 {
95 typeof(int),
96 typeof(int)
97 }, ReturnType = typeof(void))]
98 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Math), Member = "Min", MemberParameters = new object[]
99 {
100 typeof(int),
101 typeof(int)
102 }, ReturnType = typeof(int))]
103 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = ".ctor", ReturnType = typeof(void))]
104 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = "get_Item", MemberParameters = new object[] { typeof(int) }, ReturnType = "T")]
105 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UIBestiaryEntryButton), Member = ".ctor", MemberParameters = new object[]
106 {
108 typeof(bool)
109 }, ReturnType = typeof(void))]
110 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UIElement), Member = "add_OnLeftClick", MemberParameters = new object[] { typeof(UIElement.MouseEvent) }, ReturnType = typeof(void))]
111 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(StyleDimension), Member = "Set", MemberParameters = new object[]
112 {
113 typeof(float),
114 typeof(float)
115 }, ReturnType = typeof(void))]
116 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = ".ctor", MemberParameters = new object[]
117 {
118 typeof(float),
119 typeof(float)
120 }, ReturnType = typeof(void))]
121 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2?), Member = ".ctor", MemberParameters = new object[] { typeof(Vector2) }, ReturnType = typeof(void))]
122 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UIElement), Member = "SetSnapPoint", MemberParameters = new object[]
123 {
124 typeof(string),
125 typeof(int),
126 typeof(Vector2?),
128 }, ReturnType = typeof(void))]
129 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UIElement), Member = "Append", MemberParameters = new object[] { typeof(UIElement) }, ReturnType = typeof(void))]
130 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 13)]
132 {
133 throw null;
134 }
135
136 [global::Cpp2ILInjected.Token(Token = "0x600500C")]
137 [global::Cpp2ILInjected.Address(RVA = "0x907CF4", Offset = "0x907CF4", Length = "0x1C")]
138 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
139 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UIElement), Member = "Recalculate", ReturnType = typeof(void))]
140 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UIBestiaryEntryGrid), Member = "FillBestiarySpaceWithEntries", ReturnType = typeof(void))]
141 public override void Recalculate()
142 {
143 throw null;
144 }
145
146 [global::Cpp2ILInjected.Token(Token = "0x600500D")]
147 [global::Cpp2ILInjected.Address(RVA = "0x907B78", Offset = "0x907B78", Length = "0x7C")]
148 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
149 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
150 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CalculatedStyle), Member = "ToRectangle", ReturnType = typeof(Rectangle))]
152 {
153 throw null;
154 }
155
156 [global::Cpp2ILInjected.Token(Token = "0x600500E")]
157 [global::Cpp2ILInjected.Address(RVA = "0x907D10", Offset = "0x907D10", Length = "0x15C")]
158 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
159 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UIBestiaryTest), Member = "UpdateBestiaryGridRange", ReturnType = typeof(void))]
160 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
161 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CalculatedStyle), Member = "ToRectangle", ReturnType = typeof(Rectangle))]
162 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Math), Member = "Min", MemberParameters = new object[]
163 {
164 typeof(int),
165 typeof(int)
166 }, ReturnType = typeof(int))]
167 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Format", MemberParameters = new object[]
168 {
169 typeof(string),
170 typeof(object),
171 typeof(object),
172 typeof(object)
173 }, ReturnType = typeof(string))]
174 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 7)]
175 public string GetRangeText()
176 {
177 throw null;
178 }
179
180 [global::Cpp2ILInjected.Token(Token = "0x600500F")]
181 [global::Cpp2ILInjected.Address(RVA = "0x907E6C", Offset = "0x907E6C", Length = "0xC4")]
182 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UIBestiaryTest), Member = "AddBackAndForwardButtons", MemberParameters = new object[] { typeof(UIElement) }, ReturnType = typeof(void))]
183 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
184 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
185 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UIElement.MouseEvent), Member = ".ctor", MemberParameters = new object[]
186 {
187 typeof(object),
189 }, ReturnType = typeof(void))]
190 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UIElement), Member = "add_OnLeftClick", MemberParameters = new object[] { typeof(UIElement.MouseEvent) }, ReturnType = typeof(void))]
191 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
193 {
194 throw null;
195 }
196
197 [global::Cpp2ILInjected.Token(Token = "0x6005010")]
198 [global::Cpp2ILInjected.Address(RVA = "0x907F38", Offset = "0x907F38", Length = "0x74")]
199 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
200 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UIBestiaryEntryGrid.<>c__DisplayClass13_0), Member = "<MakeButtonGoByOffset>b__0", MemberParameters = new object[]
201 {
202 typeof(UIMouseEvent),
203 typeof(UIElement)
204 }, ReturnType = typeof(void))]
205 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
206 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CalculatedStyle), Member = "ToRectangle", ReturnType = typeof(Rectangle))]
207 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UIBestiaryEntryGrid), Member = "OffsetLibrary", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
209 {
210 throw null;
211 }
212
213 [global::Cpp2ILInjected.Token(Token = "0x6005011")]
214 [global::Cpp2ILInjected.Address(RVA = "0x907FAC", Offset = "0x907FAC", Length = "0x7C")]
215 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
216 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UIBestiaryEntryGrid), Member = "OffsetLibraryByPages", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
217 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
218 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CalculatedStyle), Member = "ToRectangle", ReturnType = typeof(Rectangle))]
219 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UIBestiaryEntryGrid), Member = "FixBestiaryRange", MemberParameters = new object[]
220 {
221 typeof(int),
222 typeof(int)
223 }, ReturnType = typeof(void))]
224 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UIBestiaryEntryGrid), Member = "FillBestiarySpaceWithEntries", ReturnType = typeof(void))]
225 public void OffsetLibrary(int offset)
226 {
227 throw null;
228 }
229
230 [global::Cpp2ILInjected.Token(Token = "0x6005012")]
231 [global::Cpp2ILInjected.Address(RVA = "0x907BF4", Offset = "0x907BF4", Length = "0x100")]
232 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UIBestiaryEntryGrid), Member = "FillBestiarySpaceWithEntries", ReturnType = typeof(void))]
233 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UIBestiaryEntryGrid), Member = "OffsetLibrary", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
234 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
235 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Math), Member = "Max", MemberParameters = new object[]
236 {
237 typeof(int),
238 typeof(int)
239 }, ReturnType = typeof(int))]
240 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils[]), Member = "Clamp", MemberTypeParameters = new object[] { typeof(int) }, MemberParameters = new object[]
241 {
242 typeof(int),
243 typeof(int),
244 typeof(int)
245 }, ReturnType = "T")]
246 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
248 {
249 throw null;
250 }
251
252 [global::Cpp2ILInjected.Token(Token = "0x40088E8")]
253 [global::Cpp2ILInjected.FieldOffset(Offset = "0x148")]
255
256 [global::Cpp2ILInjected.Token(Token = "0x40088E9")]
257 [global::Cpp2ILInjected.FieldOffset(Offset = "0x150")]
259
260 [global::Cpp2ILInjected.Token(Token = "0x40088EA")]
261 [global::Cpp2ILInjected.FieldOffset(Offset = "0x158")]
262 private int _atEntryIndex;
263
264 [global::Cpp2ILInjected.Token(Token = "0x40088EB")]
265 [global::Cpp2ILInjected.FieldOffset(Offset = "0x15C")]
266 private int _lastEntry;
267
269 [global::Cpp2ILInjected.Token(Token = "0x40088EC")]
270 [global::Cpp2ILInjected.FieldOffset(Offset = "0x160")]
271 private Action OnGridContentsChanged;
272
274 [global::Cpp2ILInjected.Token(Token = "0x2000A99")]
275 private sealed class <>c__DisplayClass13_0
276 {
277 [global::Cpp2ILInjected.Token(Token = "0x6005013")]
278 [global::Cpp2ILInjected.Address(RVA = "0x907F30", Offset = "0x907F30", Length = "0x8")]
279 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
280 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
282 {
283 throw null;
284 }
285
286 [global::Cpp2ILInjected.Token(Token = "0x6005014")]
287 [global::Cpp2ILInjected.Address(RVA = "0x908028", Offset = "0x908028", Length = "0x10")]
288 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
289 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UIBestiaryEntryGrid), Member = "OffsetLibraryByPages", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
291 {
292 throw null;
293 }
294
295 [global::Cpp2ILInjected.Token(Token = "0x40088ED")]
296 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
298
299 [global::Cpp2ILInjected.Token(Token = "0x40088EE")]
300 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
301 public int howManyPages;
302 }
303 }
304}
class f__AnonymousType0<< Count > j__TPar
void GetEntriesToShow(out int maxEntriesWidth, out int maxEntriesHeight, out int maxEntriesToHave)
void FixBestiaryRange(int offset, int maxEntriesToHave)
UIBestiaryEntryGrid(List< BestiaryEntry > workingSet, UIElement.MouseEvent clickOnEntryEvent)
void MakeButtonGoByOffset(UIElement element, int howManyPages)
delegate void MouseEvent(UIMouseEvent evt, UIElement listeningElement)