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
UIColoredSlider.cs
Go to the documentation of this file.
1using System;
12using Terraria.UI;
13
15{
16 [global::Cpp2ILInjected.Token(Token = "0x2000AAB")]
18 {
19 [global::Cpp2ILInjected.Token(Token = "0x6005078")]
20 [global::Cpp2ILInjected.Address(RVA = "0x90F53C", Offset = "0x90F53C", Length = "0x238")]
21 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
22 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UISliderBase), Member = ".ctor", ReturnType = typeof(void))]
23 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Func<float>), Member = ".ctor", MemberParameters = new object[]
24 {
25 typeof(object),
27 }, ReturnType = typeof(void))]
28 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Action<float>), Member = ".ctor", MemberParameters = new object[]
29 {
30 typeof(object),
32 }, ReturnType = typeof(void))]
33 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Func<float, Color>), Member = ".ctor", MemberParameters = new object[]
34 {
35 typeof(object),
37 }, ReturnType = typeof(void))]
38 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 16)]
39 public UIColoredSlider(LocalizedText textKey, Func<float> getStatus, Action<float> setStatusKeyboard, Action setStatusGamepad, Func<float, Color> blipColorFunction, Color color)
40 {
41 throw null;
42 }
43
44 [global::Cpp2ILInjected.Token(Token = "0x6005079")]
45 [global::Cpp2ILInjected.Address(RVA = "0x90F774", Offset = "0x90F774", Length = "0x474")]
46 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
47 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
48 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_mouseLeft", ReturnType = typeof(bool))]
49 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UISliderBase), Member = "GetUsageLevel", ReturnType = typeof(int))]
50 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UIElement), Member = "DrawSelf", MemberParameters = new object[] { typeof(SpriteBatch) }, ReturnType = typeof(void))]
51 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = ".ctor", MemberParameters = new object[]
52 {
53 typeof(float),
54 typeof(float)
55 }, ReturnType = typeof(void))]
56 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Addition", MemberParameters = new object[]
57 {
60 }, ReturnType = typeof(Vector2))]
61 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Color), Member = "Lerp", MemberParameters = new object[]
62 {
65 typeof(float)
66 }, ReturnType = typeof(Color))]
67 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = ".ctor", MemberParameters = new object[] { typeof(float) }, ReturnType = typeof(void))]
68 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils), Member = "Frame", MemberParameters = new object[]
69 {
71 typeof(int),
72 typeof(int),
73 typeof(int),
74 typeof(int),
75 typeof(int),
76 typeof(int)
77 }, ReturnType = typeof(Rectangle))]
78 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UIColoredSlider), Member = "DrawValueBar", MemberParameters = new object[]
79 {
82 typeof(float),
83 typeof(float),
84 typeof(int),
85 typeof(ref bool),
86 typeof(Func<float, Color>)
87 }, ReturnType = typeof(float))]
88 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PlayerInput), Member = "get_Triggers", ReturnType = typeof(TriggersPack))]
89 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TriggersSet), Member = "get_MouseLeft", ReturnType = typeof(bool))]
90 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PlayerInput), Member = "get_UsingGamepad", ReturnType = typeof(bool))]
91 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SoundEngine), Member = "PlaySound", MemberParameters = new object[]
92 {
93 typeof(int),
94 typeof(int),
95 typeof(int),
96 typeof(int),
97 typeof(float),
98 typeof(float)
99 }, ReturnType = typeof(SoundEffectInstance))]
100 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 16)]
101 protected override void DrawSelf(SpriteBatch spriteBatch)
102 {
103 throw null;
104 }
105
106 [global::Cpp2ILInjected.Token(Token = "0x600507A")]
107 [global::Cpp2ILInjected.Address(RVA = "0x90FBE8", Offset = "0x90FBE8", Length = "0x614")]
108 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
109 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UIColoredSlider), Member = "DrawSelf", MemberParameters = new object[] { typeof(SpriteBatch) }, ReturnType = typeof(void))]
110 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
111 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = ".ctor", MemberParameters = new object[]
112 {
113 typeof(float),
114 typeof(float)
115 }, ReturnType = typeof(void))]
116 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Multiply", MemberParameters = new object[]
117 {
119 typeof(float)
120 }, ReturnType = typeof(Vector2))]
121 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = ".ctor", MemberParameters = new object[]
122 {
123 typeof(int),
124 typeof(int),
125 typeof(int),
126 typeof(int)
127 }, ReturnType = typeof(void))]
128 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SpriteBatch), Member = "Draw", MemberParameters = new object[]
129 {
133 }, ReturnType = typeof(void))]
134 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SpriteBatch), Member = "Draw", MemberParameters = new object[]
135 {
139 typeof(Color),
140 typeof(float),
142 typeof(float),
144 typeof(float)
145 }, ReturnType = typeof(void))]
146 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_mouseX", ReturnType = typeof(int))]
147 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_mouseY", ReturnType = typeof(int))]
148 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Point), Member = ".ctor", MemberParameters = new object[]
149 {
150 typeof(int),
151 typeof(int)
152 }, ReturnType = typeof(void))]
153 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = "Contains", MemberParameters = new object[] { typeof(Point) }, ReturnType = typeof(bool))]
154 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SoundEngine), Member = "PlaySound", MemberParameters = new object[]
155 {
156 typeof(int),
157 typeof(int),
158 typeof(int),
159 typeof(int),
160 typeof(float),
161 typeof(float)
162 }, ReturnType = typeof(SoundEffectInstance))]
163 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 21)]
164 private float DrawValueBar(SpriteBatch sb, Vector2 drawPosition, float drawScale, float sliderPosition, int lockMode, out bool wasInBar, Func<float, Color> blipColorFunc)
165 {
166 throw null;
167 }
168
169 [global::Cpp2ILInjected.Token(Token = "0x400893C")]
170 [global::Cpp2ILInjected.FieldOffset(Offset = "0x141")]
171 private Color _color;
172
173 [global::Cpp2ILInjected.Token(Token = "0x400893D")]
174 [global::Cpp2ILInjected.FieldOffset(Offset = "0x148")]
176
177 [global::Cpp2ILInjected.Token(Token = "0x400893E")]
178 [global::Cpp2ILInjected.FieldOffset(Offset = "0x150")]
179 private Func<float> _getStatusTextAct;
180
181 [global::Cpp2ILInjected.Token(Token = "0x400893F")]
182 [global::Cpp2ILInjected.FieldOffset(Offset = "0x158")]
183 private Action<float> _slideKeyboardAction;
184
185 [global::Cpp2ILInjected.Token(Token = "0x4008940")]
186 [global::Cpp2ILInjected.FieldOffset(Offset = "0x160")]
187 private Func<float, Color> _blipFunc;
188
189 [global::Cpp2ILInjected.Token(Token = "0x4008941")]
190 [global::Cpp2ILInjected.FieldOffset(Offset = "0x168")]
191 private Action _slideGamepadAction;
192
193 [global::Cpp2ILInjected.Token(Token = "0x4008942")]
194 private const bool BOTHER_WITH_TEXT = false;
195
196 [global::Cpp2ILInjected.Token(Token = "0x4008943")]
197 [global::Cpp2ILInjected.FieldOffset(Offset = "0x170")]
199
200 [global::Cpp2ILInjected.Token(Token = "0x4008944")]
201 [global::Cpp2ILInjected.FieldOffset(Offset = "0x171")]
202 private bool _alreadyHovered;
203
204 [global::Cpp2ILInjected.Token(Token = "0x4008945")]
205 [global::Cpp2ILInjected.FieldOffset(Offset = "0x172")]
206 private bool _soundedUsage;
207
209 [global::Cpp2ILInjected.Token(Token = "0x2000AAC")]
210 [Serializable]
211 private sealed class <>c
212 {
213 // Note: this type is marked as 'beforefieldinit'.
214 [global::Cpp2ILInjected.Token(Token = "0x600507B")]
215 [global::Cpp2ILInjected.Address(RVA = "0x9101FC", Offset = "0x9101FC", Length = "0x5C")]
216 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
217 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
218 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
219 static <>c()
220 {
221 throw null;
222 }
223
224 [global::Cpp2ILInjected.Token(Token = "0x600507C")]
225 [global::Cpp2ILInjected.Address(RVA = "0x910258", Offset = "0x910258", Length = "0x8")]
226 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
227 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
228 public <>c()
229 {
230 throw null;
231 }
232
233 [global::Cpp2ILInjected.Token(Token = "0x600507D")]
234 [global::Cpp2ILInjected.Address(RVA = "0x910260", Offset = "0x910260", Length = "0x8")]
235 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
236 internal float <.ctor>b__10_0()
237 {
238 throw null;
239 }
240
241 [global::Cpp2ILInjected.Token(Token = "0x600507E")]
242 [global::Cpp2ILInjected.Address(RVA = "0x910268", Offset = "0x910268", Length = "0x4")]
243 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
244 internal void <.ctor>b__10_1(float s)
245 {
246 throw null;
247 }
248
249 [global::Cpp2ILInjected.Token(Token = "0x600507F")]
250 [global::Cpp2ILInjected.Address(RVA = "0x91026C", Offset = "0x91026C", Length = "0x78")]
251 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
252 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Color), Member = "Lerp", MemberParameters = new object[]
253 {
254 typeof(Color),
255 typeof(Color),
256 typeof(float)
257 }, ReturnType = typeof(Color))]
258 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
259 internal Color <.ctor>b__10_2(float s)
260 {
261 throw null;
262 }
263
264 [global::Cpp2ILInjected.Token(Token = "0x4008946")]
265 public static readonly UIColoredSlider.<>c <>9;
266
267 [global::Cpp2ILInjected.Token(Token = "0x4008947")]
268 public static Func<float> <>9__10_0;
269
270 [global::Cpp2ILInjected.Token(Token = "0x4008948")]
271 public static Action<float> <>9__10_1;
272
273 [global::Cpp2ILInjected.Token(Token = "0x4008949")]
274 public static Func<float, Color> <>9__10_2;
275 }
276 }
277}
class f__AnonymousType0<< Count > j__TPar
float DrawValueBar(SpriteBatch sb, Vector2 drawPosition, float drawScale, float sliderPosition, int lockMode, out bool wasInBar, Func< float, Color > blipColorFunc)
override void DrawSelf(SpriteBatch spriteBatch)
UIColoredSlider(LocalizedText textKey, Func< float > getStatus, Action< float > setStatusKeyboard, Action setStatusGamepad, Func< float, Color > blipColorFunction, Color color)