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
GameTipsDisplay.cs
Go to the documentation of this file.
1using System;
4using System.Text;
12using UnityEngine;
13
15{
16 [global::Cpp2ILInjected.Token(Token = "0x2000A5E")]
17 public class GameTipsDisplay
18 {
19 [global::Cpp2ILInjected.Token(Token = "0x6004E76")]
20 [global::Cpp2ILInjected.Address(RVA = "0x8E1D70", Offset = "0x8E1D70", Length = "0x84")]
21 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "Initialize", ReturnType = typeof(void))]
22 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
23 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = ".ctor", ReturnType = typeof(void))]
24 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
25 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
27 {
28 throw null;
29 }
30
31 [global::Cpp2ILInjected.Token(Token = "0x6004E77")]
32 [global::Cpp2ILInjected.Address(RVA = "0x8E1DF4", Offset = "0x8E1DF4", Length = "0x310")]
33 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
34 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIPlayerAndGameModeMismatch), Member = "Draw", ReturnType = typeof(void))]
35 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIStatusMenu), Member = "Draw", ReturnType = typeof(void))]
36 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIWorldGenerateMenu), Member = "Draw", ReturnType = typeof(void))]
37 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
38 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
39 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TimeSpan), Member = "get_TotalSeconds", ReturnType = typeof(double))]
40 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Predicate<object>), Member = ".ctor", MemberParameters = new object[]
41 {
42 typeof(object),
44 }, ReturnType = typeof(void))]
45 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = "RemoveAll", MemberParameters = new object[] { typeof(Predicate<object>) }, ReturnType = typeof(int))]
46 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = "GetEnumerator", ReturnType = "Enumerator<T>")]
47 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>.Enumerator), Member = "MoveNext", ReturnType = typeof(bool))]
48 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>.Enumerator), Member = "Dispose", ReturnType = typeof(void))]
49 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GameTipsDisplay), Member = "AddNewTip", MemberParameters = new object[] { typeof(double) }, ReturnType = typeof(void))]
50 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GameTipsDisplay.GameTip), Member = "Update", MemberParameters = new object[] { typeof(double) }, ReturnType = typeof(void))]
51 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 22)]
52 public void Update()
53 {
54 throw null;
55 }
56
57 [global::Cpp2ILInjected.Token(Token = "0x6004E78")]
58 [global::Cpp2ILInjected.Address(RVA = "0x8E24D4", Offset = "0x8E24D4", Length = "0x68")]
59 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
60 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
61 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Array), Member = "Clear", MemberParameters = new object[]
62 {
64 typeof(int),
65 typeof(int)
66 }, ReturnType = typeof(void))]
67 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
68 public void ClearTips()
69 {
70 throw null;
71 }
72
73 [global::Cpp2ILInjected.Token(Token = "0x6004E79")]
74 [global::Cpp2ILInjected.Address(RVA = "0x8E253C", Offset = "0x8E253C", Length = "0x920")]
75 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
76 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIPlayerAndGameModeMismatch), Member = "Draw", ReturnType = typeof(void))]
77 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIStatusMenu), Member = "Draw", ReturnType = typeof(void))]
78 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIWorldGenerateMenu), Member = "Draw", ReturnType = typeof(void))]
79 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
80 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_screenHeight", ReturnType = typeof(int))]
81 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_screenWidth", ReturnType = typeof(int))]
82 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = ".ctor", MemberParameters = new object[]
83 {
84 typeof(int),
85 typeof(int),
86 typeof(int),
87 typeof(int)
88 }, ReturnType = typeof(void))]
89 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = "GetEnumerator", ReturnType = "Enumerator<T>")]
90 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>.Enumerator), Member = "MoveNext", ReturnType = typeof(bool))]
91 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(StringBuilder), Member = "Clear", ReturnType = typeof(StringBuilder))]
92 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "get_Chars", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(char))]
93 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(StringBuilder), Member = "Append", MemberParameters = new object[] { typeof(char) }, ReturnType = typeof(StringBuilder))]
94 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnifiedRandom), Member = "Next", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(int))]
95 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(int), Member = "ToString", ReturnType = typeof(string))]
96 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
97 {
98 typeof(string),
99 typeof(string)
100 }, ReturnType = typeof(string))]
101 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIString), Member = "GetRegion", MemberParameters = new object[]
102 {
104 typeof(string)
105 }, ReturnType = typeof(Rectangle))]
106 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Microsoft.Xna.Framework.Vector2), Member = ".ctor", MemberParameters = new object[]
107 {
108 typeof(float),
109 typeof(float)
110 }, ReturnType = typeof(void))]
111 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(String_Layout), Member = "GetFont", ReturnType = typeof(SpriteFont))]
112 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Microsoft.Xna.Framework.Vector2), Member = "op_Multiply", MemberParameters = new object[]
113 {
115 typeof(float)
116 }, ReturnType = typeof(Microsoft.Xna.Framework.Vector2))]
117 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ChatManager), Member = "DrawStringWithShadow", MemberParameters = new object[]
118 {
121 typeof(string),
124 typeof(float),
127 typeof(float),
128 typeof(float)
129 }, ReturnType = typeof(void))]
130 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>.Enumerator), Member = "Dispose", ReturnType = typeof(void))]
131 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 47)]
132 public void Draw(String_Layout layout = null, float MaxHeight = 0f)
133 {
134 throw null;
135 }
136
137 [global::Cpp2ILInjected.Token(Token = "0x6004E7A")]
138 [global::Cpp2ILInjected.Address(RVA = "0x8E2130", Offset = "0x8E2130", Length = "0x2A4")]
139 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
140 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GameTipsDisplay), Member = "Update", ReturnType = typeof(void))]
141 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
142 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(XNAUnityRunner), Member = "get_PrimaryInputMode", ReturnType = typeof(XNAUnityRunner.ForcedInputMode))]
143 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Application), Member = "get_isEditor", ReturnType = typeof(bool))]
144 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LanguageManager), Member = "RandomFromCategories", MemberParameters = new object[]
145 {
146 typeof(string[]),
147 typeof(ref int),
149 }, ReturnType = typeof(LocalizedText))]
150 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GameTipsDisplay.GameTip), Member = ".ctor", MemberParameters = new object[]
151 {
153 typeof(double)
154 }, ReturnType = typeof(void))]
155 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 19)]
156 private void AddNewTip(double currentTime)
157 {
158 throw null;
159 }
160
161 [global::Cpp2ILInjected.Token(Token = "0x4008795")]
162 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
164
165 [global::Cpp2ILInjected.Token(Token = "0x4008796")]
166 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
168
169 [global::Cpp2ILInjected.Token(Token = "0x4008797")]
170 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
172
173 [global::Cpp2ILInjected.Token(Token = "0x4008798")]
174 [global::Cpp2ILInjected.FieldOffset(Offset = "0x28")]
176
177 [global::Cpp2ILInjected.Token(Token = "0x4008799")]
178 [global::Cpp2ILInjected.FieldOffset(Offset = "0x30")]
180
181 [global::Cpp2ILInjected.Token(Token = "0x400879A")]
182 [global::Cpp2ILInjected.FieldOffset(Offset = "0x38")]
183 private int _lastTipIndex;
184
185 [global::Cpp2ILInjected.Token(Token = "0x2000A5F")]
186 private class GameTip
187 {
188 [global::Cpp2ILInjected.Token(Token = "0x170008A0")]
189 public string Text
190 {
191 [global::Cpp2ILInjected.Token(Token = "0x6004E7B")]
192 [global::Cpp2ILInjected.Address(RVA = "0x8E2E5C", Offset = "0x8E2E5C", Length = "0x54")]
193 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
194 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
195 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
196 get
197 {
198 throw null;
199 }
200 }
201
202 [global::Cpp2ILInjected.Token(Token = "0x6004E7C")]
203 [global::Cpp2ILInjected.Address(RVA = "0x8E2F58", Offset = "0x8E2F58", Length = "0x1C")]
204 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
205 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
206 public bool IsExpired(double currentTime)
207 {
208 throw null;
209 }
210
211 [global::Cpp2ILInjected.Token(Token = "0x6004E7D")]
212 [global::Cpp2ILInjected.Address(RVA = "0x8E210C", Offset = "0x8E210C", Length = "0x24")]
213 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
214 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
215 public bool IsExpiring(double currentTime)
216 {
217 throw null;
218 }
219
220 [global::Cpp2ILInjected.Token(Token = "0x6004E7E")]
221 [global::Cpp2ILInjected.Address(RVA = "0x8E2EB0", Offset = "0x8E2EB0", Length = "0xA8")]
222 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GameTipsDisplay), Member = "AddNewTip", MemberParameters = new object[] { typeof(double) }, ReturnType = typeof(void))]
223 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
224 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
225 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Lang), Member = "CreateDialogSubstitutionObject", MemberParameters = new object[] { typeof(NPC) }, ReturnType = typeof(object))]
226 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LocalizedText), Member = "FormatWith", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(string))]
227 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
229 {
230 throw null;
231 }
232
233 [global::Cpp2ILInjected.Token(Token = "0x6004E7F")]
234 [global::Cpp2ILInjected.Address(RVA = "0x8E23D4", Offset = "0x8E23D4", Length = "0x100")]
235 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
236 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GameTipsDisplay), Member = "Update", ReturnType = typeof(void))]
237 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
238 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils), Member = "GetLerpValue", MemberParameters = new object[]
239 {
240 typeof(double),
241 typeof(double),
242 typeof(double),
243 typeof(bool)
244 }, ReturnType = typeof(double))]
245 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MathHelper), Member = "SmoothStep", MemberParameters = new object[]
246 {
247 typeof(float),
248 typeof(float),
249 typeof(float)
250 }, ReturnType = typeof(float))]
251 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
252 public void Update(double currentTime)
253 {
254 throw null;
255 }
256
257 [global::Cpp2ILInjected.Token(Token = "0x400879B")]
258 private const float APPEAR_FROM = 2.5f;
259
260 [global::Cpp2ILInjected.Token(Token = "0x400879C")]
261 private const float APPEAR_TO = 0.5f;
262
263 [global::Cpp2ILInjected.Token(Token = "0x400879D")]
264 private const float DISAPPEAR_TO = -1.5f;
265
266 [global::Cpp2ILInjected.Token(Token = "0x400879E")]
267 private const float APPEAR_TIME = 0.5f;
268
269 [global::Cpp2ILInjected.Token(Token = "0x400879F")]
270 private const float DISAPPEAR_TIME = 1f;
271
272 [global::Cpp2ILInjected.Token(Token = "0x40087A0")]
273 private const float DURATION = 11.5f;
274
275 [global::Cpp2ILInjected.Token(Token = "0x40087A1")]
276 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
278
279 [global::Cpp2ILInjected.Token(Token = "0x40087A2")]
280 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
281 private string _formattedText;
282
283 [global::Cpp2ILInjected.Token(Token = "0x40087A3")]
284 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
285 public float ScreenAnchorX;
286
287 [global::Cpp2ILInjected.Token(Token = "0x40087A4")]
288 [global::Cpp2ILInjected.FieldOffset(Offset = "0x24")]
289 public readonly float Duration;
290
291 [global::Cpp2ILInjected.Token(Token = "0x40087A5")]
292 [global::Cpp2ILInjected.FieldOffset(Offset = "0x28")]
293 public readonly double SpawnTime;
294 }
295
297 [global::Cpp2ILInjected.Token(Token = "0x2000A60")]
298 private sealed class <>c__DisplayClass8_0
299 {
300 [global::Cpp2ILInjected.Token(Token = "0x6004E80")]
301 [global::Cpp2ILInjected.Address(RVA = "0x8E2104", Offset = "0x8E2104", Length = "0x8")]
302 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
303 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
305 {
306 throw null;
307 }
308
309 [global::Cpp2ILInjected.Token(Token = "0x6004E81")]
310 [global::Cpp2ILInjected.Address(RVA = "0x8E2F74", Offset = "0x8E2F74", Length = "0x20")]
311 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
312 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
314 {
315 throw null;
316 }
317
318 [global::Cpp2ILInjected.Token(Token = "0x40087A6")]
319 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
320 public double time;
321 }
322 }
323}
class f__AnonymousType0<< Count > j__TPar
GameTip(LocalizedText text, double spawnTime)
readonly List< GameTipsDisplay.GameTip > _currentTips
void Draw(String_Layout layout=null, float MaxHeight=0f)