terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
GUIPulldownSetting.cs
Go to the documentation of this file.
1using System;
4using Controller;
8using Terraria;
10
11// Token: 0x0200028F RID: 655
13{
14 // Token: 0x06000F48 RID: 3912 RVA: 0x0004C518 File Offset: 0x0004A718
22
23 // Token: 0x06000F49 RID: 3913 RVA: 0x0004C548 File Offset: 0x0004A748
24 public void CloseOptions()
25 {
26 if (this.displayOptions)
27 {
29 if (deactivateOverlayCallback != null)
30 {
31 IntPtr invoke_impl = deactivateOverlayCallback.invoke_impl;
32 IntPtr method_code = deactivateOverlayCallback.method_code;
33 IntPtr method = deactivateOverlayCallback.method;
34 return;
35 }
37 }
38 }
39
40 // Token: 0x06000F4A RID: 3914 RVA: 0x0004C588 File Offset: 0x0004A788
41 public override void DrawOverlay()
42 {
44 }
45
46 // Token: 0x06000F4B RID: 3915 RVA: 0x0004C59C File Offset: 0x0004A79C
47 private void DrawFaceButtons()
48 {
49 }
50
51 // Token: 0x06000F4C RID: 3916 RVA: 0x0004C5D8 File Offset: 0x0004A7D8
55
56 // Token: 0x06000F4D RID: 3917 RVA: 0x0004C5E8 File Offset: 0x0004A7E8
57 public void RefreshInputRegion()
58 {
59 if (!true)
60 {
61 }
62 GUISettingID id = this._id;
64 this.CloseOptions();
65 long num = 0L;
66 string option = this.GetOption((int)num);
67 string text;
68 bool flag = text == option;
69 }
70
71 // Token: 0x06000F4E RID: 3918 RVA: 0x0004C6F4 File Offset: 0x0004A8F4
72 public override void Draw()
73 {
74 bool flag = this.displayOptions;
75 if (!flag || this.drawingOverlay)
76 {
77 if (this._optionsBlocker != null)
78 {
79 }
80 if (flag)
81 {
82 int screenWidth = Main.screenWidth;
83 int screenHeight = Main.screenHeight;
84 }
85 string value = this.GetValue();
86 string title = this.GetTitle();
88 Vector2 vector = spriteFont.MeasureString(title);
90 Vector2 vector2 = spriteFont2.MeasureString(value);
91 long num = 0L;
93 Vector2 vector3 = spriteFont3.MeasureString(value);
94 int stringLength = value._stringLength;
95 long num2 = 0L;
96 string text = value.Substring((int)num2, (int)num);
98 Vector2 vector4 = spriteFont4.MeasureString(text);
99 string text2 = text + "...";
100 GUISettingID id = this._id;
101 bool flag2 = this.displayOptions;
102 string title2 = this.GetTitle();
103 return;
104 }
106 if (registerOverlay != null)
107 {
109 IntPtr invoke_impl = registerOverlay.invoke_impl;
110 IntPtr method_code = registerOverlay.method_code;
111 IntPtr method = registerOverlay.method;
112 return;
113 }
115 }
116
117 // Token: 0x06000F4F RID: 3919 RVA: 0x0004CB6C File Offset: 0x0004AD6C
118 public void DisablePulldown()
119 {
121 if (optionsBlocker != null)
122 {
125 if (deactivateOverlayCallback != null)
126 {
127 IntPtr invoke_impl = deactivateOverlayCallback.invoke_impl;
128 IntPtr method_code = deactivateOverlayCallback.method_code;
129 IntPtr method = deactivateOverlayCallback.method;
130 return;
131 }
133 }
134 }
135
136 // Token: 0x06000F50 RID: 3920 RVA: 0x000021DB File Offset: 0x000003DB
137 public override float GetElementHeight()
138 {
139 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
140 }
141
142 // Token: 0x06000F51 RID: 3921 RVA: 0x0004CBB4 File Offset: 0x0004ADB4
144 {
145 return true;
146 }
147
148 // Token: 0x06000F52 RID: 3922 RVA: 0x0004CBF0 File Offset: 0x0004ADF0
150 {
151 GUISettingID id = this._id;
152 return 2;
153 }
154
155 // Token: 0x1700018A RID: 394
156 // (get) Token: 0x06000F53 RID: 3923 RVA: 0x000021DB File Offset: 0x000003DB
158 {
159 get
160 {
161 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
162 }
163 }
164
165 // Token: 0x06000F54 RID: 3924 RVA: 0x0004CC38 File Offset: 0x0004AE38
166 private string GetOption(int index)
167 {
168 bool flag = this.displayOptions;
169 if (!flag || !flag)
170 {
171 }
172 GUISettingID id = this._id;
173 string text;
174 return text;
175 }
176
177 // Token: 0x06000F55 RID: 3925 RVA: 0x0004CD88 File Offset: 0x0004AF88
178 private void SetOption(int index)
179 {
180 bool flag = this.displayOptions;
181 if (!flag || !flag)
182 {
183 }
184 }
185
186 // Token: 0x06000F56 RID: 3926 RVA: 0x0004CEDC File Offset: 0x0004B0DC
187 private string GetTitle()
188 {
189 GUISettingID id = this._id;
190 return "Mobile.MiniMapBorderStyleTitle";
191 }
192
193 // Token: 0x06000F57 RID: 3927 RVA: 0x0004CF50 File Offset: 0x0004B150
195 {
196 return Language.GetTextValue("Language.English");
197 }
198
199 // Token: 0x06000F58 RID: 3928 RVA: 0x0004CF6C File Offset: 0x0004B16C
200 private string GetValue()
201 {
202 GUISettingID id = this._id;
203 return "ControllerSchemes.";
204 }
205
206 // Token: 0x06000F59 RID: 3929 RVA: 0x0004D0F4 File Offset: 0x0004B2F4
207 // Note: this type is marked as 'beforefieldinit'.
209 {
210 }
211
212 // Token: 0x04001B72 RID: 7026
214
215 // Token: 0x04001B73 RID: 7027
217
218 // Token: 0x04001B74 RID: 7028
220
221 // Token: 0x04001B75 RID: 7029
222 private float scale;
223
224 // Token: 0x04001B76 RID: 7030
225 private bool drawingOverlay;
226
227 // Token: 0x04001B77 RID: 7031
229
230 // Token: 0x04001B78 RID: 7032
231 private float _offset;
232
233 // Token: 0x04001B79 RID: 7033
234 public bool displayOptions;
235
236 // Token: 0x04001B7A RID: 7034
238
239 // Token: 0x04001B7B RID: 7035
240 private static int[] LanguageMappingIndices;
241
242 // Token: 0x02000290 RID: 656
244 {
245 // Token: 0x06000F5A RID: 3930 RVA: 0x0004D104 File Offset: 0x0004B304
246 public ActivateOverlayCallback(object @object, IntPtr method)
247 {
249 this.m_target = @object;
251 this.method_code = this;
252 }
253
254 // Token: 0x06000F5B RID: 3931 RVA: 0x0004D164 File Offset: 0x0004B364
255 public void Invoke(GUIPulldownSetting overlayEntry, Rectangle overlayRegion, int selectedOption, float offset)
256 {
259 IntPtr method = this.method;
260 }
261
262 // Token: 0x06000F5C RID: 3932 RVA: 0x000021DB File Offset: 0x000003DB
263 public IAsyncResult BeginInvoke(GUIPulldownSetting overlayEntry, Rectangle overlayRegion, int selectedOption, float offset, AsyncCallback callback, object @object)
264 {
265 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
266 }
267
268 // Token: 0x06000F5D RID: 3933 RVA: 0x0004D188 File Offset: 0x0004B388
269 public void EndInvoke(IAsyncResult result)
270 {
271 }
272 }
273
274 // Token: 0x02000291 RID: 657
275 public sealed class RegisterOverlay : MulticastDelegate
276 {
277 // Token: 0x06000F5E RID: 3934 RVA: 0x0004D198 File Offset: 0x0004B398
278 public RegisterOverlay(object @object, IntPtr method)
279 {
281 this.m_target = @object;
283 this.method_code = this;
284 }
285
286 // Token: 0x06000F5F RID: 3935 RVA: 0x0004D1F8 File Offset: 0x0004B3F8
287 public void Invoke(GUIPulldownSetting overlayEntry, Rectangle overlayRegion)
288 {
291 IntPtr method = this.method;
292 }
293
294 // Token: 0x06000F60 RID: 3936 RVA: 0x000021DB File Offset: 0x000003DB
295 public IAsyncResult BeginInvoke(GUIPulldownSetting overlayEntry, Rectangle overlayRegion, AsyncCallback callback, object @object)
296 {
297 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
298 }
299
300 // Token: 0x06000F61 RID: 3937 RVA: 0x0004D21C File Offset: 0x0004B41C
301 public void EndInvoke(IAsyncResult result)
302 {
303 }
304 }
305
306 // Token: 0x02000292 RID: 658
308 {
309 // Token: 0x06000F62 RID: 3938 RVA: 0x0004D22C File Offset: 0x0004B42C
311 {
313 this.m_target = @object;
315 this.method_code = this;
316 }
317
318 // Token: 0x06000F63 RID: 3939 RVA: 0x0004D280 File Offset: 0x0004B480
319 public void Invoke()
320 {
323 IntPtr method = this.method;
324 }
325
326 // Token: 0x06000F64 RID: 3940 RVA: 0x000021DB File Offset: 0x000003DB
327 public IAsyncResult BeginInvoke(AsyncCallback callback, object @object)
328 {
329 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
330 }
331
332 // Token: 0x06000F65 RID: 3941 RVA: 0x0004D2A4 File Offset: 0x0004B4A4
333 public void EndInvoke(IAsyncResult result)
334 {
335 }
336 }
337}
class f__AnonymousType0<< Count > j__TPar
GUISettingID
static Rectangle _gridItemRegion
void Invoke(GUIPulldownSetting overlayEntry, Rectangle overlayRegion, int selectedOption, float offset)
IAsyncResult BeginInvoke(GUIPulldownSetting overlayEntry, Rectangle overlayRegion, int selectedOption, float offset, AsyncCallback callback, object @object)
ActivateOverlayCallback(object @object, IntPtr method)
IAsyncResult BeginInvoke(AsyncCallback callback, object @object)
DeactivateOverlayCallback(object @object, IntPtr method)
RegisterOverlay(object @object, IntPtr method)
void EndInvoke(IAsyncResult result)
void Invoke(GUIPulldownSetting overlayEntry, Rectangle overlayRegion)
IAsyncResult BeginInvoke(GUIPulldownSetting overlayEntry, Rectangle overlayRegion, AsyncCallback callback, object @object)
string GetOption(int index)
static List< int > optionRedirection
bool IsOverOptions(Vector2 cursorPosition)
void SetOption(int index)
GUIPulldownSetting(GUISettingID id, [Optional] GUIPulldownSetting.ActivateOverlayCallback activateOverlayCallbackOverload, [Optional] GUIPulldownSetting.DeactivateOverlayCallback deactivateOverlayCallbackOverload, [Optional] GUIPulldownSetting.RegisterOverlay registerOverlayOverload)
GUIPulldownSetting.DeactivateOverlayCallback deactivateOverlayCallback
static int[] LanguageMappingIndices
GUIInputRegionExclusive _optionsBlocker
string GetLanguageFromLegacyId(int legacyId)
override float GetElementHeight()
GUIPulldownSetting.ActivateOverlayCallback activateOverlayCallback
void DrawOptionFaceButtons(ControllerDevice.ControlScheme scheme)
override void DrawOverlay()
GUIPulldownSetting.RegisterOverlay registerOverlayCallback
GUISettingID _id
IntPtr method_code
Definition Delegate.cs:386
IntPtr invoke_impl
Definition Delegate.cs:371
static string GetTextValue(string key)
Definition Language.cs:54
static int screenHeight
Definition Main.cs:2015
static int screenWidth
Definition Main.cs:2001