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
GUI.cs
Go to the documentation of this file.
1using System;
7
8namespace UnityEngine
9{
10 // Token: 0x02000004 RID: 4
11 [NativeHeader("Modules/IMGUI/GUI.bindings.h")]
12 [NativeHeader("Modules/IMGUI/GUISkin.bindings.h")]
13 public class GUI
14 {
15 // Token: 0x06000016 RID: 22 RVA: 0x0000244C File Offset: 0x0000064C
16 static GUI()
17 {
19 if (!true)
20 {
21 }
22 }
23
24 // Token: 0x17000008 RID: 8
25 // (set) Token: 0x06000017 RID: 23 RVA: 0x00002464 File Offset: 0x00000664
27 {
29 set
30 {
31 if (!true)
32 {
33 }
34 }
35 }
36
37 // Token: 0x17000009 RID: 9
38 // (get) Token: 0x06000019 RID: 25 RVA: 0x00002490 File Offset: 0x00000690
39 // (set) Token: 0x06000018 RID: 24 RVA: 0x00002474 File Offset: 0x00000674
40 public static GUISkin skin
41 {
42 get
43 {
44 /*
45An exception occurred when decompiling this method (06000019)
46
47ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.GUISkin UnityEngine.GUI::get_skin()
48
49 ---> System.Exception: Basic block has to end with unconditional control flow.
50{
51 IL_0000:
52 call:void(GUIUtility::CheckOnGUI)
53 brtrue(IL_0000, ldc.i4:bool(1))
54}
55
56 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
57 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
58 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
59 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
60 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
61 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
62 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
63 --- End of inner exception stack trace ---
64 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
65 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
66*/;
67 }
68 set
69 {
71 if (!true)
72 {
73 }
75 }
76 }
77
78 // Token: 0x0600001A RID: 26 RVA: 0x000024A4 File Offset: 0x000006A4
79 internal static void DoSetSkin(GUISkin newSkin)
80 {
81 bool flag = newSkin;
83 }
84
85 // Token: 0x0600001B RID: 27 RVA: 0x000024C4 File Offset: 0x000006C4
86 public static void Label(Rect position, string text)
87 {
88 if (!true)
89 {
90 }
91 }
92
93 // Token: 0x0600001C RID: 28 RVA: 0x000024D4 File Offset: 0x000006D4
94 public static void Label(Rect position, string text, GUIStyle style)
95 {
96 if (!true)
97 {
98 }
99 }
100
101 // Token: 0x0600001D RID: 29 RVA: 0x000024E4 File Offset: 0x000006E4
102 public static void Label(Rect position, GUIContent content, GUIStyle style)
103 {
105 if (!true)
106 {
107 }
108 GUI.DoLabel(position, content, style);
109 }
110
111 // Token: 0x0600001E RID: 30 RVA: 0x00002504 File Offset: 0x00000704
112 public static bool Button(Rect position, string text)
113 {
114 if (!true)
115 {
116 }
117 bool flag;
118 return flag;
119 }
120
121 // Token: 0x0600001F RID: 31 RVA: 0x00002518 File Offset: 0x00000718
122 public static bool Button(Rect position, GUIContent content, GUIStyle style)
123 {
124 if (!true)
125 {
126 }
127 bool flag;
128 return flag;
129 }
130
131 // Token: 0x06000020 RID: 32 RVA: 0x0000252C File Offset: 0x0000072C
132 internal static bool Button(Rect position, int id, GUIContent content, GUIStyle style)
133 {
135 if (!true)
136 {
137 }
138 bool flag;
139 return flag;
140 }
141
142 // Token: 0x06000021 RID: 33 RVA: 0x00002544 File Offset: 0x00000744
143 internal static bool DoControl(Rect position, int id, bool on, bool hover, GUIContent content, GUIStyle style)
144 {
145 throw new MissingMethodException();
146 }
147
148 // Token: 0x06000022 RID: 34 RVA: 0x000025B8 File Offset: 0x000007B8
149 private static void DoLabel(Rect position, GUIContent content, GUIStyle style)
150 {
151 throw new MissingMethodException();
152 }
153
154 // Token: 0x06000023 RID: 35 RVA: 0x000025D8 File Offset: 0x000007D8
155 internal static bool DoButton(Rect position, int id, GUIContent content, GUIStyle style)
156 {
157 bool flag;
158 return flag;
159 }
160
161 // Token: 0x06000024 RID: 36 RVA: 0x000025E8 File Offset: 0x000007E8
162 public static void BeginGroup(Rect position, GUIContent content, GUIStyle style)
163 {
164 }
165
166 // Token: 0x06000025 RID: 37 RVA: 0x000025F8 File Offset: 0x000007F8
167 internal static void BeginGroup(Rect position, GUIContent content, GUIStyle style, Vector2 scrollOffset)
168 {
169 int num = 1;
171 if (num == 0)
172 {
173 }
174 GUIStyle none = GUIStyle.none;
175 throw new MissingMethodException();
176 }
177
178 // Token: 0x06000026 RID: 38 RVA: 0x00002628 File Offset: 0x00000828
179 public static void EndGroup()
180 {
182 throw new MissingMethodException();
183 }
184
185 // Token: 0x1700000A RID: 10
186 // (get) Token: 0x06000027 RID: 39 RVA: 0x00002640 File Offset: 0x00000840
188 {
190 get
191 {
192 /*
193An exception occurred when decompiling this method (06000027)
194
195ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngineInternal.GenericStack UnityEngine.GUI::get_scrollViewStates()
196
197 ---> System.Exception: Basic block has to end with unconditional control flow.
198{
199 IL_0000:
200 brtrue(IL_0000, ldc.i4:bool(1))
201}
202
203 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
204 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
205 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
206 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
207 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
208 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
209 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
210 --- End of inner exception stack trace ---
211 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
212 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
213*/;
214 }
215 }
216
217 // Token: 0x06000028 RID: 40 RVA: 0x00002650 File Offset: 0x00000850
219 internal static void CallWindowDelegate(GUI.WindowFunction func, int id, int instanceID, GUISkin _skin, int forceRect, float width, float height, GUIStyle style)
220 {
221 int num = 1;
222 if (num == 0)
223 {
224 }
225 int num2 = 1;
227 if (num == 0)
228 {
229 }
231 throw new MissingMethodException();
232 }
233
234 // Token: 0x1700000B RID: 11
235 // (set) Token: 0x06000029 RID: 41 RVA: 0x000026E8 File Offset: 0x000008E8
236 public static bool changed
237 {
238 set
239 {
240 throw new MissingMethodException();
241 }
242 }
243
244 // Token: 0x0600002A RID: 42 RVA: 0x000026FC File Offset: 0x000008FC
245 internal static void GrabMouseControl(int id)
246 {
247 throw new MissingMethodException();
248 }
249
250 // Token: 0x0600002B RID: 43 RVA: 0x00002710 File Offset: 0x00000910
251 internal static bool HasMouseControl(int id)
252 {
253 throw new MissingMethodException();
254 }
255
256 // Token: 0x0600002C RID: 44 RVA: 0x00002724 File Offset: 0x00000924
257 internal static void ReleaseMouseControl()
258 {
259 throw new MissingMethodException();
260 }
261
262 // Token: 0x0400000F RID: 15
263 private static int s_HotTextField;
264
265 // Token: 0x04000010 RID: 16
266 private static readonly int s_BoxHash;
267
268 // Token: 0x04000011 RID: 17
269 private static readonly int s_ButonHash;
270
271 // Token: 0x04000012 RID: 18
272 private static readonly int s_RepeatButtonHash;
273
274 // Token: 0x04000013 RID: 19
275 private static readonly int s_ToggleHash;
276
277 // Token: 0x04000014 RID: 20
278 private static readonly int s_ButtonGridHash;
279
280 // Token: 0x04000015 RID: 21
281 private static readonly int s_SliderHash;
282
283 // Token: 0x04000016 RID: 22
284 private static readonly int s_BeginGroupHash;
285
286 // Token: 0x04000017 RID: 23
287 private static readonly int s_ScrollviewHash;
288
289 // Token: 0x04000018 RID: 24
292 private static DateTime <nextScrollStepTime>k__BackingField;
293
294 // Token: 0x04000019 RID: 25
295 private static GUISkin s_Skin;
296
297 // Token: 0x0400001A RID: 26
298 internal static Rect s_ToolTipRect;
299
300 // Token: 0x0400001B RID: 27
303 private static GenericStack <scrollViewStates>k__BackingField;
304
305 // Token: 0x02000005 RID: 5
306 public sealed class WindowFunction : MulticastDelegate
307 {
308 // Token: 0x0600002D RID: 45 RVA: 0x00002738 File Offset: 0x00000938
309 public WindowFunction(object @object, IntPtr method)
310 {
312 this.m_target = @object;
314 this.method_code = this;
315 }
316
317 // Token: 0x0600002E RID: 46 RVA: 0x0000278C File Offset: 0x0000098C
318 public void Invoke(int id)
319 {
322 IntPtr method = this.method;
323 }
324 }
325 }
326}
class f__AnonymousType0<< Count > j__TPar
IntPtr method_code
Definition Delegate.cs:386
IntPtr invoke_impl
Definition Delegate.cs:371
static GUILayoutUtility.LayoutCache SelectIDList(int instanceID, bool isWindow)
static GUIStyle none
Definition GUIStyle.cs:295
static GUISkin GetDefaultSkin()
static void CheckOnGUI()
WindowFunction(object @object, IntPtr method)
Definition GUI.cs:309
static bool DoControl(Rect position, int id, bool on, bool hover, GUIContent content, GUIStyle style)
Definition GUI.cs:143
static readonly int s_RepeatButtonHash
Definition GUI.cs:272
static void BeginGroup(Rect position, GUIContent content, GUIStyle style, Vector2 scrollOffset)
Definition GUI.cs:167
static void GrabMouseControl(int id)
Definition GUI.cs:245
static bool DoButton(Rect position, int id, GUIContent content, GUIStyle style)
Definition GUI.cs:155
static bool changed
Definition GUI.cs:237
static readonly int s_ButtonGridHash
Definition GUI.cs:278
static readonly int s_ScrollviewHash
Definition GUI.cs:287
static readonly int s_ToggleHash
Definition GUI.cs:275
static void DoLabel(Rect position, GUIContent content, GUIStyle style)
Definition GUI.cs:149
static bool HasMouseControl(int id)
Definition GUI.cs:251
static void Label(Rect position, string text)
Definition GUI.cs:86
static DateTime< nextScrollStepTime > k__BackingField
Definition GUI.cs:292
static void ReleaseMouseControl()
Definition GUI.cs:257
static int s_HotTextField
Definition GUI.cs:263
static void EndGroup()
Definition GUI.cs:179
static bool Button(Rect position, int id, GUIContent content, GUIStyle style)
Definition GUI.cs:132
static readonly int s_SliderHash
Definition GUI.cs:281
static GUISkin s_Skin
Definition GUI.cs:295
static void Label(Rect position, string text, GUIStyle style)
Definition GUI.cs:94
static GUISkin skin
Definition GUI.cs:41
static bool Button(Rect position, string text)
Definition GUI.cs:112
static GenericStack< scrollViewStates > k__BackingField
Definition GUI.cs:303
static bool Button(Rect position, GUIContent content, GUIStyle style)
Definition GUI.cs:122
static void Label(Rect position, GUIContent content, GUIStyle style)
Definition GUI.cs:102
static GenericStack scrollViewStates
Definition GUI.cs:188
static readonly int s_BeginGroupHash
Definition GUI.cs:284
static void DoSetSkin(GUISkin newSkin)
Definition GUI.cs:79
static Rect s_ToolTipRect
Definition GUI.cs:298
static readonly int s_BoxHash
Definition GUI.cs:266
static void CallWindowDelegate(GUI.WindowFunction func, int id, int instanceID, GUISkin _skin, int forceRect, float width, float height, GUIStyle style)
Definition GUI.cs:219
static GUI()
Definition GUI.cs:16
static DateTime nextScrollStepTime
Definition GUI.cs:27
static readonly int s_ButonHash
Definition GUI.cs:269
static void BeginGroup(Rect position, GUIContent content, GUIStyle style)
Definition GUI.cs:162
static DateTime Now
Definition DateTime.cs:530