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
GUILayoutUtility.cs
Go to the documentation of this file.
1using System;
8
9namespace UnityEngine
10{
11 // Token: 0x0200000D RID: 13
12 [NativeHeader("Modules/IMGUI/GUILayoutUtility.bindings.h")]
13 public class GUILayoutUtility
14 {
15 // Token: 0x06000055 RID: 85 RVA: 0x00002CB0 File Offset: 0x00000EB0
16 private static Rect Internal_GetWindowRect(int windowID)
17 {
18 if (!true)
19 {
20 }
21 throw new MissingMethodException();
22 }
23
24 // Token: 0x06000056 RID: 86 RVA: 0x00002CC8 File Offset: 0x00000EC8
25 private static void Internal_MoveWindow(int windowID, Rect r)
26 {
27 if (!true)
28 {
29 }
30 throw new MissingMethodException();
31 }
32
33 // Token: 0x06000057 RID: 87 RVA: 0x00002CE0 File Offset: 0x00000EE0
34 internal static GUILayoutUtility.LayoutCache SelectIDList(int instanceID, bool isWindow)
35 {
36 /*
37An exception occurred when decompiling this method (06000057)
38
39ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.GUILayoutUtility/LayoutCache UnityEngine.GUILayoutUtility::SelectIDList(System.Int32,System.Boolean)
40
41 ---> System.Exception: Basic block has to end with unconditional control flow.
42{
43 IL_0000:
44 brtrue(IL_0000, ldc.i4:bool(1))
45}
46
47 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
48 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
49 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
50 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
51 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
52 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
53 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
54 --- End of inner exception stack trace ---
55 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
56 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
57*/;
58 }
59
60 // Token: 0x06000058 RID: 88 RVA: 0x00002CF0 File Offset: 0x00000EF0
61 internal static void Begin(int instanceID)
62 {
63 if (!true)
64 {
65 }
66 long num = 0L;
68 throw new MissingMethodException();
69 }
70
71 // Token: 0x06000059 RID: 89 RVA: 0x00002D18 File Offset: 0x00000F18
72 internal static void BeginWindow(int windowID, GUIStyle style, GUILayoutOption[] options)
73 {
74 if (!true)
75 {
76 }
77 int num = 1;
79 throw new MissingMethodException();
80 }
81
82 // Token: 0x0600005A RID: 90 RVA: 0x00002D48 File Offset: 0x00000F48
83 internal static void Layout()
84 {
85 }
86
87 // Token: 0x0600005B RID: 91 RVA: 0x00002D74 File Offset: 0x00000F74
88 internal static void LayoutFromEditorWindow()
89 {
90 int num = 1;
91 if (num == 0)
92 {
93 }
94 if (num != 0)
95 {
96 int width = Screen.width;
97 throw new MissingMethodException();
98 }
99 Debug.LogError("GUILayout state invalid. Verify that all layout begin/end calls match.");
100 }
101
102 // Token: 0x0600005C RID: 92 RVA: 0x00002DB4 File Offset: 0x00000FB4
104 {
105 List<GUILayoutEntry> entries = toplevel.entries;
106 }
107
108 // Token: 0x0600005D RID: 93 RVA: 0x00002DE4 File Offset: 0x00000FE4
109 private static void LayoutSingleGroup(GUILayoutGroup i)
110 {
111 if (i.isWindow)
112 {
114 float x = rect.x;
115 float width = rect.width;
116 float minWidth = i.minWidth;
117 float maxWidth = i.maxWidth;
118 float minHeight = i.minHeight;
119 float maxHeight = i.maxHeight;
120 int windowID = i.windowID;
121 float xmin = i.rect.m_XMin;
122 float ymin = i.rect.m_YMin;
123 float width2 = i.rect.m_Width;
124 float height = i.rect.m_Height;
125 return;
126 }
127 float minWidth2 = i.minWidth;
128 float maxWidth2 = i.maxWidth;
129 float maxWidth3 = i.maxWidth;
130 float minHeight2 = i.minHeight;
131 float maxHeight2 = i.maxHeight;
132 float maxHeight3 = i.maxHeight;
133 }
134
135 // Token: 0x0600005E RID: 94 RVA: 0x00002EA0 File Offset: 0x000010A0
137 {
138 if (!true)
139 {
140 }
141 Type type;
142 if (Activator.CreateInstance(type) != null)
143 {
144 }
145 throw new InvalidCastException();
146 }
147
148 // Token: 0x0600005F RID: 95 RVA: 0x00002EC0 File Offset: 0x000010C0
150 {
151 throw new MissingMethodException();
152 }
153
154 // Token: 0x06000060 RID: 96 RVA: 0x00002EF8 File Offset: 0x000010F8
156 {
157 if (!true)
158 {
159 }
160 Rect rect;
161 return rect;
162 }
163
164 // Token: 0x06000061 RID: 97 RVA: 0x00002F0C File Offset: 0x0000110C
165 private static Rect DoGetRect(GUIContent content, GUIStyle style, GUILayoutOption[] options)
166 {
168 throw new MissingMethodException();
169 }
170
171 // Token: 0x06000062 RID: 98 RVA: 0x00002F48 File Offset: 0x00001148
172 // Note: this type is marked as 'beforefieldinit'.
174 {
175 }
176
177 // Token: 0x06000063 RID: 99 RVA: 0x00002F58 File Offset: 0x00001158
178 private static void Internal_GetWindowRect_Injected(int windowID, [Out] Rect ret)
179 {
180 throw new MissingMethodException();
181 }
182
183 // Token: 0x06000064 RID: 100 RVA: 0x00002F6C File Offset: 0x0000116C
184 private static void Internal_MoveWindow_Injected(int windowID, Rect r)
185 {
186 throw new MissingMethodException();
187 }
188
189 // Token: 0x04000057 RID: 87
191
192 // Token: 0x04000058 RID: 88
194
195 // Token: 0x04000059 RID: 89
197
198 // Token: 0x0400005A RID: 90
199 internal static readonly Rect kDummyRect;
200
201 // Token: 0x0200000E RID: 14
202 [DebuggerDisplay("id={id}, groups={layoutGroups.Count}")]
203 internal sealed class LayoutCache
204 {
205 // Token: 0x1700001E RID: 30
206 // (set) Token: 0x06000065 RID: 101 RVA: 0x00002F80 File Offset: 0x00001180
207 private int id
208 {
210 set
211 {
212 this.<id>k__BackingField = value;
213 }
214 }
215
216 // Token: 0x06000066 RID: 102 RVA: 0x00002F94 File Offset: 0x00001194
217 internal LayoutCache(int instanceID = -1)
218 {
221 this.id = instanceID;
222 }
223
224 // Token: 0x0400005B RID: 91
227 private int <id>k__BackingField;
228
229 // Token: 0x0400005C RID: 92
231
232 // Token: 0x0400005D RID: 93
234
235 // Token: 0x0400005E RID: 94
237 }
238 }
239}
class f__AnonymousType0<< Count > j__TPar
static object CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, object[] args, CultureInfo culture)
Definition Activator.cs:15
static void LogError(object message)
Definition Debug.cs:62
static GUILayoutUtility.LayoutCache SelectIDList(int instanceID, bool isWindow)
static Rect DoGetRect(GUIContent content, GUIStyle style, GUILayoutOption[] options)
static readonly Dictionary< int, GUILayoutUtility.LayoutCache > s_StoredLayouts
static void Internal_MoveWindow_Injected(int windowID, Rect r)
static void Internal_MoveWindow(int windowID, Rect r)
static Rect Internal_GetWindowRect(int windowID)
static void Begin(int instanceID)
static GUILayoutUtility.LayoutCache current
static void BeginWindow(int windowID, GUIStyle style, GUILayoutOption[] options)
static void LayoutFreeGroup(GUILayoutGroup toplevel)
static GUILayoutGroup CreateGUILayoutGroupInstanceOfType(Type LayoutType)
static void Internal_GetWindowRect_Injected(int windowID, [Out] Rect ret)
static readonly Rect kDummyRect
static GUILayoutGroup BeginLayoutArea(GUIStyle style, Type layoutType)
static Rect GetRect(GUIContent content, GUIStyle style, params GUILayoutOption[] options)
static void LayoutSingleGroup(GUILayoutGroup i)
static readonly Dictionary< int, GUILayoutUtility.LayoutCache > s_StoredWindows
static void CheckOnGUI()
static int width
Definition Screen.cs:17
float m_XMin
Definition Rect.cs:522
float m_Height
Definition Rect.cs:534
float m_YMin
Definition Rect.cs:526
float width
Definition Rect.cs:143
float m_Width
Definition Rect.cs:530