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
Selectable.cs
Go to the documentation of this file.
1using System;
6
7namespace UnityEngine.UI
8{
9 // Token: 0x02000067 RID: 103
11 [AddComponentMenu("UI/Selectable", 35)]
15 {
16 // Token: 0x17000116 RID: 278
17 // (get) Token: 0x06000419 RID: 1049 RVA: 0x0000D5DC File Offset: 0x0000B7DC
19 {
20 get
21 {
22 /*
23An exception occurred when decompiling this method (06000419)
24
25ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.UI.Selectable[] UnityEngine.UI.Selectable::get_allSelectablesArray()
26
27 ---> System.Exception: Basic block has to end with unconditional control flow.
28{
29 IL_0000:
30 brtrue(IL_0000, ldc.i4:bool(1))
31}
32
33 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
34 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
35 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
36 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
37 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
38 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
39 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
40 --- End of inner exception stack trace ---
41 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
42 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
43*/;
44 }
45 }
46
47 // Token: 0x17000117 RID: 279
48 // (get) Token: 0x0600041A RID: 1050 RVA: 0x0000D5EC File Offset: 0x0000B7EC
49 public static int allSelectableCount
50 {
51 get
52 {
53 /*
54An exception occurred when decompiling this method (0600041A)
55
56ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 UnityEngine.UI.Selectable::get_allSelectableCount()
57
58 ---> System.Exception: Basic block has to end with unconditional control flow.
59{
60 IL_0000:
61 brtrue(IL_0000, ldc.i4:bool(1))
62}
63
64 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
65 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
66 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
67 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
68 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
69 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
70 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
71 --- End of inner exception stack trace ---
72 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
73 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
74*/;
75 }
76 }
77
78 // Token: 0x17000118 RID: 280
79 // (get) Token: 0x0600041B RID: 1051 RVA: 0x0000D5FC File Offset: 0x0000B7FC
80 [Obsolete("Replaced with allSelectablesArray to have better performance when disabling a element", false)]
82 {
83 get
84 {
85 /*
86An exception occurred when decompiling this method (0600041B)
87
88ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.List`1<UnityEngine.UI.Selectable> UnityEngine.UI.Selectable::get_allSelectables()
89
90 ---> System.Exception: Basic block has to end with unconditional control flow.
91{
92 IL_0003:
93 stloc:class UnityEngine.UI.Selectable[](var_0_08, callgetter:class UnityEngine.UI.Selectable[](Selectable::get_allSelectablesArray))
94}
95
96 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
97 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
98 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
99 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
100 --- End of inner exception stack trace ---
101 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
102 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
103*/;
104 }
105 }
106
107 // Token: 0x0600041C RID: 1052 RVA: 0x0000D614 File Offset: 0x0000B814
109 {
110 if (!true)
111 {
112 }
113 if (!true)
114 {
115 }
116 return 1;
117 }
118
119 // Token: 0x17000119 RID: 281
120 // (get) Token: 0x0600041D RID: 1053 RVA: 0x0000D628 File Offset: 0x0000B828
121 // (set) Token: 0x0600041E RID: 1054 RVA: 0x0000D670 File Offset: 0x0000B870
123 {
124 get
125 {
126 Selectable selectOnRight = this.m_Navigation.m_SelectOnRight;
128 bool wrapAround = this.m_Navigation.m_WrapAround;
130 navigation.m_SelectOnRight = selectOnRight;
132 navigation.m_WrapAround = wrapAround;
133 return navigation;
134 }
135 set
136 {
137 Selectable selectOnRight = value.m_SelectOnRight;
138 Navigation.Mode mode = value.m_Mode;
139 bool wrapAround = value.m_WrapAround;
140 this.OnSetProperty();
141 }
142 }
143
144 // Token: 0x1700011A RID: 282
145 // (get) Token: 0x0600041F RID: 1055 RVA: 0x0000D698 File Offset: 0x0000B898
146 // (set) Token: 0x06000420 RID: 1056 RVA: 0x0000D6AC File Offset: 0x0000B8AC
148 {
149 get
150 {
151 return this.m_Transition;
152 }
153 set
154 {
155 this.OnSetProperty();
156 }
157 }
158
159 // Token: 0x1700011B RID: 283
160 // (get) Token: 0x06000421 RID: 1057 RVA: 0x0000D6C0 File Offset: 0x0000B8C0
161 // (set) Token: 0x06000422 RID: 1058 RVA: 0x0000D6D0 File Offset: 0x0000B8D0
163 {
164 get
165 {
167 return colorBlock;
168 }
169 set
170 {
171 this.OnSetProperty();
172 }
173 }
174
175 // Token: 0x1700011C RID: 284
176 // (get) Token: 0x06000423 RID: 1059 RVA: 0x0000D6E4 File Offset: 0x0000B8E4
177 // (set) Token: 0x06000424 RID: 1060 RVA: 0x0000D6F4 File Offset: 0x0000B8F4
179 {
180 get
181 {
183 return spriteState;
184 }
185 set
186 {
187 Sprite highlightedSprite = value.m_HighlightedSprite;
188 this.OnSetProperty();
189 }
190 }
191
192 // Token: 0x1700011D RID: 285
193 // (get) Token: 0x06000425 RID: 1061 RVA: 0x0000D710 File Offset: 0x0000B910
194 // (set) Token: 0x06000426 RID: 1062 RVA: 0x0000D724 File Offset: 0x0000B924
196 {
197 get
198 {
199 return this.m_AnimationTriggers;
200 }
201 set
202 {
203 this.OnSetProperty();
204 }
205 }
206
207 // Token: 0x1700011E RID: 286
208 // (get) Token: 0x06000427 RID: 1063 RVA: 0x0000D738 File Offset: 0x0000B938
209 // (set) Token: 0x06000428 RID: 1064 RVA: 0x0000D74C File Offset: 0x0000B94C
211 {
212 get
213 {
214 return this.m_TargetGraphic;
215 }
216 set
217 {
218 this.OnSetProperty();
219 }
220 }
221
222 // Token: 0x1700011F RID: 287
223 // (get) Token: 0x06000429 RID: 1065 RVA: 0x0000D760 File Offset: 0x0000B960
224 // (set) Token: 0x0600042A RID: 1066 RVA: 0x0000D774 File Offset: 0x0000B974
225 public bool interactable
226 {
227 get
228 {
229 return this.m_Interactable;
230 }
231 set
232 {
236 bool flag = currentSelected == gameObject;
238 this.OnSetProperty();
239 }
240 }
241
242 // Token: 0x17000120 RID: 288
243 // (get) Token: 0x0600042B RID: 1067 RVA: 0x0000D7BC File Offset: 0x0000B9BC
244 // (set) Token: 0x0600042C RID: 1068 RVA: 0x0000D7D0 File Offset: 0x0000B9D0
245 private bool isPointerInside
246 {
248 get
249 {
250 return this.<isPointerInside>k__BackingField;
251 }
253 set
254 {
255 }
256 }
257
258 // Token: 0x17000121 RID: 289
259 // (get) Token: 0x0600042D RID: 1069 RVA: 0x0000D7E0 File Offset: 0x0000B9E0
260 // (set) Token: 0x0600042E RID: 1070 RVA: 0x0000D7F4 File Offset: 0x0000B9F4
261 private bool isPointerDown
262 {
264 get
265 {
266 return this.<isPointerDown>k__BackingField;
267 }
269 set
270 {
271 }
272 }
273
274 // Token: 0x17000122 RID: 290
275 // (get) Token: 0x0600042F RID: 1071 RVA: 0x0000D804 File Offset: 0x0000BA04
276 // (set) Token: 0x06000430 RID: 1072 RVA: 0x0000D818 File Offset: 0x0000BA18
277 private bool hasSelection
278 {
280 get
281 {
282 return this.<hasSelection>k__BackingField;
283 }
285 set
286 {
287 }
288 }
289
290 // Token: 0x06000431 RID: 1073 RVA: 0x0000D828 File Offset: 0x0000BA28
291 protected Selectable()
292 {
293 int num = 3;
294 long num2 = 1L;
295 this.m_Navigation = num;
296 if (num == 0)
297 {
298 }
299 int num3 = 1;
303 base..ctor();
304 }
305
306 // Token: 0x17000123 RID: 291
307 // (get) Token: 0x06000432 RID: 1074 RVA: 0x0000D860 File Offset: 0x0000BA60
308 // (set) Token: 0x06000433 RID: 1075 RVA: 0x0000D878 File Offset: 0x0000BA78
310 {
311 get
312 {
313 if (this.m_TargetGraphic != null)
314 {
315 return;
316 }
317 }
318 set
319 {
321 }
322 }
323
324 // Token: 0x17000124 RID: 292
325 // (get) Token: 0x06000434 RID: 1076 RVA: 0x0000D88C File Offset: 0x0000BA8C
327 {
328 get
329 {
330 return base.GetComponent<Animator>();
331 }
332 }
333
334 // Token: 0x06000435 RID: 1077 RVA: 0x0000D8A0 File Offset: 0x0000BAA0
335 protected override void Awake()
336 {
338 if (!true)
339 {
340 }
341 Graphic component = base.GetComponent<Graphic>();
342 this.m_TargetGraphic = component;
343 }
344
345 // Token: 0x06000436 RID: 1078 RVA: 0x0000D8C8 File Offset: 0x0000BAC8
346 protected override void OnCanvasGroupChanged()
347 {
348 int num = 1;
350 if (num == 0)
351 {
352 }
355 int size = this.m_CanvasGroupCache._size;
358 int size2 = this.m_CanvasGroupCache._size;
359 Transform parent = transform.parent;
360 }
361
362 // Token: 0x06000437 RID: 1079 RVA: 0x0000D93C File Offset: 0x0000BB3C
363 public virtual bool IsInteractable()
364 {
366 {
367 bool interactable = this.m_Interactable;
368 return;
369 }
370 }
371
372 // Token: 0x06000438 RID: 1080 RVA: 0x0000D95C File Offset: 0x0000BB5C
373 protected override void OnDidApplyAnimationProperties()
374 {
375 this.OnSetProperty();
376 }
377
378 // Token: 0x06000439 RID: 1081 RVA: 0x0000D970 File Offset: 0x0000BB70
379 protected override void OnEnable()
380 {
381 bool enableCalled = this.m_EnableCalled;
382 if (enableCalled)
383 {
384 return;
385 }
386 base.OnEnable();
387 if (!enableCalled)
388 {
389 }
390 if (!enableCalled)
391 {
392 }
393 bool flag = EventSystem.current;
397 int num = 1;
398 this.<hasSelection>k__BackingField = num != 0;
399 if (num == 0)
400 {
401 }
403 if (this == null)
404 {
405 throw new ArrayTypeMismatchException();
406 }
407 if (this.<isPointerDown>k__BackingField)
408 {
409 return;
410 }
411 if (this.<hasSelection>k__BackingField)
412 {
413 return;
414 }
416 }
417
418 // Token: 0x0600043A RID: 1082 RVA: 0x0000DA0C File Offset: 0x0000BC0C
419 protected override void OnTransformParentChanged()
420 {
421 base.OnTransformParentChanged();
422 }
423
424 // Token: 0x0600043B RID: 1083 RVA: 0x0000DA20 File Offset: 0x0000BC20
425 private void OnSetProperty()
426 {
428 {
429 return;
430 }
432 {
433 return;
434 }
435 bool flag = this.<isPointerInside>k__BackingField;
436 }
437
438 // Token: 0x0600043C RID: 1084 RVA: 0x0000DA48 File Offset: 0x0000BC48
439 protected override void OnDisable()
440 {
441 bool enableCalled = this.m_EnableCalled;
442 if (enableCalled)
443 {
444 if (!enableCalled)
445 {
446 }
447 int currentIndex = this.m_CurrentIndex;
448 base.OnDisable();
449 }
450 }
451
452 // Token: 0x0600043D RID: 1085 RVA: 0x0000DA78 File Offset: 0x0000BC78
453 private void OnApplicationFocus(bool hasFocus)
454 {
456 {
457 return;
458 }
459 }
460
461 // Token: 0x17000125 RID: 293
462 // (get) Token: 0x0600043E RID: 1086 RVA: 0x0000DA90 File Offset: 0x0000BC90
464 {
465 get
466 {
467 /*
468An exception occurred when decompiling this method (0600043E)
469
470ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.UI.Selectable/SelectionState UnityEngine.UI.Selectable::get_currentSelectionState()
471
472 ---> System.Exception: Basic block has to end with unconditional control flow.
473{
474 IL_0016:
475 stloc:bool(var_0_1C, ldfld:bool(Selectable::<isPointerInside>k__BackingField, ldloc:Selectable(this)))
476}
477
478 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
479 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
480 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
481 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
482 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
483 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
484 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
485 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
486 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
487 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
488 --- End of inner exception stack trace ---
489 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
490 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
491*/;
492 }
493 }
494
495 // Token: 0x0600043F RID: 1087 RVA: 0x0000DABC File Offset: 0x0000BCBC
502
503 // Token: 0x06000440 RID: 1088 RVA: 0x0000DAE4 File Offset: 0x0000BCE4
505 {
506 bool activeInHierarchy = base.gameObject.activeInHierarchy;
507 }
508
509 // Token: 0x06000441 RID: 1089 RVA: 0x0000DB70 File Offset: 0x0000BD70
511 {
512 for (;;)
513 {
514 Quaternion rotation = base.transform.rotation;
517 if (base.transform != null)
518 {
519 }
520 if (this.m_Navigation.m_WrapAround)
521 {
523 }
524 long num = 0L;
525 int num2 = 65408;
526 if (num2 == 0)
527 {
528 }
529 if (num2 == 0)
530 {
531 }
533 if (transform2 != null)
534 {
535 }
536 Rect rect;
537 Vector2 center = rect.center;
538 if (num != 0L)
539 {
540 return;
541 }
542 }
543 }
544
545 // Token: 0x06000442 RID: 1090 RVA: 0x0000DBE8 File Offset: 0x0000BDE8
547 {
548 /*
549An exception occurred when decompiling this method (06000442)
550
551ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Vector3 UnityEngine.UI.Selectable::GetPointOnRectEdge(UnityEngine.RectTransform,UnityEngine.Vector2)
552
553 ---> System.Exception: Basic block has to end with unconditional control flow.
554{
555 IL_0003:
556 stloc:Vector2(var_2_09, callgetter:Vector2(Rect::get_center, ldloc:Rect[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Rect&](var_1)))
557 stloc:Vector2(var_4_10, callgetter:Vector2(Rect::get_size, ldloc:Rect[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Rect&](var_3)))
558}
559
560 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
561 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
562 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
563 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
564 --- End of inner exception stack trace ---
565 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
566 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
567*/;
568 }
569
570 // Token: 0x06000443 RID: 1091 RVA: 0x0000DC08 File Offset: 0x0000BE08
571 private void Navigate(AxisEventData eventData, Selectable sel)
572 {
573 if (!true)
574 {
575 }
578 }
579
580 // Token: 0x06000444 RID: 1092 RVA: 0x0000DC28 File Offset: 0x0000BE28
582 {
584 return this.m_Navigation.m_SelectOnLeft;
585 }
586
587 // Token: 0x06000445 RID: 1093 RVA: 0x0000DC5C File Offset: 0x0000BE5C
589 {
591 return this.m_Navigation.m_SelectOnRight;
592 }
593
594 // Token: 0x06000446 RID: 1094 RVA: 0x0000DC90 File Offset: 0x0000BE90
596 {
598 return this.m_Navigation.m_SelectOnUp;
599 }
600
601 // Token: 0x06000447 RID: 1095 RVA: 0x0000DCC4 File Offset: 0x0000BEC4
603 {
605 return this.m_Navigation.m_SelectOnDown;
606 }
607
608 // Token: 0x06000448 RID: 1096 RVA: 0x0000DCF8 File Offset: 0x0000BEF8
609 public virtual void OnMove(AxisEventData eventData)
610 {
611 MoveDirection <moveDir>k__BackingField = eventData.<moveDir>k__BackingField;
612 }
613
614 // Token: 0x06000449 RID: 1097 RVA: 0x0000DD1C File Offset: 0x0000BF1C
615 private void StartColorTween(Color targetColor, bool instant)
616 {
618 if (!true)
619 {
620 }
621 }
622
623 // Token: 0x0600044A RID: 1098 RVA: 0x0000DD48 File Offset: 0x0000BF48
625 {
626 Image image = this.image;
627 }
628
629 // Token: 0x0600044B RID: 1099 RVA: 0x0000DD6C File Offset: 0x0000BF6C
630 private void TriggerAnimation(string triggername)
631 {
634 bool isActiveAndEnabled = this.animator.isActiveAndEnabled;
635 bool hasBoundPlayables = this.animator.hasBoundPlayables;
636 bool flag = string.IsNullOrEmpty(triggername);
637 }
638
639 // Token: 0x0600044C RID: 1100 RVA: 0x0000DE4C File Offset: 0x0000C04C
640 protected bool IsHighlighted()
641 {
642 /*
643An exception occurred when decompiling this method (0600044C)
644
645ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean UnityEngine.UI.Selectable::IsHighlighted()
646
647 ---> System.Exception: Basic block has to end with unconditional control flow.
648{
649 IL_0012:
650 stloc:bool(var_1_18, ldfld:bool(Selectable::<hasSelection>k__BackingField, ldloc:Selectable(this)))
651}
652
653 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
654 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
655 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
656 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
657 --- End of inner exception stack trace ---
658 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
659 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
660*/;
661 }
662
663 // Token: 0x0600044D RID: 1101 RVA: 0x0000DE74 File Offset: 0x0000C074
664 protected bool IsPressed()
665 {
666 /*
667An exception occurred when decompiling this method (0600044D)
668
669ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean UnityEngine.UI.Selectable::IsPressed()
670
671 ---> System.Exception: Basic block has to end with unconditional control flow.
672{
673 Block_0:
674 stloc:bool(var_0_06, ldfld:bool(Selectable::<isPointerDown>k__BackingField, ldloc:Selectable(this)))
675}
676
677 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
678 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
679 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
680 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
681 --- End of inner exception stack trace ---
682 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
683 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
684*/;
685 }
686
687 // Token: 0x0600044E RID: 1102 RVA: 0x0000DE8C File Offset: 0x0000C08C
689 {
691 {
692 return;
693 }
695 {
696 return;
697 }
698 bool flag = this.<isPointerInside>k__BackingField;
699 }
700
701 // Token: 0x0600044F RID: 1103 RVA: 0x0000DEB4 File Offset: 0x0000C0B4
702 public virtual void OnPointerDown(PointerEventData eventData)
703 {
704 if (eventData.<button>k__BackingField != PointerEventData.InputButton.Left)
705 {
706 return;
707 }
709 if (navigation != null)
710 {
711 if (navigation == null)
712 {
713 }
717 current2.SetSelectedGameObject(gameObject, eventData);
718 }
719 this.<isPointerDown>k__BackingField = true;
721 }
722
723 // Token: 0x06000450 RID: 1104 RVA: 0x0000DF08 File Offset: 0x0000C108
724 public virtual void OnPointerUp(PointerEventData eventData)
725 {
726 if (eventData.<button>k__BackingField != PointerEventData.InputButton.Left)
727 {
728 return;
729 }
731 }
732
733 // Token: 0x06000451 RID: 1105 RVA: 0x0000DF24 File Offset: 0x0000C124
734 public virtual void OnPointerEnter(PointerEventData eventData)
735 {
736 this.<isPointerInside>k__BackingField = true;
738 }
739
740 // Token: 0x06000452 RID: 1106 RVA: 0x0000DF40 File Offset: 0x0000C140
741 public virtual void OnPointerExit(PointerEventData eventData)
742 {
744 }
745
746 // Token: 0x06000453 RID: 1107 RVA: 0x0000DF54 File Offset: 0x0000C154
747 public virtual void OnSelect(BaseEventData eventData)
748 {
749 this.<hasSelection>k__BackingField = true;
751 }
752
753 // Token: 0x06000454 RID: 1108 RVA: 0x0000DF70 File Offset: 0x0000C170
754 public virtual void OnDeselect(BaseEventData eventData)
755 {
757 }
758
759 // Token: 0x06000455 RID: 1109 RVA: 0x0000DF84 File Offset: 0x0000C184
760 public virtual void Select()
761 {
762 if (!true)
763 {
764 }
767 if (selectionGuard)
768 {
769 return;
770 }
771 if (!selectionGuard)
772 {
773 }
776 current2.SetSelectedGameObject(gameObject);
777 }
778
779 // Token: 0x06000456 RID: 1110 RVA: 0x0000DFD0 File Offset: 0x0000C1D0
780 // Note: this type is marked as 'beforefieldinit'.
781 static Selectable()
782 {
783 }
784
785 // Token: 0x04000201 RID: 513
786 protected static Selectable[] s_Selectables;
787
788 // Token: 0x04000202 RID: 514
789 protected static int s_SelectableCount;
790
791 // Token: 0x04000203 RID: 515
792 private bool m_EnableCalled;
793
794 // Token: 0x04000204 RID: 516
796 [FormerlySerializedAs("navigation")]
798
799 // Token: 0x04000205 RID: 517
801 [FormerlySerializedAs("transition")]
803
804 // Token: 0x04000206 RID: 518
806 [FormerlySerializedAs("colors")]
808
809 // Token: 0x04000207 RID: 519
811 [FormerlySerializedAs("spriteState")]
813
814 // Token: 0x04000208 RID: 520
816 [FormerlySerializedAs("animationTriggers")]
818
819 // Token: 0x04000209 RID: 521
821 [Tooltip("Can the Selectable be interacted with?")]
822 private bool m_Interactable;
823
824 // Token: 0x0400020A RID: 522
825 [FormerlySerializedAs("m_HighlightGraphic")]
827 [FormerlySerializedAs("highlightGraphic")]
829
830 // Token: 0x0400020B RID: 523
832
833 // Token: 0x0400020C RID: 524
834 protected int m_CurrentIndex;
835
836 // Token: 0x0400020D RID: 525
838 private bool <isPointerInside>k__BackingField;
839
840 // Token: 0x0400020E RID: 526
842 private bool <isPointerDown>k__BackingField;
843
844 // Token: 0x0400020F RID: 527
846 private bool <hasSelection>k__BackingField;
847
848 // Token: 0x04000210 RID: 528
850
851 // Token: 0x02000068 RID: 104
852 public enum Transition
853 {
854 // Token: 0x04000212 RID: 530
855 None,
856 // Token: 0x04000213 RID: 531
857 ColorTint,
858 // Token: 0x04000214 RID: 532
860 // Token: 0x04000215 RID: 533
862 }
863
864 // Token: 0x02000069 RID: 105
865 protected enum SelectionState
866 {
867 // Token: 0x04000217 RID: 535
868 Normal,
869 // Token: 0x04000218 RID: 536
871 // Token: 0x04000219 RID: 537
872 Pressed,
873 // Token: 0x0400021A RID: 538
874 Selected,
875 // Token: 0x0400021B RID: 539
877 }
878 }
879}
class f__AnonymousType0<< Count > j__TPar
Component GetComponent(Type type)
Definition Component.cs:41
void GetComponents(Type type, List< Component > results)
Definition Component.cs:189
GameObject gameObject
Definition Component.cs:31
Selectable.Transition transition
static Vector3 GetPointOnRectEdge(RectTransform rect, Vector2 dir)
static Selectable[] allSelectablesArray
Definition Selectable.cs:19
AnimationTriggers m_AnimationTriggers
AnimationTriggers animationTriggers
Selectable.Transition m_Transition
bool< isPointerDown > k__BackingField
virtual Selectable FindSelectableOnRight()
void OnApplicationFocus(bool hasFocus)
void EvaluateAndTransitionToSelectionState()
bool< hasSelection > k__BackingField
void StartColorTween(Color targetColor, bool instant)
virtual Selectable FindSelectableOnDown()
virtual void OnPointerEnter(PointerEventData eventData)
virtual void OnPointerUp(PointerEventData eventData)
virtual void OnPointerDown(PointerEventData eventData)
override void OnDisable()
Selectable FindSelectable(Vector3 dir)
virtual void InstantClearState()
override void OnTransformParentChanged()
readonly List< CanvasGroup > m_CanvasGroupCache
virtual Selectable FindSelectableOnUp()
virtual Selectable FindSelectableOnLeft()
void Navigate(AxisEventData eventData, Selectable sel)
virtual void OnDeselect(BaseEventData eventData)
bool< isPointerInside > k__BackingField
override void OnEnable()
Selectable.SelectionState currentSelectionState
virtual void OnPointerExit(PointerEventData eventData)
void TriggerAnimation(string triggername)
override void Awake()
static int AllSelectablesNoAlloc(Selectable[] selectables)
override void OnDidApplyAnimationProperties()
virtual void DoStateTransition(Selectable.SelectionState state, bool instant)
override void OnCanvasGroupChanged()
virtual void OnSelect(BaseEventData eventData)
static int allSelectableCount
Definition Selectable.cs:50
void DoSpriteSwap(Sprite newSprite)
static Selectable[] s_Selectables
static List< Selectable > allSelectables
Definition Selectable.cs:82
virtual bool IsInteractable()
virtual void OnMove(AxisEventData eventData)
static Quaternion Inverse(Quaternion rotation)
Definition Quaternion.cs:22
Vector2 center
Definition Rect.cs:103
Navigation.Mode m_Mode