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
ScrollRect.cs
Go to the documentation of this file.
1using System;
5
6namespace UnityEngine.UI
7{
8 // Token: 0x02000063 RID: 99
11 [AddComponentMenu("UI/Scroll Rect", 37)]
15 {
16 // Token: 0x170000F7 RID: 247
17 // (get) Token: 0x060003BD RID: 957 RVA: 0x0000C27C File Offset: 0x0000A47C
18 // (set) Token: 0x060003BE RID: 958 RVA: 0x0000C290 File Offset: 0x0000A490
20 {
21 get
22 {
23 return this.m_Content;
24 }
25 set
26 {
28 }
29 }
30
31 // Token: 0x170000F8 RID: 248
32 // (get) Token: 0x060003BF RID: 959 RVA: 0x0000C2A4 File Offset: 0x0000A4A4
33 // (set) Token: 0x060003C0 RID: 960 RVA: 0x0000C2B8 File Offset: 0x0000A4B8
34 public bool horizontal
35 {
36 get
37 {
38 return this.m_Horizontal;
39 }
40 set
41 {
42 }
43 }
44
45 // Token: 0x170000F9 RID: 249
46 // (get) Token: 0x060003C1 RID: 961 RVA: 0x0000C2C8 File Offset: 0x0000A4C8
47 // (set) Token: 0x060003C2 RID: 962 RVA: 0x0000C2DC File Offset: 0x0000A4DC
48 public bool vertical
49 {
50 get
51 {
52 return this.m_Vertical;
53 }
54 set
55 {
56 }
57 }
58
59 // Token: 0x170000FA RID: 250
60 // (get) Token: 0x060003C3 RID: 963 RVA: 0x0000C2EC File Offset: 0x0000A4EC
61 // (set) Token: 0x060003C4 RID: 964 RVA: 0x0000C300 File Offset: 0x0000A500
63 {
64 get
65 {
66 return this.m_MovementType;
67 }
68 set
69 {
71 }
72 }
73
74 // Token: 0x170000FB RID: 251
75 // (get) Token: 0x060003C5 RID: 965 RVA: 0x0000C314 File Offset: 0x0000A514
76 // (set) Token: 0x060003C6 RID: 966 RVA: 0x0000C328 File Offset: 0x0000A528
77 public float elasticity
78 {
79 get
80 {
81 /*
82An exception occurred when decompiling this method (060003C5)
83
84ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single UnityEngine.UI.ScrollRect::get_elasticity()
85
86 ---> System.Exception: Basic block has to end with unconditional control flow.
87{
88 Block_0:
89 stloc:float32(var_0_06, ldfld:float32(ScrollRect::m_Elasticity, ldloc:ScrollRect(this)))
90}
91
92 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
93 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
94 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
95 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
96 --- End of inner exception stack trace ---
97 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
98 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
99*/;
100 }
101 set
102 {
103 }
104 }
105
106 // Token: 0x170000FC RID: 252
107 // (get) Token: 0x060003C7 RID: 967 RVA: 0x0000C338 File Offset: 0x0000A538
108 // (set) Token: 0x060003C8 RID: 968 RVA: 0x0000C34C File Offset: 0x0000A54C
109 public bool inertia
110 {
111 get
112 {
113 return this.m_Inertia;
114 }
115 set
116 {
117 }
118 }
119
120 // Token: 0x170000FD RID: 253
121 // (get) Token: 0x060003C9 RID: 969 RVA: 0x0000C35C File Offset: 0x0000A55C
122 // (set) Token: 0x060003CA RID: 970 RVA: 0x0000C370 File Offset: 0x0000A570
123 public float decelerationRate
124 {
125 get
126 {
127 /*
128An exception occurred when decompiling this method (060003C9)
129
130ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single UnityEngine.UI.ScrollRect::get_decelerationRate()
131
132 ---> System.Exception: Basic block has to end with unconditional control flow.
133{
134 Block_0:
135 stloc:float32(var_0_06, ldfld:float32(ScrollRect::m_DecelerationRate, ldloc:ScrollRect(this)))
136}
137
138 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
139 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
140 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
141 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
142 --- End of inner exception stack trace ---
143 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
144 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
145*/;
146 }
147 set
148 {
149 }
150 }
151
152 // Token: 0x170000FE RID: 254
153 // (get) Token: 0x060003CB RID: 971 RVA: 0x0000C380 File Offset: 0x0000A580
154 // (set) Token: 0x060003CC RID: 972 RVA: 0x0000C394 File Offset: 0x0000A594
155 public float scrollSensitivity
156 {
157 get
158 {
159 /*
160An exception occurred when decompiling this method (060003CB)
161
162ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single UnityEngine.UI.ScrollRect::get_scrollSensitivity()
163
164 ---> System.Exception: Basic block has to end with unconditional control flow.
165{
166 Block_0:
167 stloc:float32(var_0_06, ldfld:float32(ScrollRect::m_ScrollSensitivity, ldloc:ScrollRect(this)))
168}
169
170 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
171 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
172 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
173 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
174 --- End of inner exception stack trace ---
175 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
176 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
177*/;
178 }
179 set
180 {
181 }
182 }
183
184 // Token: 0x170000FF RID: 255
185 // (get) Token: 0x060003CD RID: 973 RVA: 0x0000C3A4 File Offset: 0x0000A5A4
186 // (set) Token: 0x060003CE RID: 974 RVA: 0x0000C3B8 File Offset: 0x0000A5B8
188 {
189 get
190 {
191 return this.m_Viewport;
192 }
193 set
194 {
196 this.SetDirtyCaching();
197 }
198 }
199
200 // Token: 0x17000100 RID: 256
201 // (get) Token: 0x060003CF RID: 975 RVA: 0x0000C3D4 File Offset: 0x0000A5D4
202 // (set) Token: 0x060003D0 RID: 976 RVA: 0x0000C3E8 File Offset: 0x0000A5E8
227
228 // Token: 0x17000101 RID: 257
229 // (get) Token: 0x060003D1 RID: 977 RVA: 0x0000C43C File Offset: 0x0000A63C
230 // (set) Token: 0x060003D2 RID: 978 RVA: 0x0000C450 File Offset: 0x0000A650
232 {
233 get
234 {
235 return this.m_VerticalScrollbar;
236 }
237 set
238 {
240 if (!true)
241 {
242 }
243 bool flag = verticalScrollbar;
247 if (verticalScrollbar2 == null)
248 {
249 }
250 bool flag2 = value;
252 this.SetDirtyCaching();
253 }
254 }
255
256 // Token: 0x17000102 RID: 258
257 // (get) Token: 0x060003D3 RID: 979 RVA: 0x0000C4A4 File Offset: 0x0000A6A4
258 // (set) Token: 0x060003D4 RID: 980 RVA: 0x0000C4B8 File Offset: 0x0000A6B8
260 {
261 get
262 {
264 }
265 set
266 {
268 this.SetDirtyCaching();
269 }
270 }
271
272 // Token: 0x17000103 RID: 259
273 // (get) Token: 0x060003D5 RID: 981 RVA: 0x0000C4D4 File Offset: 0x0000A6D4
274 // (set) Token: 0x060003D6 RID: 982 RVA: 0x0000C4E8 File Offset: 0x0000A6E8
276 {
277 get
278 {
280 }
281 set
282 {
284 this.SetDirtyCaching();
285 }
286 }
287
288 // Token: 0x17000104 RID: 260
289 // (get) Token: 0x060003D7 RID: 983 RVA: 0x0000C504 File Offset: 0x0000A704
290 // (set) Token: 0x060003D8 RID: 984 RVA: 0x0000C518 File Offset: 0x0000A718
292 {
293 get
294 {
295 /*
296An exception occurred when decompiling this method (060003D7)
297
298ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single UnityEngine.UI.ScrollRect::get_horizontalScrollbarSpacing()
299
300 ---> System.Exception: Basic block has to end with unconditional control flow.
301{
302 Block_0:
303 stloc:float32(var_0_06, ldfld:float32(ScrollRect::m_HorizontalScrollbarSpacing, ldloc:ScrollRect(this)))
304}
305
306 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
307 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
308 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
309 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
310 --- End of inner exception stack trace ---
311 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
312 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
313*/;
314 }
315 set
316 {
317 this.SetDirty();
318 }
319 }
320
321 // Token: 0x17000105 RID: 261
322 // (get) Token: 0x060003D9 RID: 985 RVA: 0x0000C52C File Offset: 0x0000A72C
323 // (set) Token: 0x060003DA RID: 986 RVA: 0x0000C540 File Offset: 0x0000A740
325 {
326 get
327 {
328 /*
329An exception occurred when decompiling this method (060003D9)
330
331ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single UnityEngine.UI.ScrollRect::get_verticalScrollbarSpacing()
332
333 ---> System.Exception: Basic block has to end with unconditional control flow.
334{
335 Block_0:
336 stloc:float32(var_0_06, ldfld:float32(ScrollRect::m_VerticalScrollbarSpacing, ldloc:ScrollRect(this)))
337}
338
339 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
340 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
341 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
342 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
343 --- End of inner exception stack trace ---
344 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
345 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
346*/;
347 }
348 set
349 {
350 this.SetDirty();
351 }
352 }
353
354 // Token: 0x17000106 RID: 262
355 // (get) Token: 0x060003DB RID: 987 RVA: 0x0000C554 File Offset: 0x0000A754
356 // (set) Token: 0x060003DC RID: 988 RVA: 0x0000C568 File Offset: 0x0000A768
358 {
359 get
360 {
361 return this.m_OnValueChanged;
362 }
363 set
364 {
366 }
367 }
368
369 // Token: 0x17000107 RID: 263
370 // (get) Token: 0x060003DD RID: 989 RVA: 0x0000C57C File Offset: 0x0000A77C
372 {
373 get
374 {
376 if (!true)
377 {
378 }
382 if (!true)
383 {
384 }
386 if (transform != null)
387 {
389 throw new InvalidCastException();
390 }
393 return rectTransform;
394 }
395 }
396
397 // Token: 0x17000108 RID: 264
398 // (get) Token: 0x060003DE RID: 990 RVA: 0x0000C5DC File Offset: 0x0000A7DC
399 // (set) Token: 0x060003DF RID: 991 RVA: 0x0000C604 File Offset: 0x0000A804
401 {
402 get
403 {
404 float x = this.m_Velocity.x;
405 float y = this.m_Velocity.y;
406 Vector2 vector;
407 return vector;
408 }
409 set
410 {
411 }
412 }
413
414 // Token: 0x17000109 RID: 265
415 // (get) Token: 0x060003E0 RID: 992 RVA: 0x0000C614 File Offset: 0x0000A814
417 {
418 get
419 {
420 RectTransform rect = this.m_Rect;
421 if (!true)
422 {
423 }
425 this.m_Rect = component;
426 return component;
427 }
428 }
429
430 // Token: 0x060003E1 RID: 993 RVA: 0x0000C644 File Offset: 0x0000A844
431 protected ScrollRect()
432 {
433 }
434
435 // Token: 0x060003E2 RID: 994 RVA: 0x0000C66C File Offset: 0x0000A86C
436 public virtual void Rebuild(CanvasUpdate executing)
437 {
438 if (executing == CanvasUpdate.Prelayout)
439 {
440 this.UpdateCachedData();
441 return;
442 }
443 }
444
445 // Token: 0x060003E3 RID: 995 RVA: 0x0000C698 File Offset: 0x0000A898
446 public virtual void LayoutComplete()
447 {
448 }
449
450 // Token: 0x060003E4 RID: 996 RVA: 0x0000C6A8 File Offset: 0x0000A8A8
451 public virtual void GraphicUpdateComplete()
452 {
453 }
454
455 // Token: 0x060003E5 RID: 997 RVA: 0x0000C6B8 File Offset: 0x0000A8B8
456 private void UpdateCachedData()
457 {
460 if (this.m_HorizontalScrollbar.transform != null)
461 {
462 return;
463 }
464 long num = 0L;
467 if (num == 0L)
468 {
469 }
470 if (this.m_VerticalScrollbar.transform != null)
471 {
472 return;
473 }
474 long num2 = 0L;
476 bool flag = this.viewRect.parent == transform;
479 }
480
481 // Token: 0x060003E6 RID: 998 RVA: 0x0000C7F4 File Offset: 0x0000A9F4
482 protected override void OnEnable()
483 {
484 base.OnEnable();
486 if (!true)
487 {
488 }
489 bool flag = horizontalScrollbar;
493 if (horizontalScrollbar2 == null)
494 {
495 }
499 if (verticalScrollbar2 == null)
500 {
501 }
503 this.SetDirty();
504 }
505
506 // Token: 0x060003E7 RID: 999 RVA: 0x0000C85C File Offset: 0x0000AA5C
507 protected override void OnDisable()
508 {
509 int num = 1;
510 if (num == 0)
511 {
512 }
515 if (num == 0)
516 {
517 }
518 bool flag = horizontalScrollbar;
522 if (horizontalScrollbar2 == null)
523 {
524 }
528 base.OnDisable();
529 }
530
531 // Token: 0x060003E8 RID: 1000 RVA: 0x0000C8C8 File Offset: 0x0000AAC8
532 public override bool IsActive()
533 {
534 bool flag = base.IsActive();
536 bool flag2;
537 return flag2;
538 }
539
540 // Token: 0x060003E9 RID: 1001 RVA: 0x0000C8E8 File Offset: 0x0000AAE8
542 {
543 if (!this.m_HasRebuiltLayout)
544 {
546 }
547 }
548
549 // Token: 0x060003EA RID: 1002 RVA: 0x0000C910 File Offset: 0x0000AB10
550 public virtual void StopMovement()
551 {
552 }
553
554 // Token: 0x060003EB RID: 1003 RVA: 0x0000C920 File Offset: 0x0000AB20
555 public virtual void OnScroll(PointerEventData data)
556 {
558 this.UpdateBounds();
559 float y = data.<scrollDelta>k__BackingField.y;
560 float x = data.<scrollDelta>k__BackingField.x;
561 bool vertical = this.m_Vertical;
562 bool horizontal = this.m_Horizontal;
563 if (vertical)
564 {
565 if (horizontal)
566 {
567 return;
568 }
569 return;
570 }
571 else
572 {
573 if (!vertical && horizontal)
574 {
575 return;
576 }
577 bool flag = data.IsScrolling();
578 int num = 1;
579 this.m_Scrolling = num != 0;
580 Vector2 anchoredPosition = this.m_Content.anchoredPosition;
584 bool horizontal2 = this.m_Horizontal;
585 bool vertical2 = this.m_Vertical;
587 this.UpdateBounds();
588 return;
589 }
590 }
591
592 // Token: 0x060003EC RID: 1004 RVA: 0x0000C9CC File Offset: 0x0000ABCC
593 public virtual void OnInitializePotentialDrag(PointerEventData eventData)
594 {
595 if (eventData.<button>k__BackingField == PointerEventData.InputButton.Left)
596 {
597 }
598 }
599
600 // Token: 0x060003ED RID: 1005 RVA: 0x0000C9E4 File Offset: 0x0000ABE4
601 public virtual void OnBeginDrag(PointerEventData eventData)
602 {
603 if (eventData.<button>k__BackingField == PointerEventData.InputButton.Left)
604 {
605 this.UpdateBounds();
607 float x = eventData.<position>k__BackingField.x;
608 float y = eventData.<position>k__BackingField.y;
609 Camera pressEventCamera = eventData.pressEventCamera;
610 Vector2 anchoredPosition = this.m_Content.anchoredPosition;
611 this.m_Dragging = true;
612 }
613 }
614
615 // Token: 0x060003EE RID: 1006 RVA: 0x0000CA3C File Offset: 0x0000AC3C
616 public virtual void OnEndDrag(PointerEventData eventData)
617 {
618 if (eventData.<button>k__BackingField != PointerEventData.InputButton.Left)
619 {
620 return;
621 }
622 }
623
624 // Token: 0x060003EF RID: 1007 RVA: 0x0000CA54 File Offset: 0x0000AC54
625 public virtual void OnDrag(PointerEventData eventData)
626 {
627 if (this.m_Dragging && eventData.<button>k__BackingField == PointerEventData.InputButton.Left)
628 {
630 float x = eventData.<position>k__BackingField.x;
631 float y = eventData.<position>k__BackingField.y;
632 Camera pressEventCamera = eventData.pressEventCamera;
633 this.UpdateBounds();
634 float x2 = this.m_PointerStartLocalCursor.x;
635 float y2 = this.m_PointerStartLocalCursor.y;
636 Vector2 anchoredPosition = this.m_Content.anchoredPosition;
637 bool horizontal = this.m_Horizontal;
638 bool vertical = this.m_Vertical;
641 }
642 }
643
644 // Token: 0x060003F0 RID: 1008 RVA: 0x0000CAE4 File Offset: 0x0000ACE4
645 protected virtual void SetContentAnchoredPosition(Vector2 position)
646 {
647 if (!this.m_Horizontal)
648 {
649 Vector2 anchoredPosition = this.m_Content.anchoredPosition;
650 }
651 if (!this.m_Vertical)
652 {
654 }
657 this.UpdateBounds();
658 }
659
660 // Token: 0x060003F1 RID: 1009 RVA: 0x0000CB34 File Offset: 0x0000AD34
661 protected virtual void LateUpdate()
662 {
663 int num = 1;
665 if (num == 0)
666 {
667 }
668 bool flag = content;
670 this.UpdateBounds();
671 float unscaledDeltaTime = Time.unscaledDeltaTime;
672 bool horizontal = this.m_Horizontal;
673 bool vertical = this.m_Vertical;
675 if (this.m_Dragging)
676 {
677 if (this.m_Inertia)
678 {
679 Vector2 anchoredPosition = this.m_Content.anchoredPosition;
680 float x = this.m_Velocity.x;
681 float num2;
683 }
686 float x2 = this.m_PrevPosition.x;
687 float y = this.m_PrevPosition.y;
688 UISystemProfilerApi.AddMarker("ScrollRect.value", this);
692 this.UpdatePrevData();
694 return;
695 }
696 float x3 = this.m_Velocity.x;
697 float y2 = this.m_Velocity.y;
700 if (!this.m_Inertia)
701 {
702 return;
703 }
705 float x4 = this.m_Velocity.x;
707 }
708
709 // Token: 0x060003F2 RID: 1010 RVA: 0x0000CD84 File Offset: 0x0000AF84
710 protected void UpdatePrevData()
711 {
713 if (!true)
714 {
715 }
716 }
717
718 // Token: 0x060003F3 RID: 1011 RVA: 0x0000CDD8 File Offset: 0x0000AFD8
720 {
721 int num = 1;
723 if (num == 0)
724 {
725 }
726 bool flag = horizontalScrollbar;
728 }
729
730 // Token: 0x1700010A RID: 266
731 // (get) Token: 0x060003F4 RID: 1012 RVA: 0x0000CE64 File Offset: 0x0000B064
732 // (set) Token: 0x060003F5 RID: 1013 RVA: 0x0000CE80 File Offset: 0x0000B080
734 {
735 get
736 {
739 Vector2 vector;
740 return vector;
741 }
742 set
743 {
744 }
745 }
746
747 // Token: 0x1700010B RID: 267
748 // (get) Token: 0x060003F6 RID: 1014 RVA: 0x0000CE90 File Offset: 0x0000B090
749 // (set) Token: 0x060003F7 RID: 1015 RVA: 0x0000CEA4 File Offset: 0x0000B0A4
751 {
752 get
753 {
754 /*
755An exception occurred when decompiling this method (060003F6)
756
757ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single UnityEngine.UI.ScrollRect::get_horizontalNormalizedPosition()
758
759 ---> System.Exception: Basic block has to end with unconditional control flow.
760{
761 Block_0:
762 call:void(ScrollRect::UpdateBounds, ldloc:ScrollRect(this))
763}
764
765 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
766 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
767 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
768 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
769 --- End of inner exception stack trace ---
770 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
771 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
772*/;
773 }
774 set
775 {
776 }
777 }
778
779 // Token: 0x1700010C RID: 268
780 // (get) Token: 0x060003F8 RID: 1016 RVA: 0x0000CEB4 File Offset: 0x0000B0B4
781 // (set) Token: 0x060003F9 RID: 1017 RVA: 0x0000CEC8 File Offset: 0x0000B0C8
783 {
784 get
785 {
786 /*
787An exception occurred when decompiling this method (060003F8)
788
789ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single UnityEngine.UI.ScrollRect::get_verticalNormalizedPosition()
790
791 ---> System.Exception: Basic block has to end with unconditional control flow.
792{
793 Block_0:
794 call:void(ScrollRect::UpdateBounds, ldloc:ScrollRect(this))
795}
796
797 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
798 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
799 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
800 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
801 --- End of inner exception stack trace ---
802 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
803 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
804*/;
805 }
806 set
807 {
808 }
809 }
810
811 // Token: 0x060003FA RID: 1018 RVA: 0x0000CED8 File Offset: 0x0000B0D8
813 {
814 }
815
816 // Token: 0x060003FB RID: 1019 RVA: 0x0000CEE8 File Offset: 0x0000B0E8
818 {
819 }
820
821 // Token: 0x060003FC RID: 1020 RVA: 0x0000CEF8 File Offset: 0x0000B0F8
822 protected virtual void SetNormalizedPosition(float value, int axis)
823 {
825 this.UpdateBounds();
826 if (axis != 0)
827 {
828 Vector2 anchoredPosition = this.m_Content.anchoredPosition;
830 return;
831 }
834 if (axis != 0)
835 {
837 return;
838 }
840 this.UpdateBounds();
841 }
842
843 // Token: 0x060003FD RID: 1021 RVA: 0x00002207 File Offset: 0x00000407
844 private static float RubberDelta(float overStretching, float viewSize)
845 {
846 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
847 }
848
849 // Token: 0x060003FE RID: 1022 RVA: 0x0000CF74 File Offset: 0x0000B174
850 protected override void OnRectTransformDimensionsChange()
851 {
852 this.SetDirty();
853 }
854
855 // Token: 0x1700010D RID: 269
856 // (get) Token: 0x060003FF RID: 1023 RVA: 0x0000CF88 File Offset: 0x0000B188
857 private bool hScrollingNeeded
858 {
859 get
860 {
861 /*
862An exception occurred when decompiling this method (060003FF)
863
864ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean UnityEngine.UI.ScrollRect::get_hScrollingNeeded()
865
866 ---> System.Exception: Basic block has to end with unconditional control flow.
867{
868 Block_0:
869 stloc:bool(var_1_07, callgetter:bool(Application::get_isPlaying))
870}
871
872 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
873 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
874 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
875 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
876 --- End of inner exception stack trace ---
877 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
878 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
879*/;
880 }
881 }
882
883 // Token: 0x1700010E RID: 270
884 // (get) Token: 0x06000400 RID: 1024 RVA: 0x0000CFA0 File Offset: 0x0000B1A0
885 private bool vScrollingNeeded
886 {
887 get
888 {
889 /*
890An exception occurred when decompiling this method (06000400)
891
892ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean UnityEngine.UI.ScrollRect::get_vScrollingNeeded()
893
894 ---> System.Exception: Basic block has to end with unconditional control flow.
895{
896 Block_0:
897 stloc:bool(var_1_07, callgetter:bool(Application::get_isPlaying))
898}
899
900 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
901 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
902 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
903 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
904 --- End of inner exception stack trace ---
905 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
906 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
907*/;
908 }
909 }
910
911 // Token: 0x06000401 RID: 1025 RVA: 0x0000CFB8 File Offset: 0x0000B1B8
912 public virtual void CalculateLayoutInputHorizontal()
913 {
914 }
915
916 // Token: 0x06000402 RID: 1026 RVA: 0x0000CFC8 File Offset: 0x0000B1C8
917 public virtual void CalculateLayoutInputVertical()
918 {
919 }
920
921 // Token: 0x1700010F RID: 271
922 // (get) Token: 0x06000403 RID: 1027 RVA: 0x00002207 File Offset: 0x00000407
923 public virtual float minWidth
924 {
925 get
926 {
927 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
928 }
929 }
930
931 // Token: 0x17000110 RID: 272
932 // (get) Token: 0x06000404 RID: 1028 RVA: 0x00002207 File Offset: 0x00000407
933 public virtual float preferredWidth
934 {
935 get
936 {
937 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
938 }
939 }
940
941 // Token: 0x17000111 RID: 273
942 // (get) Token: 0x06000405 RID: 1029 RVA: 0x00002207 File Offset: 0x00000407
943 public virtual float flexibleWidth
944 {
945 get
946 {
947 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
948 }
949 }
950
951 // Token: 0x17000112 RID: 274
952 // (get) Token: 0x06000406 RID: 1030 RVA: 0x00002207 File Offset: 0x00000407
953 public virtual float minHeight
954 {
955 get
956 {
957 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
958 }
959 }
960
961 // Token: 0x17000113 RID: 275
962 // (get) Token: 0x06000407 RID: 1031 RVA: 0x00002207 File Offset: 0x00000407
963 public virtual float preferredHeight
964 {
965 get
966 {
967 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
968 }
969 }
970
971 // Token: 0x17000114 RID: 276
972 // (get) Token: 0x06000408 RID: 1032 RVA: 0x00002207 File Offset: 0x00000407
973 public virtual float flexibleHeight
974 {
975 get
976 {
977 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
978 }
979 }
980
981 // Token: 0x17000115 RID: 277
982 // (get) Token: 0x06000409 RID: 1033 RVA: 0x00002207 File Offset: 0x00000407
983 public virtual int layoutPriority
984 {
985 get
986 {
987 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
988 }
989 }
990
991 // Token: 0x0600040A RID: 1034 RVA: 0x0000CFD8 File Offset: 0x0000B1D8
992 public virtual void SetLayoutHorizontal()
993 {
994 this.UpdateCachedData();
995 if (this.m_HSliderExpand || this.m_VSliderExpand)
996 {
1003 Vector2 center = this.viewRect.rect.center;
1004 Vector2 size = this.viewRect.rect.size;
1005 Bounds bounds = this.GetBounds();
1006 bool vsliderExpand = this.m_VSliderExpand;
1007 if (vsliderExpand)
1008 {
1011 float vsliderWidth = this.m_VSliderWidth;
1013 Vector2 sizeDelta = this.viewRect.sizeDelta;
1015 if (!vsliderExpand)
1016 {
1017 }
1019 Vector2 center2 = this.viewRect.rect.center;
1020 Vector2 size2 = this.viewRect.rect.size;
1022 Bounds bounds2 = this.GetBounds();
1024 return;
1025 }
1026 }
1027 bool hsliderExpand = this.m_HSliderExpand;
1028 if (hsliderExpand)
1029 {
1033 float hsliderHeight = this.m_HSliderHeight;
1038 Bounds bounds3 = this.GetBounds();
1040 }
1045 float vsliderWidth2 = this.m_VSliderWidth;
1048 }
1049
1050 // Token: 0x0600040B RID: 1035 RVA: 0x0000D1CC File Offset: 0x0000B3CC
1051 public virtual void SetLayoutVertical()
1052 {
1053 this.UpdateScrollbarLayout();
1054 Vector2 center = this.viewRect.rect.center;
1055 Vector2 size = this.viewRect.rect.size;
1056 Bounds bounds = this.GetBounds();
1057 }
1058
1059 // Token: 0x0600040C RID: 1036 RVA: 0x0000D208 File Offset: 0x0000B408
1073
1074 // Token: 0x0600040D RID: 1037 RVA: 0x0000D268 File Offset: 0x0000B468
1076 {
1077 if (!true)
1078 {
1079 }
1080 bool flag = scrollbar;
1081 bool activeSelf = scrollbar.gameObject.activeSelf;
1083 {
1085 return;
1086 }
1087 long num = 0L;
1089 }
1090
1091 // Token: 0x0600040E RID: 1038 RVA: 0x0000D2A8 File Offset: 0x0000B4A8
1093 {
1094 bool vsliderExpand = this.m_VSliderExpand;
1095 if (vsliderExpand)
1096 {
1098 if (!vsliderExpand)
1099 {
1100 }
1101 bool flag = horizontalScrollbar;
1105 Vector2 anchoredPosition = this.m_HorizontalScrollbarRect.anchoredPosition;
1108 float vsliderWidth = this.m_VSliderWidth;
1110 Vector2 sizeDelta = horizontalScrollbarRect2.sizeDelta;
1111 return;
1112 }
1113 bool hsliderExpand = this.m_HSliderExpand;
1114 if (hsliderExpand)
1115 {
1117 if (!hsliderExpand)
1118 {
1119 }
1120 bool flag2 = verticalScrollbar;
1127 float hsliderHeight = this.m_HSliderHeight;
1129 return;
1130 }
1131 }
1132
1133 // Token: 0x0600040F RID: 1039 RVA: 0x0000D3A8 File Offset: 0x0000B5A8
1134 protected void UpdateBounds()
1135 {
1136 int num = 1;
1137 Vector2 center = this.viewRect.rect.center;
1138 Vector2 size = this.viewRect.rect.size;
1139 this.m_ViewBounds.m_Extents.y = (float)num;
1140 Bounds bounds = this.GetBounds();
1143 if (num == 0)
1144 {
1145 }
1146 Vector2 pivot = this.m_Content.pivot;
1148 }
1149
1150 // Token: 0x06000410 RID: 1040 RVA: 0x0000D468 File Offset: 0x0000B668
1152 {
1153 Vector3 size = viewBounds.size;
1154 float x = contentSize.x;
1155 float y = contentSize.y;
1156 Vector3 size2 = viewBounds.size;
1157 float y2 = contentPivot.y;
1158 float y3 = contentPos.y;
1159 contentPos.y = y2;
1160 Vector3 size3 = viewBounds.size;
1161 contentSize.y = y3;
1162 }
1163
1164 // Token: 0x06000411 RID: 1041 RVA: 0x0000D4BC File Offset: 0x0000B6BC
1166 {
1168 if (!true)
1169 {
1170 }
1172 Vector3[] corners = this.m_Corners;
1173 content2.GetWorldCorners(corners);
1174 Matrix4x4 worldToLocalMatrix = this.viewRect.worldToLocalMatrix;
1175 Vector3[] corners2 = this.m_Corners;
1176 Bounds bounds;
1177 return bounds;
1178 }
1179
1180 // Token: 0x06000412 RID: 1042 RVA: 0x0000D500 File Offset: 0x0000B700
1184
1185 // Token: 0x06000413 RID: 1043 RVA: 0x0000D510 File Offset: 0x0000B710
1187 {
1188 bool horizontal = this.m_Horizontal;
1189 bool vertical = this.m_Vertical;
1191 Vector2 vector;
1192 return vector;
1193 }
1194
1195 // Token: 0x06000414 RID: 1044 RVA: 0x0000D534 File Offset: 0x0000B734
1197 {
1198 /*
1199An exception occurred when decompiling this method (06000414)
1200
1201ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Vector2 UnityEngine.UI.ScrollRect::InternalCalculateOffset(UnityEngine.Bounds,UnityEngine.Bounds,System.Boolean,System.Boolean,UnityEngine.UI.ScrollRect/MovementType,UnityEngine.Vector2)
1202
1203 ---> System.Exception: Basic block has to end with unconditional control flow.
1204{
1205 IL_0020:
1206 stloc:float32(var_4_27, ldfld:float32(Vector2::y, ldloc:Vector2[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector2&](delta)))
1207 stloc:Vector3(var_5_2F, callgetter:Vector3(Bounds::get_max, ldloc:Bounds[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Bounds&](viewBounds)))
1208 stloc:Vector3(var_6_37, callgetter:Vector3(Bounds::get_min, ldloc:Bounds[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Bounds&](viewBounds)))
1209}
1210
1211 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
1212 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
1213 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
1214 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
1215 --- End of inner exception stack trace ---
1216 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
1217 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
1218*/;
1219 }
1220
1221 // Token: 0x06000415 RID: 1045 RVA: 0x0000D57C File Offset: 0x0000B77C
1222 protected void SetDirty()
1223 {
1225 }
1226
1227 // Token: 0x06000416 RID: 1046 RVA: 0x0000D598 File Offset: 0x0000B798
1233
1234 // Token: 0x06000417 RID: 1047 RVA: 0x0000D5B8 File Offset: 0x0000B7B8
1236 {
1237 return base.transform;
1238 }
1239
1240 // Token: 0x040001D4 RID: 468
1243
1244 // Token: 0x040001D5 RID: 469
1246 private bool m_Horizontal = 257 != 0;
1247
1248 // Token: 0x040001D6 RID: 470
1250 private bool m_Vertical;
1251
1252 // Token: 0x040001D7 RID: 471
1255
1256 // Token: 0x040001D8 RID: 472
1258 private float m_Elasticity;
1259
1260 // Token: 0x040001D9 RID: 473
1262 private bool m_Inertia = true;
1263
1264 // Token: 0x040001DA RID: 474
1266 private float m_DecelerationRate;
1267
1268 // Token: 0x040001DB RID: 475
1270 private float m_ScrollSensitivity;
1271
1272 // Token: 0x040001DC RID: 476
1275
1276 // Token: 0x040001DD RID: 477
1279
1280 // Token: 0x040001DE RID: 478
1283
1284 // Token: 0x040001DF RID: 479
1287
1288 // Token: 0x040001E0 RID: 480
1291
1292 // Token: 0x040001E1 RID: 481
1295
1296 // Token: 0x040001E2 RID: 482
1299
1300 // Token: 0x040001E3 RID: 483
1303
1304 // Token: 0x040001E4 RID: 484
1306
1307 // Token: 0x040001E5 RID: 485
1309
1310 // Token: 0x040001E6 RID: 486
1312
1313 // Token: 0x040001E7 RID: 487
1315
1316 // Token: 0x040001E8 RID: 488
1318
1319 // Token: 0x040001E9 RID: 489
1321
1322 // Token: 0x040001EA RID: 490
1323 private bool m_Dragging;
1324
1325 // Token: 0x040001EB RID: 491
1326 private bool m_Scrolling;
1327
1328 // Token: 0x040001EC RID: 492
1330
1331 // Token: 0x040001ED RID: 493
1333
1334 // Token: 0x040001EE RID: 494
1336
1337 // Token: 0x040001EF RID: 495
1340
1341 // Token: 0x040001F0 RID: 496
1342 private bool m_HSliderExpand;
1343
1344 // Token: 0x040001F1 RID: 497
1345 private bool m_VSliderExpand;
1346
1347 // Token: 0x040001F2 RID: 498
1348 private float m_HSliderHeight;
1349
1350 // Token: 0x040001F3 RID: 499
1351 private float m_VSliderWidth;
1352
1353 // Token: 0x040001F4 RID: 500
1356
1357 // Token: 0x040001F5 RID: 501
1359
1360 // Token: 0x040001F6 RID: 502
1362
1363 // Token: 0x040001F7 RID: 503
1365
1366 // Token: 0x040001F8 RID: 504
1368
1369 // Token: 0x02000064 RID: 100
1370 public enum MovementType
1371 {
1372 // Token: 0x040001FA RID: 506
1374 // Token: 0x040001FB RID: 507
1375 Elastic,
1376 // Token: 0x040001FC RID: 508
1377 Clamped
1378 }
1379
1380 // Token: 0x02000065 RID: 101
1382 {
1383 // Token: 0x040001FE RID: 510
1384 Permanent,
1385 // Token: 0x040001FF RID: 511
1386 AutoHide,
1387 // Token: 0x04000200 RID: 512
1389 }
1390
1391 // Token: 0x02000066 RID: 102
1392 [Serializable]
1393 public class ScrollRectEvent : UnityEvent<Vector2>
1394 {
1395 // Token: 0x06000418 RID: 1048 RVA: 0x0000D5CC File Offset: 0x0000B7CC
1397 {
1398 }
1399 }
1400 }
1401}
class f__AnonymousType0<< Count > j__TPar
Component GetComponent(Type type)
Definition Component.cs:41
GameObject gameObject
Definition Component.cs:31
void SetActive(bool value)
IntPtr m_CachedPtr
Definition Object.cs:349
void GetWorldCorners(Vector3[] fourCornersArray)
static float unscaledDeltaTime
Definition Time.cs:34
Matrix4x4 worldToLocalMatrix
Definition Transform.cs:177
static void AddMarker(string name, Object obj)
static void UnRegisterCanvasElementForRebuild(ICanvasElement element)
static void RegisterCanvasElementForLayoutRebuild(ICanvasElement element)
static void ForceRebuildLayoutImmediate(RectTransform layoutRoot)
static void MarkLayoutForRebuild(RectTransform rect)
override void OnRectTransformDimensionsChange()
void SetVerticalNormalizedPosition(float value)
readonly Vector3[] m_Corners
static void AdjustBounds(Bounds viewBounds, Vector2 contentPivot, Vector3 contentSize, Vector3 contentPos)
static void UpdateOneScrollbarVisibility(bool xScrollingNeeded, bool xAxisEnabled, ScrollRect.ScrollbarVisibility scrollbarVisibility, Scrollbar scrollbar)
override bool IsActive()
ScrollRect.MovementType movementType
Definition ScrollRect.cs:63
virtual float preferredHeight
ScrollRect.ScrollbarVisibility m_HorizontalScrollbarVisibility
static Vector2 InternalCalculateOffset(Bounds viewBounds, Bounds contentBounds, bool horizontal, bool vertical, ScrollRect.MovementType movementType, Vector2 delta)
RectTransform m_HorizontalScrollbarRect
ScrollRect.ScrollbarVisibility horizontalScrollbarVisibility
DrivenRectTransformTracker m_Tracker
override void OnEnable()
virtual void LayoutComplete()
virtual float flexibleWidth
Vector2 CalculateOffset(Vector2 delta)
static Bounds InternalGetBounds(Vector3[] corners, Matrix4x4 viewWorldToLocalMatrix)
virtual void CalculateLayoutInputHorizontal()
virtual void SetLayoutVertical()
ScrollRect.ScrollbarVisibility verticalScrollbarVisibility
virtual void OnBeginDrag(PointerEventData eventData)
virtual void LateUpdate()
ScrollRect.ScrollbarVisibility m_VerticalScrollbarVisibility
RectTransform m_VerticalScrollbarRect
virtual void Rebuild(CanvasUpdate executing)
virtual void OnEndDrag(PointerEventData eventData)
virtual void StopMovement()
virtual void OnInitializePotentialDrag(PointerEventData eventData)
RectTransform rectTransform
ScrollRect.MovementType m_MovementType
virtual void OnScroll(PointerEventData data)
virtual void CalculateLayoutInputVertical()
void SetHorizontalNormalizedPosition(float value)
virtual void OnDrag(PointerEventData eventData)
ScrollRect.ScrollRectEvent m_OnValueChanged
void UpdateScrollbars(Vector2 offset)
virtual void SetContentAnchoredPosition(Vector2 position)
static float RubberDelta(float overStretching, float viewSize)
virtual void SetNormalizedPosition(float value, int axis)
virtual float preferredWidth
ScrollRect.ScrollRectEvent onValueChanged
virtual void GraphicUpdateComplete()
override void OnDisable()
virtual void SetLayoutHorizontal()
virtual float flexibleHeight
Scrollbar.ScrollEvent m_OnValueChanged
Definition Scrollbar.cs:548
Vector2 center
Definition Rect.cs:103
Vector2 size
Definition Rect.cs:206