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
InputField.cs
Go to the documentation of this file.
1using System;
10
11namespace UnityEngine.UI
12{
13 // Token: 0x0200002C RID: 44
14 [AddComponentMenu("UI/Legacy/Input Field", 103)]
16 {
17 // Token: 0x17000067 RID: 103
18 // (get) Token: 0x06000187 RID: 391 RVA: 0x00005A3C File Offset: 0x00003C3C
20 {
21 get
22 {
23 if (!true)
24 {
25 }
26 bool flag = EventSystem.current;
28 bool flag2 = current.m_CurrentInputModule;
29 if (current == null)
30 {
31 }
33 }
34 }
35
36 // Token: 0x17000068 RID: 104
37 // (get) Token: 0x06000188 RID: 392 RVA: 0x00005A88 File Offset: 0x00003C88
38 private string compositionString
39 {
40 get
41 {
43 }
44 }
45
46 // Token: 0x06000189 RID: 393 RVA: 0x00005A9C File Offset: 0x00003C9C
47 protected InputField()
48 {
49 int num = 42;
50 this.m_AsteriskChar = (char)num;
51 long num2 = 39322L;
52 int num3 = 1;
56 if ("" == null)
57 {
58 }
59 base..ctor();
61 }
62
63 // Token: 0x17000069 RID: 105
64 // (get) Token: 0x0600018A RID: 394 RVA: 0x00005AE8 File Offset: 0x00003CE8
65 protected Mesh mesh
66 {
67 get
68 {
69 Mesh mesh = this.m_Mesh;
70 if (!true)
71 {
72 }
73 return this.m_Mesh;
74 }
75 }
76
77 // Token: 0x1700006A RID: 106
78 // (get) Token: 0x0600018B RID: 395 RVA: 0x00005B08 File Offset: 0x00003D08
80 {
81 get
82 {
83 /*
84An exception occurred when decompiling this method (0600018B)
85
86ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.TextGenerator UnityEngine.UI.InputField::get_cachedInputTextGenerator()
87
88 ---> System.Exception: Basic block has to end with unconditional control flow.
89{
90 IL_0000:
91 brtrue(IL_0000, ldfld:TextGenerator[exp:bool](InputField::m_InputTextCache, ldloc:InputField(this)))
92}
93
94 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
95 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
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 1878
97 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
98 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
99 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
100 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
101 --- End of inner exception stack trace ---
102 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
103 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
104*/;
105 }
106 }
107
108 // Token: 0x1700006B RID: 107
109 // (get) Token: 0x0600018D RID: 397 RVA: 0x00005B2C File Offset: 0x00003D2C
110 // (set) Token: 0x0600018C RID: 396 RVA: 0x00005B1C File Offset: 0x00003D1C
112 {
113 get
114 {
117 return true;
118 }
119 set
120 {
121 }
122 }
123
124 // Token: 0x1700006C RID: 108
125 // (get) Token: 0x0600018F RID: 399 RVA: 0x00005B5C File Offset: 0x00003D5C
126 // (set) Token: 0x0600018E RID: 398 RVA: 0x00005B4C File Offset: 0x00003D4C
127 public virtual bool shouldActivateOnSelect
128 {
129 get
130 {
132 {
134 return;
135 }
136 }
137 set
138 {
139 }
140 }
141
142 // Token: 0x1700006D RID: 109
143 // (get) Token: 0x06000190 RID: 400 RVA: 0x00005B7C File Offset: 0x00003D7C
144 // (set) Token: 0x06000191 RID: 401 RVA: 0x00005B90 File Offset: 0x00003D90
145 public string text
146 {
147 get
148 {
149 return this.m_Text;
150 }
151 set
152 {
153 this.SetText(value, true);
154 }
155 }
156
157 // Token: 0x06000192 RID: 402 RVA: 0x00005BA8 File Offset: 0x00003DA8
158 public void SetTextWithoutNotify(string input)
159 {
160 long num = 0L;
161 this.SetText(input, num != 0L);
162 }
163
164 // Token: 0x06000193 RID: 403 RVA: 0x00005BC0 File Offset: 0x00003DC0
165 private void SetText(string value, bool sendCallback = true)
166 {
167 bool flag = this.m_Text == value;
168 string text;
169 if (this.m_LineType == InputField.LineType.SingleLine)
170 {
171 string text2;
172 text = text2.Replace("\n", "").Replace("\t", "");
173 }
174 if (this.m_OnValidateInput != null)
175 {
176 this.m_Text = "";
177 return;
178 }
180 {
181 this.m_Text = "";
183 int stringLength = text._stringLength;
187 long num2 = 0L;
188 int stringLength2 = this.m_Text._stringLength;
189 char c = text[(int)num2];
190 string text4;
191 string text3 = this.m_Text + text4;
193 return;
194 }
196 int stringLength3 = text._stringLength;
197 long num3 = 0L;
198 string text5 = text.Substring((int)num3, characterLimit2);
201 if (keyboard != null)
202 {
203 string text6 = this.m_Text;
205 }
206 string text7 = this.m_Text;
208 int stringLength4 = text7._stringLength;
211 }
212
213 // Token: 0x1700006E RID: 110
214 // (get) Token: 0x06000194 RID: 404 RVA: 0x00005D10 File Offset: 0x00003F10
215 public bool isFocused
216 {
217 get
218 {
219 return this.m_AllowInput;
220 }
221 }
222
223 // Token: 0x1700006F RID: 111
224 // (get) Token: 0x06000195 RID: 405 RVA: 0x00005D24 File Offset: 0x00003F24
225 // (set) Token: 0x06000196 RID: 406 RVA: 0x00005D38 File Offset: 0x00003F38
226 public float caretBlinkRate
227 {
228 get
229 {
230 /*
231An exception occurred when decompiling this method (06000195)
232
233ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single UnityEngine.UI.InputField::get_caretBlinkRate()
234
235 ---> System.Exception: Basic block has to end with unconditional control flow.
236{
237 Block_0:
238 stloc:float32(var_0_06, ldfld:float32(InputField::m_CaretBlinkRate, ldloc:InputField(this)))
239}
240
241 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
242 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
243 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
244 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
245 --- End of inner exception stack trace ---
246 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
247 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
248*/;
249 }
250 set
251 {
252 if (this.m_AllowInput)
253 {
254 this.SetCaretActive();
255 return;
256 }
257 }
258 }
259
260 // Token: 0x17000070 RID: 112
261 // (get) Token: 0x06000197 RID: 407 RVA: 0x00005D54 File Offset: 0x00003F54
262 // (set) Token: 0x06000198 RID: 408 RVA: 0x00005D68 File Offset: 0x00003F68
263 public int caretWidth
264 {
265 get
266 {
267 return this.m_CaretWidth;
268 }
269 set
270 {
271 this.MarkGeometryAsDirty();
272 }
273 }
274
275 // Token: 0x17000071 RID: 113
276 // (get) Token: 0x06000199 RID: 409 RVA: 0x00005D7C File Offset: 0x00003F7C
277 // (set) Token: 0x0600019A RID: 410 RVA: 0x00005D90 File Offset: 0x00003F90
279 {
280 get
281 {
282 return this.m_TextComponent;
283 }
284 set
285 {
286 int num = 1;
288 if (num == 0)
289 {
290 }
296 if (num == 0)
297 {
298 }
302 }
303 }
304
305 // Token: 0x17000072 RID: 114
306 // (get) Token: 0x0600019B RID: 411 RVA: 0x00005DEC File Offset: 0x00003FEC
307 // (set) Token: 0x0600019C RID: 412 RVA: 0x00005E00 File Offset: 0x00004000
309 {
310 get
311 {
312 return this.m_Placeholder;
313 }
314 set
315 {
316 }
317 }
318
319 // Token: 0x17000073 RID: 115
320 // (get) Token: 0x0600019D RID: 413 RVA: 0x00005E10 File Offset: 0x00004010
321 // (set) Token: 0x0600019E RID: 414 RVA: 0x00005E5C File Offset: 0x0000405C
323 {
324 get
325 {
326 /*
327An exception occurred when decompiling this method (0600019D)
328
329ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Color UnityEngine.UI.InputField::get_caretColor()
330
331 ---> System.Exception: Basic block has to end with unconditional control flow.
332{
333 IL_0038:
334 stloc:Text(var_4_3E, ldfld:Text(InputField::m_TextComponent, ldloc:InputField(this)))
335}
336
337 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
338 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
339 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
340 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
341 --- End of inner exception stack trace ---
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 92
343 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
344*/;
345 }
346 set
347 {
348 this.MarkGeometryAsDirty();
349 }
350 }
351
352 // Token: 0x17000074 RID: 116
353 // (get) Token: 0x0600019F RID: 415 RVA: 0x00005E70 File Offset: 0x00004070
354 // (set) Token: 0x060001A0 RID: 416 RVA: 0x00005E84 File Offset: 0x00004084
356 {
357 get
358 {
359 return this.m_CustomCaretColor;
360 }
361 set
362 {
364 }
365 }
366
367 // Token: 0x17000075 RID: 117
368 // (get) Token: 0x060001A1 RID: 417 RVA: 0x00005EA0 File Offset: 0x000040A0
369 // (set) Token: 0x060001A2 RID: 418 RVA: 0x00005EDC File Offset: 0x000040DC
371 {
372 get
373 {
374 /*
375An exception occurred when decompiling this method (060001A1)
376
377ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Color UnityEngine.UI.InputField::get_selectionColor()
378
379 ---> System.Exception: Basic block has to end with unconditional control flow.
380{
381 Block_0:
382 stloc:float32(var_0_0B, ldfld:float32(Color::r, ldfld:Color[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Color&](InputField::m_SelectionColor, ldloc:InputField(this))))
383 stloc:float32(var_1_17, ldfld:float32(Color::g, ldfld:Color[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Color&](InputField::m_SelectionColor, ldloc:InputField(this))))
384 stloc:float32(var_2_23, ldfld:float32(Color::b, ldfld:Color[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Color&](InputField::m_SelectionColor, ldloc:InputField(this))))
385 stloc:float32(var_3_2F, ldfld:float32(Color::a, ldfld:Color[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Color&](InputField::m_SelectionColor, ldloc:InputField(this))))
386}
387
388 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
389 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
390 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
391 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
392 --- End of inner exception stack trace ---
393 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
394 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
395*/;
396 }
397 set
398 {
399 this.MarkGeometryAsDirty();
400 }
401 }
402
403 // Token: 0x17000076 RID: 118
404 // (get) Token: 0x060001A3 RID: 419 RVA: 0x00005EF0 File Offset: 0x000040F0
405 // (set) Token: 0x060001A4 RID: 420 RVA: 0x00005F04 File Offset: 0x00004104
407 {
408 get
409 {
410 return this.m_OnDidEndEdit;
411 }
412 set
413 {
414 }
415 }
416
417 // Token: 0x17000077 RID: 119
418 // (get) Token: 0x060001A5 RID: 421 RVA: 0x00005F14 File Offset: 0x00004114
419 // (set) Token: 0x060001A6 RID: 422 RVA: 0x00005F28 File Offset: 0x00004128
421 {
422 get
423 {
424 return this.m_OnSubmit;
425 }
426 set
427 {
428 }
429 }
430
431 // Token: 0x17000078 RID: 120
432 // (get) Token: 0x060001A7 RID: 423 RVA: 0x00005F38 File Offset: 0x00004138
433 // (set) Token: 0x060001A8 RID: 424 RVA: 0x00005F4C File Offset: 0x0000414C
434 [Obsolete("onValueChange has been renamed to onValueChanged")]
436 {
437 get
438 {
439 return this.m_OnValueChanged;
440 }
441 set
442 {
444 }
445 }
446
447 // Token: 0x17000079 RID: 121
448 // (get) Token: 0x060001A9 RID: 425 RVA: 0x00005F60 File Offset: 0x00004160
449 // (set) Token: 0x060001AA RID: 426 RVA: 0x00005F74 File Offset: 0x00004174
451 {
452 get
453 {
454 return this.m_OnValueChanged;
455 }
456 set
457 {
458 }
459 }
460
461 // Token: 0x1700007A RID: 122
462 // (get) Token: 0x060001AB RID: 427 RVA: 0x00005F84 File Offset: 0x00004184
463 // (set) Token: 0x060001AC RID: 428 RVA: 0x00005F98 File Offset: 0x00004198
465 {
466 get
467 {
468 return this.m_OnValidateInput;
469 }
470 set
471 {
472 }
473 }
474
475 // Token: 0x1700007B RID: 123
476 // (get) Token: 0x060001AD RID: 429 RVA: 0x00005FA8 File Offset: 0x000041A8
477 // (set) Token: 0x060001AE RID: 430 RVA: 0x00005FBC File Offset: 0x000041BC
478 public int characterLimit
479 {
480 get
481 {
482 return this.m_CharacterLimit;
483 }
484 set
485 {
486 if (!true)
487 {
488 }
489 int num = Math.Max(0, value);
490 this.UpdateLabel();
492 if (keyboard != null)
493 {
495 return;
496 }
497 }
498 }
499
500 // Token: 0x1700007C RID: 124
501 // (get) Token: 0x060001AF RID: 431 RVA: 0x00005FEC File Offset: 0x000041EC
502 // (set) Token: 0x060001B0 RID: 432 RVA: 0x00006000 File Offset: 0x00004200
504 {
505 get
506 {
507 return this.m_ContentType;
508 }
509 set
510 {
511 this.EnforceContentType();
512 }
513 }
514
515 // Token: 0x1700007D RID: 125
516 // (get) Token: 0x060001B1 RID: 433 RVA: 0x00006014 File Offset: 0x00004214
517 // (set) Token: 0x060001B2 RID: 434 RVA: 0x00006028 File Offset: 0x00004228
519 {
520 get
521 {
522 return this.m_LineType;
523 }
524 set
525 {
527 }
528 }
529
530 // Token: 0x1700007E RID: 126
531 // (get) Token: 0x060001B3 RID: 435 RVA: 0x00006040 File Offset: 0x00004240
532 // (set) Token: 0x060001B4 RID: 436 RVA: 0x00006054 File Offset: 0x00004254
534 {
535 get
536 {
537 return this.m_InputType;
538 }
539 set
540 {
542 }
543 }
544
545 // Token: 0x1700007F RID: 127
546 // (get) Token: 0x060001B5 RID: 437 RVA: 0x0000606C File Offset: 0x0000426C
548 {
549 get
550 {
551 return this.m_Keyboard;
552 }
553 }
554
555 // Token: 0x17000080 RID: 128
556 // (get) Token: 0x060001B6 RID: 438 RVA: 0x00006080 File Offset: 0x00004280
557 // (set) Token: 0x060001B7 RID: 439 RVA: 0x00006094 File Offset: 0x00004294
559 {
560 get
561 {
562 return this.m_KeyboardType;
563 }
564 set
565 {
567 }
568 }
569
570 // Token: 0x17000081 RID: 129
571 // (get) Token: 0x060001B8 RID: 440 RVA: 0x000060AC File Offset: 0x000042AC
572 // (set) Token: 0x060001B9 RID: 441 RVA: 0x000060C0 File Offset: 0x000042C0
574 {
575 get
576 {
577 return this.m_CharacterValidation;
578 }
579 set
580 {
582 }
583 }
584
585 // Token: 0x17000082 RID: 130
586 // (get) Token: 0x060001BA RID: 442 RVA: 0x000060D8 File Offset: 0x000042D8
587 // (set) Token: 0x060001BB RID: 443 RVA: 0x000060EC File Offset: 0x000042EC
588 public bool readOnly
589 {
590 get
591 {
592 return this.m_ReadOnly;
593 }
594 set
595 {
596 }
597 }
598
599 // Token: 0x17000083 RID: 131
600 // (get) Token: 0x060001BC RID: 444 RVA: 0x000060FC File Offset: 0x000042FC
601 public bool multiLine
602 {
603 get
604 {
605 /*
606An exception occurred when decompiling this method (060001BC)
607
608ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean UnityEngine.UI.InputField::get_multiLine()
609
610 ---> System.Exception: Basic block has to end with unconditional control flow.
611{
612 Block_0:
613 stloc:LineType(var_0_06, ldfld:LineType(InputField::m_LineType, ldloc:InputField(this)))
614}
615
616 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
617 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
618 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
619 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
620 --- End of inner exception stack trace ---
621 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
622 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
623*/;
624 }
625 }
626
627 // Token: 0x17000084 RID: 132
628 // (get) Token: 0x060001BD RID: 445 RVA: 0x00006110 File Offset: 0x00004310
629 // (set) Token: 0x060001BE RID: 446 RVA: 0x00006124 File Offset: 0x00004324
630 public char asteriskChar
631 {
632 get
633 {
634 return this.m_AsteriskChar;
635 }
636 set
637 {
638 this.UpdateLabel();
639 }
640 }
641
642 // Token: 0x17000085 RID: 133
643 // (get) Token: 0x060001BF RID: 447 RVA: 0x00006138 File Offset: 0x00004338
644 public bool wasCanceled
645 {
646 get
647 {
648 return this.m_WasCanceled;
649 }
650 }
651
652 // Token: 0x060001C0 RID: 448 RVA: 0x0000614C File Offset: 0x0000434C
653 protected void ClampPos(int pos)
654 {
655 int stringLength = this.m_Text._stringLength;
656 }
657
658 // Token: 0x17000086 RID: 134
659 // (get) Token: 0x060001C1 RID: 449 RVA: 0x00006170 File Offset: 0x00004370
660 // (set) Token: 0x060001C2 RID: 450 RVA: 0x00006190 File Offset: 0x00004390
662 {
663 get
664 {
665 /*
666An exception occurred when decompiling this method (060001C1)
667
668ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 UnityEngine.UI.InputField::get_caretPositionInternal()
669
670 ---> System.Exception: Basic block has to end with unconditional control flow.
671{
672 Block_0:
673 stloc:int32(var_0_06, ldfld:int32(InputField::m_CaretPosition, ldloc:InputField(this)))
674 stloc:int32(var_1_12, ldfld:int32(string::_stringLength, callgetter:string(InputField::get_compositionString, ldloc:InputField(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 set
687 {
689 int stringLength = this.m_Text._stringLength;
690 }
691 }
692
693 // Token: 0x17000087 RID: 135
694 // (get) Token: 0x060001C3 RID: 451 RVA: 0x000061BC File Offset: 0x000043BC
695 // (set) Token: 0x060001C4 RID: 452 RVA: 0x000061DC File Offset: 0x000043DC
697 {
698 get
699 {
700 /*
701An exception occurred when decompiling this method (060001C3)
702
703ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 UnityEngine.UI.InputField::get_caretSelectPositionInternal()
704
705 ---> System.Exception: Basic block has to end with unconditional control flow.
706{
707 Block_0:
708 stloc:int32(var_0_06, ldfld:int32(InputField::m_CaretSelectPosition, ldloc:InputField(this)))
709 stloc:int32(var_1_12, ldfld:int32(string::_stringLength, callgetter:string(InputField::get_compositionString, ldloc:InputField(this))))
710}
711
712 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
713 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
714 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
715 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
716 --- End of inner exception stack trace ---
717 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
718 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
719*/;
720 }
721 set
722 {
724 int stringLength = this.m_Text._stringLength;
725 }
726 }
727
728 // Token: 0x17000088 RID: 136
729 // (get) Token: 0x060001C5 RID: 453 RVA: 0x00006208 File Offset: 0x00004408
730 private bool hasSelection
731 {
732 get
733 {
734 /*
735An exception occurred when decompiling this method (060001C5)
736
737ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean UnityEngine.UI.InputField::get_hasSelection()
738
739 ---> System.Exception: Basic block has to end with unconditional control flow.
740{
741 Block_0:
742 stloc:int32(var_0_06, ldfld:int32(InputField::m_CaretPosition, ldloc:InputField(this)))
743 stloc:int32(var_1_12, ldfld:int32(string::_stringLength, callgetter:string(InputField::get_compositionString, ldloc:InputField(this))))
744 stloc:int32(var_2_19, ldfld:int32(InputField::m_CaretSelectPosition, ldloc:InputField(this)))
745 stloc:int32(var_4_20, ldfld:int32(string::_stringLength, ldloc:string(var_3)))
746}
747
748 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
749 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
750 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
751 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
752 --- End of inner exception stack trace ---
753 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
754 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
755*/;
756 }
757 }
758
759 // Token: 0x17000089 RID: 137
760 // (get) Token: 0x060001C6 RID: 454 RVA: 0x00006238 File Offset: 0x00004438
761 // (set) Token: 0x060001C7 RID: 455 RVA: 0x00006258 File Offset: 0x00004458
762 public int caretPosition
763 {
764 get
765 {
766 /*
767An exception occurred when decompiling this method (060001C6)
768
769ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 UnityEngine.UI.InputField::get_caretPosition()
770
771 ---> System.Exception: Basic block has to end with unconditional control flow.
772{
773 Block_0:
774 stloc:int32(var_0_06, ldfld:int32(InputField::m_CaretSelectPosition, ldloc:InputField(this)))
775 stloc:int32(var_1_12, ldfld:int32(string::_stringLength, callgetter:string(InputField::get_compositionString, ldloc:InputField(this))))
776}
777
778 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
779 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
780 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
781 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
782 --- End of inner exception stack trace ---
783 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
784 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
785*/;
786 }
787 set
788 {
791 }
792 }
793
794 // Token: 0x1700008A RID: 138
795 // (get) Token: 0x060001C8 RID: 456 RVA: 0x00006274 File Offset: 0x00004474
796 // (set) Token: 0x060001C9 RID: 457 RVA: 0x00006294 File Offset: 0x00004494
798 {
799 get
800 {
801 /*
802An exception occurred when decompiling this method (060001C8)
803
804ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 UnityEngine.UI.InputField::get_selectionAnchorPosition()
805
806 ---> System.Exception: Basic block has to end with unconditional control flow.
807{
808 Block_0:
809 stloc:int32(var_0_06, ldfld:int32(InputField::m_CaretPosition, ldloc:InputField(this)))
810 stloc:int32(var_1_12, ldfld:int32(string::_stringLength, callgetter:string(InputField::get_compositionString, ldloc:InputField(this))))
811}
812
813 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
814 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
815 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
816 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
817 --- End of inner exception stack trace ---
818 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
819 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
820*/;
821 }
822 set
823 {
824 if (this.compositionString._stringLength != 0)
825 {
826 return;
827 }
829 int stringLength = this.m_Text._stringLength;
831 }
832 }
833
834 // Token: 0x1700008B RID: 139
835 // (get) Token: 0x060001CA RID: 458 RVA: 0x000062CC File Offset: 0x000044CC
836 // (set) Token: 0x060001CB RID: 459 RVA: 0x000062EC File Offset: 0x000044EC
838 {
839 get
840 {
841 /*
842An exception occurred when decompiling this method (060001CA)
843
844ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 UnityEngine.UI.InputField::get_selectionFocusPosition()
845
846 ---> System.Exception: Basic block has to end with unconditional control flow.
847{
848 Block_0:
849 stloc:int32(var_0_06, ldfld:int32(InputField::m_CaretSelectPosition, ldloc:InputField(this)))
850 stloc:int32(var_1_12, ldfld:int32(string::_stringLength, callgetter:string(InputField::get_compositionString, ldloc:InputField(this))))
851}
852
853 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
854 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
855 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
856 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
857 --- End of inner exception stack trace ---
858 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
859 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
860*/;
861 }
862 set
863 {
864 if (this.compositionString._stringLength != 0)
865 {
866 return;
867 }
869 int stringLength = this.m_Text._stringLength;
871 }
872 }
873
874 // Token: 0x060001CC RID: 460 RVA: 0x00006324 File Offset: 0x00004524
875 protected override void Awake()
876 {
877 base.Awake();
878 if (!true)
879 {
880 }
881 bool flag = SystemInfo.deviceModel == "Oculus Quest";
882 }
883
884 // Token: 0x060001CD RID: 461 RVA: 0x0000634C File Offset: 0x0000454C
885 protected override void OnEnable()
886 {
887 base.OnEnable();
888 if (this.m_Text == null)
889 {
890 }
894 Material defaultGraphicMaterial = Graphic.defaultGraphicMaterial;
895 Texture2D whiteTexture = Texture2D.whiteTexture;
900 this.UpdateLabel();
901 }
902
903 // Token: 0x060001CE RID: 462 RVA: 0x000063B8 File Offset: 0x000045B8
904 protected override void OnDisable()
905 {
908 if (!true)
909 {
910 }
914 if (!true)
915 {
916 }
919 if (!true)
920 {
921 }
923 Mesh mesh = this.m_Mesh;
924 if (!true)
925 {
926 }
927 Mesh mesh2 = this.m_Mesh;
928 if (!true)
929 {
930 }
932 base.OnDisable();
933 }
934
935 // Token: 0x060001CF RID: 463 RVA: 0x00006430 File Offset: 0x00004630
936 protected override void OnDestroy()
937 {
938 if (!true)
939 {
940 }
942 base.OnDestroy();
943 }
944
945 // Token: 0x060001D0 RID: 464 RVA: 0x00002207 File Offset: 0x00000407
947 {
948 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
949 }
950
951 // Token: 0x060001D1 RID: 465 RVA: 0x0000644C File Offset: 0x0000464C
952 private void SetCaretVisible()
953 {
954 if (this.m_AllowInput)
955 {
956 this.m_CaretVisible = true;
957 float unscaledTime = Time.unscaledTime;
958 this.SetCaretActive();
959 return;
960 }
961 }
962
963 // Token: 0x060001D2 RID: 466 RVA: 0x00006478 File Offset: 0x00004678
964 private void SetCaretActive()
965 {
966 if (this.m_AllowInput)
967 {
968 float caretBlinkRate = this.m_CaretBlinkRate;
969 if (this.m_BlinkCoroutine == null)
970 {
971 IEnumerator enumerator = this.CaretBlink();
972 Coroutine coroutine = base.StartCoroutine(enumerator);
974 return;
975 }
976 }
977 }
978
979 // Token: 0x060001D3 RID: 467 RVA: 0x000064BC File Offset: 0x000046BC
980 private void UpdateCaretMaterial()
981 {
983 if (!true)
984 {
985 }
987 if (!true)
988 {
989 }
992 Material defaultGraphicMaterial = Graphic.defaultGraphicMaterial;
993 Texture2D whiteTexture = Texture2D.whiteTexture;
994 }
995
996 // Token: 0x060001D4 RID: 468 RVA: 0x00006504 File Offset: 0x00004704
997 protected void OnFocus()
998 {
999 string text = this.m_Text;
1000 int stringLength = text._stringLength;
1002 int stringLength2 = text._stringLength;
1004 }
1005
1006 // Token: 0x060001D5 RID: 469 RVA: 0x00006534 File Offset: 0x00004734
1007 protected void SelectAll()
1008 {
1009 string text = this.m_Text;
1010 int stringLength = text._stringLength;
1012 int stringLength2 = text._stringLength;
1014 }
1015
1016 // Token: 0x060001D6 RID: 470 RVA: 0x00006564 File Offset: 0x00004764
1017 public void MoveTextEnd(bool shift)
1018 {
1019 int stringLength = this.m_Text._stringLength;
1021 }
1022
1023 // Token: 0x060001D7 RID: 471 RVA: 0x000065B4 File Offset: 0x000047B4
1024 public void MoveTextStart(bool shift)
1025 {
1026 int stringLength = this.m_Text._stringLength;
1028 }
1029
1030 // Token: 0x1700008C RID: 140
1031 // (get) Token: 0x060001D8 RID: 472 RVA: 0x00006610 File Offset: 0x00004810
1032 // (set) Token: 0x060001D9 RID: 473 RVA: 0x00006624 File Offset: 0x00004824
1033 private static string clipboard
1034 {
1035 get
1036 {
1038 }
1039 set
1040 {
1042 }
1043 }
1044
1045 // Token: 0x060001DA RID: 474 RVA: 0x00006638 File Offset: 0x00004838
1047 {
1049 if (!true)
1050 {
1051 }
1052 if (true)
1053 {
1055 }
1057 }
1058
1059 // Token: 0x060001DB RID: 475 RVA: 0x00006664 File Offset: 0x00004864
1060 private bool InPlaceEditing()
1061 {
1062 bool isSupported = TouchScreenKeyboard.isSupported;
1064 return isSupported;
1065 }
1066
1067 // Token: 0x060001DC RID: 476 RVA: 0x00006684 File Offset: 0x00004884
1069 {
1070 if (!true)
1071 {
1072 }
1073 if (true)
1074 {
1075 }
1078 }
1079
1080 // Token: 0x060001DD RID: 477 RVA: 0x000066A8 File Offset: 0x000048A8
1082 {
1083 int end = this.m_Keyboard.selection.end;
1084 int caretPosition = this.m_CaretPosition;
1085 string text;
1086 int stringLength = text._stringLength;
1087 }
1088
1089 // Token: 0x060001DE RID: 478 RVA: 0x0000673C File Offset: 0x0000493C
1090 protected virtual void LateUpdate()
1091 {
1092 if (this.m_ShouldActivateNextUpdate && !this.m_AllowInput)
1093 {
1095 return;
1096 }
1098 if (this.m_AllowInput)
1099 {
1100 bool flag = this.InPlaceEditingChanged();
1102 Mesh mesh = this.mesh;
1103 return;
1104 }
1105 }
1106
1107 // Token: 0x060001DF RID: 479 RVA: 0x00006AAC File Offset: 0x00004CAC
1108 [Obsolete("This function is no longer used. Please use RectTransformUtility.ScreenPointToLocalPointInRectangle() instead.")]
1110 {
1111 /*
1112An exception occurred when decompiling this method (060001DF)
1113
1114ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Vector2 UnityEngine.UI.InputField::ScreenToLocal(UnityEngine.Vector2)
1115
1116 ---> System.Exception: Basic block has to end with unconditional control flow.
1117{
1118 Block_0:
1119 stloc:Camera(var_2_1A, callgetter:Camera(Canvas::get_worldCamera, ldloc:Canvas(var_0_0B)))
1120 stloc:Camera(var_4_21, callgetter:Camera(Canvas::get_worldCamera, ldloc:Canvas(var_0_0B)))
1121 stloc:Vector3(var_6_33, callgetter:Vector3(Transform::get_forward, callgetter:Transform(Component::get_transform, ldfld:Text[exp:Component](InputField::m_TextComponent, ldloc:InputField(this)))))
1122 stloc:Vector3(var_7_45, callgetter:Vector3(Transform::get_position, callgetter:Transform(Component::get_transform, ldfld:Text[exp:Component](InputField::m_TextComponent, ldloc:InputField(this)))))
1123 stloc:Transform(var_10_57, callgetter:Transform(Component::get_transform, callgetter:Transform[exp:Component](Component::get_transform, ldfld:Text[exp:Component](InputField::m_TextComponent, ldloc:InputField(this)))))
1124}
1125
1126 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
1127 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
1128 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
1129 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
1130 --- End of inner exception stack trace ---
1131 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
1132 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
1133*/;
1134 }
1135
1136 // Token: 0x060001E0 RID: 480 RVA: 0x00006B14 File Offset: 0x00004D14
1138 {
1140 float pixelsPerUnit = this.m_TextComponent.pixelsPerUnit;
1141 int num;
1142 return num;
1143 }
1144
1145 // Token: 0x060001E1 RID: 481 RVA: 0x00006B3C File Offset: 0x00004D3C
1147 {
1148 TextGenerator cachedTextGenerator = this.m_TextComponent.cachedTextGenerator;
1149 if (cachedTextGenerator.lineCount != 0)
1150 {
1151 int lineCount = cachedTextGenerator.lineCount;
1152 IList<UILineInfo> lines = cachedTextGenerator.lines;
1153 }
1154 return cachedTextGenerator.characterCountVisible;
1155 }
1156
1157 // Token: 0x060001E2 RID: 482 RVA: 0x00006BB8 File Offset: 0x00004DB8
1158 private bool MayDrag(PointerEventData eventData)
1159 {
1160 /*
1161An exception occurred when decompiling this method (060001E2)
1162
1163ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean UnityEngine.UI.InputField::MayDrag(UnityEngine.EventSystems.PointerEventData)
1164
1165 ---> System.Exception: Basic block has to end with unconditional control flow.
1166{
1167 IL_0024:
1168 stloc:bool(var_5_2A, ldfld:bool(InputField::m_HideMobileInput, ldloc:InputField(this)))
1169}
1170
1171 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
1172 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
1173 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
1174 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
1175 --- End of inner exception stack trace ---
1176 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
1177 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
1178*/;
1179 }
1180
1181 // Token: 0x060001E3 RID: 483 RVA: 0x00006BF0 File Offset: 0x00004DF0
1182 public virtual void OnBeginDrag(PointerEventData eventData)
1183 {
1184 bool flag = this.MayDrag(eventData);
1185 this.m_UpdateDrag = true;
1186 }
1187
1188 // Token: 0x060001E4 RID: 484 RVA: 0x00006C0C File Offset: 0x00004E0C
1189 public virtual void OnDrag(PointerEventData eventData)
1190 {
1191 bool flag = this.MayDrag(eventData);
1192 RectTransform rectTransform = this.m_TextComponent.rectTransform;
1193 Camera pressEventCamera = eventData.pressEventCamera;
1194 int drawStart = this.m_DrawStart;
1195 int stringLength = this.m_Text._stringLength;
1196 }
1197
1198 // Token: 0x060001E5 RID: 485 RVA: 0x00002207 File Offset: 0x00000407
1200 {
1201 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1202 }
1203
1204 // Token: 0x060001E6 RID: 486 RVA: 0x00006CB8 File Offset: 0x00004EB8
1205 public virtual void OnEndDrag(PointerEventData eventData)
1206 {
1207 bool flag = this.MayDrag(eventData);
1208 }
1209
1210 // Token: 0x060001E7 RID: 487 RVA: 0x00006CD0 File Offset: 0x00004ED0
1211 public override void OnPointerDown(PointerEventData eventData)
1212 {
1213 bool flag = this.MayDrag(eventData);
1216 current.SetSelectedGameObject(gameObject, eventData);
1217 bool allowInput = this.m_AllowInput;
1218 base.OnPointerDown(eventData);
1219 bool isSupported = TouchScreenKeyboard.isSupported;
1221 {
1223 if (keyboard != null)
1224 {
1225 bool active = keyboard.active;
1226 }
1227 throw new MissingMethodException();
1228 }
1229 if (allowInput)
1230 {
1231 RectTransform rectTransform = this.m_TextComponent.rectTransform;
1232 float x = eventData.<pointerPressRaycast>k__BackingField.screenPosition.x;
1233 float y = eventData.<pointerPressRaycast>k__BackingField.screenPosition.y;
1234 Camera pressEventCamera = eventData.pressEventCamera;
1235 int drawStart = this.m_DrawStart;
1237 string text = this.m_Text;
1238 int stringLength = text._stringLength;
1239 int stringLength2 = text._stringLength;
1241 return;
1242 }
1243 this.UpdateLabel();
1244 }
1245
1246 // Token: 0x060001E8 RID: 488 RVA: 0x00006DB0 File Offset: 0x00004FB0
1248 {
1249 EventModifiers modifiers = evt.modifiers;
1251 long num = 0L;
1252 KeyCode keyCode = evt.keyCode;
1253 int num2 = 1;
1254 this.MoveUp(num != 0L, num2 != 0);
1255 string text = this.m_Text;
1256 int stringLength = text._stringLength;
1258 int stringLength2 = text._stringLength;
1260 if (stringLength2 == 0)
1261 {
1262 }
1263 string systemCopyBuffer = GUIUtility.systemCopyBuffer;
1265 int num3 = 1;
1266 this.m_WasCanceled = num3 != 0;
1267 this.Backspace();
1268 this.ForwardSpace();
1269 if (this.m_InputType == InputField.InputType.Standard)
1270 {
1271 }
1272 return "";
1273 }
1274
1275 // Token: 0x060001E9 RID: 489 RVA: 0x00006E84 File Offset: 0x00005084
1276 private bool IsValidChar(char c)
1277 {
1278 return this.m_TextComponent.font.HasCharacter(c);
1279 }
1280
1281 // Token: 0x060001EA RID: 490 RVA: 0x00006EA4 File Offset: 0x000050A4
1282 public void ProcessEvent(Event e)
1283 {
1285 }
1286
1287 // Token: 0x060001EB RID: 491 RVA: 0x00006EBC File Offset: 0x000050BC
1288 public virtual void OnUpdateSelected(BaseEventData eventData)
1289 {
1290 bool allowInput = this.m_AllowInput;
1291 if (allowInput)
1292 {
1293 bool flag = Event.PopEvent(this.m_ProcessingEvent);
1294 EventType rawType = this.m_ProcessingEvent.rawType;
1295 string text;
1296 if (allowInput && text._stringLength == 0)
1297 {
1298 char character = this.m_ProcessingEvent.character;
1300 {
1302 this.UpdateLabel();
1303 return;
1304 }
1305 }
1307 InputField.EditState editState = this.KeyPressed(processingEvent);
1308 if (!this.m_WasCanceled)
1309 {
1310 this.SendOnSubmit();
1311 }
1312 this.DeactivateInputField();
1313 return;
1314 }
1315 }
1316
1317 // Token: 0x060001EC RID: 492 RVA: 0x00006FA4 File Offset: 0x000051A4
1318 private string GetSelectedString()
1319 {
1320 bool hasSelection = this.hasSelection;
1321 int caretPosition = this.m_CaretPosition;
1322 string text;
1323 int stringLength = text._stringLength;
1325 string text2;
1326 int stringLength2 = text2._stringLength;
1327 string text3 = this.m_Text;
1328 string text4;
1329 return text4;
1330 }
1331
1332 // Token: 0x060001ED RID: 493 RVA: 0x00006FE8 File Offset: 0x000051E8
1334 {
1336 string text = this.m_Text;
1337 string text2;
1338 int stringLength = text2._stringLength;
1339 int stringLength2 = text._stringLength;
1340 if (stringLength == 0)
1341 {
1342 }
1344 string text3;
1345 int stringLength3 = text3._stringLength;
1346 int num;
1347 return num;
1348 }
1349
1350 // Token: 0x060001EE RID: 494 RVA: 0x00007034 File Offset: 0x00005234
1351 private void MoveRight(bool shift, bool ctrl)
1352 {
1353 bool hasSelection = this.hasSelection;
1354 int caretPosition = this.m_CaretPosition;
1355 string text;
1356 int stringLength = text._stringLength;
1358 string text2;
1359 int stringLength2 = text2._stringLength;
1361 string text3 = this.m_Text;
1362 int stringLength3 = text3._stringLength;
1364 int stringLength4 = text3._stringLength;
1366 }
1367
1368 // Token: 0x060001EF RID: 495 RVA: 0x00007100 File Offset: 0x00005300
1370 {
1372 string text;
1373 int stringLength = text._stringLength;
1374 string text2 = this.m_Text;
1375 if (stringLength == 0)
1376 {
1377 }
1379 string text3;
1380 int stringLength2 = text3._stringLength;
1381 int num;
1382 return num;
1383 }
1384
1385 // Token: 0x060001F0 RID: 496 RVA: 0x0000713C File Offset: 0x0000533C
1386 private void MoveLeft(bool shift, bool ctrl)
1387 {
1388 bool hasSelection = this.hasSelection;
1389 int caretPosition = this.m_CaretPosition;
1390 string text;
1391 int stringLength = text._stringLength;
1393 string text2;
1394 int stringLength2 = text2._stringLength;
1396 string text3 = this.m_Text;
1397 int stringLength3 = text3._stringLength;
1399 int stringLength4 = text3._stringLength;
1401 }
1402
1403 // Token: 0x060001F1 RID: 497 RVA: 0x00007208 File Offset: 0x00005408
1405 {
1406 /*
1407An exception occurred when decompiling this method (060001F1)
1408
1409ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 UnityEngine.UI.InputField::DetermineCharacterLine(System.Int32,UnityEngine.TextGenerator)
1410
1411 ---> System.Exception: Basic block has to end with unconditional control flow.
1412{
1413 Block_0:
1414 stloc:int32(var_2_0A, callgetter:int32(TextGenerator::get_lineCount, ldloc:TextGenerator(generator)))
1415 stloc:class [mscorlib]System.Collections.Generic.IList`1<valuetype [UnityEngine.TextRenderingModule]UnityEngine.UILineInfo>(var_3_11, callgetter:IList`1[exp:class [mscorlib]System.Collections.Generic.IList`1<valuetype [UnityEngine.TextRenderingModule]UnityEngine.UILineInfo>](TextGenerator::get_lines, ldloc:TextGenerator(generator)))
1416 stloc:int32(var_4_18, callgetter:int32(TextGenerator::get_lineCount, ldloc:TextGenerator(generator)))
1417}
1418
1419 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
1420 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
1421 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
1422 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
1423 --- End of inner exception stack trace ---
1424 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
1425 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
1426*/;
1427 }
1428
1429 // Token: 0x060001F2 RID: 498 RVA: 0x00007230 File Offset: 0x00005430
1431 {
1432 /*
1433An exception occurred when decompiling this method (060001F2)
1434
1435ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 UnityEngine.UI.InputField::LineUpCharacterPosition(System.Int32,System.Boolean)
1436
1437 ---> System.Exception: Basic block has to end with unconditional control flow.
1438{
1439 Block_0:
1440 stloc:class [mscorlib]System.Collections.Generic.IList`1<valuetype [UnityEngine.TextRenderingModule]UnityEngine.UICharInfo>(var_0_0B, callgetter:IList`1[exp:class [mscorlib]System.Collections.Generic.IList`1<valuetype [UnityEngine.TextRenderingModule]UnityEngine.UICharInfo>](TextGenerator::get_characters, callgetter:TextGenerator(InputField::get_cachedInputTextGenerator, ldloc:InputField(this))))
1441 stloc:class [mscorlib]System.Collections.Generic.IList`1<valuetype [UnityEngine.TextRenderingModule]UnityEngine.UICharInfo>(var_1_17, callgetter:IList`1[exp:class [mscorlib]System.Collections.Generic.IList`1<valuetype [UnityEngine.TextRenderingModule]UnityEngine.UICharInfo>](TextGenerator::get_characters, callgetter:TextGenerator(InputField::get_cachedInputTextGenerator, ldloc:InputField(this))))
1442 stloc:TextGenerator(var_3_20, callgetter:TextGenerator(InputField::get_cachedInputTextGenerator, ldloc:InputField(this)))
1443 stloc:class [mscorlib]System.Collections.Generic.IList`1<valuetype [UnityEngine.TextRenderingModule]UnityEngine.UILineInfo>(var_5_2C, callgetter:IList`1[exp:class [mscorlib]System.Collections.Generic.IList`1<valuetype [UnityEngine.TextRenderingModule]UnityEngine.UILineInfo>](TextGenerator::get_lines, callgetter:TextGenerator(InputField::get_cachedInputTextGenerator, ldloc:InputField(this))))
1444 stloc:class [mscorlib]System.Collections.Generic.IList`1<valuetype [UnityEngine.TextRenderingModule]UnityEngine.UILineInfo>(var_6_39, callgetter:IList`1[exp:class [mscorlib]System.Collections.Generic.IList`1<valuetype [UnityEngine.TextRenderingModule]UnityEngine.UILineInfo>](TextGenerator::get_lines, callgetter:TextGenerator(InputField::get_cachedInputTextGenerator, ldloc:InputField(this))))
1445 stloc:class [mscorlib]System.Collections.Generic.IList`1<valuetype [UnityEngine.TextRenderingModule]UnityEngine.UICharInfo>(var_7_46, callgetter:IList`1[exp:class [mscorlib]System.Collections.Generic.IList`1<valuetype [UnityEngine.TextRenderingModule]UnityEngine.UICharInfo>](TextGenerator::get_characters, callgetter:TextGenerator(InputField::get_cachedInputTextGenerator, ldloc:InputField(this))))
1446}
1447
1448 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
1449 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
1450 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
1451 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
1452 --- End of inner exception stack trace ---
1453 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
1454 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
1455*/;
1456 }
1457
1458 // Token: 0x060001F3 RID: 499 RVA: 0x00007284 File Offset: 0x00005484
1460 {
1461 int characterCountVisible = this.cachedInputTextGenerator.characterCountVisible;
1464 int lineCount = this.cachedInputTextGenerator.lineCount;
1465 int num;
1466 int lineEndPosition = InputField.GetLineEndPosition(this.cachedInputTextGenerator, num);
1467 IList<UILineInfo> lines = this.cachedInputTextGenerator.lines;
1468 return this.m_Text._stringLength;
1469 }
1470
1471 // Token: 0x060001F4 RID: 500 RVA: 0x00007300 File Offset: 0x00005500
1472 private void MoveDown(bool shift)
1473 {
1474 this.MoveDown(shift, true);
1475 }
1476
1477 // Token: 0x060001F5 RID: 501 RVA: 0x00007318 File Offset: 0x00005518
1478 private void MoveDown(bool shift, bool goToLastChar)
1479 {
1480 bool hasSelection = this.hasSelection;
1481 int caretPosition = this.m_CaretPosition;
1482 string text;
1483 int stringLength = text._stringLength;
1485 string text2;
1486 int stringLength2 = text2._stringLength;
1488 string text3 = this.m_Text;
1489 int stringLength3 = text3._stringLength;
1491 int stringLength4 = text3._stringLength;
1492 }
1493
1494 // Token: 0x060001F6 RID: 502 RVA: 0x000073E8 File Offset: 0x000055E8
1495 private void MoveUp(bool shift)
1496 {
1497 this.MoveUp(shift, true);
1498 }
1499
1500 // Token: 0x060001F7 RID: 503 RVA: 0x00007400 File Offset: 0x00005600
1501 private void MoveUp(bool shift, bool goToFirstChar)
1502 {
1503 bool hasSelection = this.hasSelection;
1504 int caretPosition = this.m_CaretPosition;
1505 string text;
1506 int stringLength = text._stringLength;
1508 string text2;
1509 int stringLength2 = text2._stringLength;
1511 string text3 = this.m_Text;
1512 int stringLength3 = text3._stringLength;
1514 int stringLength4 = text3._stringLength;
1515 }
1516
1517 // Token: 0x060001F8 RID: 504 RVA: 0x000074DC File Offset: 0x000056DC
1518 private void Delete()
1519 {
1520 if (!this.m_ReadOnly)
1521 {
1522 int caretPosition = this.m_CaretPosition;
1523 int stringLength = this.compositionString._stringLength;
1525 string text;
1526 int stringLength2 = text._stringLength;
1527 }
1528 }
1529
1530 // Token: 0x060001F9 RID: 505 RVA: 0x00007670 File Offset: 0x00005870
1531 private void ForwardSpace()
1532 {
1533 if (this.m_ReadOnly)
1534 {
1535 return;
1536 }
1537 bool hasSelection = this.hasSelection;
1538 this.Delete();
1539 }
1540
1541 // Token: 0x060001FA RID: 506 RVA: 0x000076E4 File Offset: 0x000058E4
1542 private void Backspace()
1543 {
1544 if (this.m_ReadOnly)
1545 {
1546 return;
1547 }
1548 bool hasSelection = this.hasSelection;
1549 this.Delete();
1551 this.SendOnValueChanged();
1552 this.UpdateLabel();
1553 }
1554
1555 // Token: 0x060001FB RID: 507 RVA: 0x000077A4 File Offset: 0x000059A4
1556 private void Insert(char c)
1557 {
1558 if (!this.m_ReadOnly)
1559 {
1560 this.Delete();
1562 string text = this.m_Text;
1563 int stringLength = text._stringLength;
1564 int caretPosition = this.m_CaretPosition;
1565 string text3;
1566 string text2 = text.Insert(caretPosition, text3);
1568 this.m_Text = text2;
1569 string text4;
1570 int stringLength2 = text4._stringLength;
1571 int stringLength3 = text3._stringLength;
1573 string text5 = this.m_Text;
1574 int stringLength4 = text5._stringLength;
1575 int stringLength5 = text5._stringLength;
1577 return;
1578 }
1579 }
1580
1581 // Token: 0x060001FC RID: 508 RVA: 0x00007844 File Offset: 0x00005A44
1583 {
1584 if (this.m_Keyboard != null)
1585 {
1586 bool isSupported = TouchScreenKeyboard.isSupported;
1588 {
1590 string text = this.m_Text;
1592 return;
1593 }
1594 }
1595 }
1596
1597 // Token: 0x060001FD RID: 509 RVA: 0x00007880 File Offset: 0x00005A80
1599 {
1600 this.SendOnValueChanged();
1601 this.UpdateLabel();
1602 }
1603
1604 // Token: 0x060001FE RID: 510 RVA: 0x0000789C File Offset: 0x00005A9C
1605 private void SendOnValueChanged()
1606 {
1607 UISystemProfilerApi.AddMarker("InputField.value", this);
1608 if (this.m_OnValueChanged != null)
1609 {
1610 string text = this.m_Text;
1611 return;
1612 }
1613 }
1614
1615 // Token: 0x060001FF RID: 511 RVA: 0x000078C4 File Offset: 0x00005AC4
1616 protected void SendOnEndEdit()
1617 {
1618 UISystemProfilerApi.AddMarker("InputField.onEndEdit", this);
1619 if (this.m_OnDidEndEdit != null)
1620 {
1621 string text = this.m_Text;
1622 return;
1623 }
1624 }
1625
1626 // Token: 0x06000200 RID: 512 RVA: 0x000078EC File Offset: 0x00005AEC
1627 protected void SendOnSubmit()
1628 {
1629 UISystemProfilerApi.AddMarker("InputField.onSubmit", this);
1630 if (this.m_OnSubmit != null)
1631 {
1632 string text = this.m_Text;
1633 return;
1634 }
1635 }
1636
1637 // Token: 0x06000201 RID: 513 RVA: 0x00007914 File Offset: 0x00005B14
1638 protected virtual void Append(string input)
1639 {
1640 if (!this.m_ReadOnly)
1641 {
1642 bool isSupported = TouchScreenKeyboard.isSupported;
1644 {
1645 int stringLength = input._stringLength;
1646 long num = 0L;
1647 char c = input[(int)num];
1648 }
1649 }
1650 }
1651
1652 // Token: 0x06000202 RID: 514 RVA: 0x0000794C File Offset: 0x00005B4C
1653 protected virtual void Append(char input)
1654 {
1655 if (!true)
1656 {
1657 }
1658 bool flag = char.IsSurrogate(input);
1659 if (!this.m_ReadOnly)
1660 {
1661 string text = this.m_Text;
1662 int num = 16381;
1663 int stringLength = text._stringLength;
1664 bool isSupported = TouchScreenKeyboard.isSupported;
1666 {
1667 string text2;
1668 int stringLength2 = text2._stringLength;
1669 int caretPosition = this.m_CaretPosition;
1670 string text3;
1671 int stringLength3 = text3._stringLength;
1672 if (num == 0)
1673 {
1674 }
1675 int num2 = Math.Min(1073741824, 0);
1676 string text4 = this.m_Text;
1678 string text5;
1679 int stringLength4 = text5._stringLength;
1681 string text6;
1682 int stringLength5 = text6._stringLength;
1684 string text7;
1685 int stringLength6 = text7._stringLength;
1687 string text8;
1688 int stringLength7 = text8._stringLength;
1689 string text9 = this.m_Text;
1691 string text10;
1692 int stringLength8 = text10._stringLength;
1693 string text11 = this.m_Text;
1695 string text12 = this.m_Text;
1696 string text13;
1697 int stringLength9 = text13._stringLength;
1699 return;
1700 }
1701 }
1702 }
1703
1704 // Token: 0x06000203 RID: 515 RVA: 0x00007AF0 File Offset: 0x00005CF0
1705 protected void UpdateLabel()
1706 {
1707 int num = 1;
1709 if (num == 0)
1710 {
1711 }
1712 Font font = this.m_TextComponent.font;
1713 if (!this.m_PreventFontCallback)
1714 {
1715 int num2 = 1;
1716 this.m_PreventFontCallback = num2 != 0;
1717 if (num2 == 0)
1718 {
1719 }
1723 bool flag = gameObject == currentSelected;
1724 string text;
1725 int stringLength = text._stringLength;
1726 string text2 = this.m_Text;
1727 int caretPosition = this.m_CaretPosition;
1728 int num3 = 1;
1729 long num4 = 0L;
1730 this.m_IsCompositionActive = num3 != 0;
1731 string text3 = text2.Substring((int)num4, caretPosition);
1732 string text4 = this.m_Text;
1734 string text5 = text4.Substring(caretPosition2);
1735 string text7;
1736 string text6 = text3 + text7 + text5;
1737 return;
1738 }
1739 }
1740
1741 // Token: 0x06000204 RID: 516 RVA: 0x00007C90 File Offset: 0x00005E90
1742 private bool IsSelectionVisible()
1743 {
1744 /*
1745An exception occurred when decompiling this method (06000204)
1746
1747ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean UnityEngine.UI.InputField::IsSelectionVisible()
1748
1749 ---> System.Exception: Basic block has to end with unconditional control flow.
1750{
1751 Block_0:
1752 stloc:int32(var_0_06, ldfld:int32(InputField::m_DrawStart, ldloc:InputField(this)))
1753 stloc:int32(var_1_0D, ldfld:int32(InputField::m_CaretPosition, ldloc:InputField(this)))
1754 stloc:int32(var_2_19, ldfld:int32(string::_stringLength, callgetter:string(InputField::get_compositionString, ldloc:InputField(this))))
1755 stloc:int32(var_3_20, ldfld:int32(InputField::m_DrawStart, ldloc:InputField(this)))
1756 stloc:int32(var_4_27, ldfld:int32(InputField::m_CaretSelectPosition, ldloc:InputField(this)))
1757 stloc:int32(var_6_30, ldfld:int32(string::_stringLength, ldloc:string(var_5)))
1758 stloc:int32(var_7_38, ldfld:int32(InputField::m_DrawEnd, ldloc:InputField(this)))
1759 stloc:int32(var_8_40, ldfld:int32(InputField::m_CaretPosition, ldloc:InputField(this)))
1760 stloc:int32(var_10_49, ldfld:int32(string::_stringLength, ldloc:string(var_9)))
1761 stloc:int32(var_12_54, ldfld:int32(InputField::m_DrawEnd, ldloc:InputField(this)))
1762 stloc:int32(var_13_5C, ldfld:int32(InputField::m_CaretSelectPosition, ldloc:InputField(this)))
1763 stloc:int32(var_15_65, ldfld:int32(string::_stringLength, ldloc:string(var_14)))
1764}
1765
1766 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
1767 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
1768 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
1769 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
1770 --- End of inner exception stack trace ---
1771 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
1772 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
1773*/;
1774 }
1775
1776 // Token: 0x06000205 RID: 517 RVA: 0x00002207 File Offset: 0x00000407
1777 private static int GetLineStartPosition(TextGenerator gen, int line)
1778 {
1779 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1780 }
1781
1782 // Token: 0x06000206 RID: 518 RVA: 0x00007D04 File Offset: 0x00005F04
1783 private static int GetLineEndPosition(TextGenerator gen, int line)
1784 {
1785 int num;
1786 return num;
1787 }
1788
1789 // Token: 0x06000207 RID: 519 RVA: 0x00007D1C File Offset: 0x00005F1C
1803
1804 // Token: 0x06000208 RID: 520 RVA: 0x00007EAC File Offset: 0x000060AC
1805 public void ForceLabelUpdate()
1806 {
1807 this.UpdateLabel();
1808 }
1809
1810 // Token: 0x06000209 RID: 521 RVA: 0x00007EC0 File Offset: 0x000060C0
1811 private void MarkGeometryAsDirty()
1812 {
1813 if (!true)
1814 {
1815 }
1817 }
1818
1819 // Token: 0x0600020A RID: 522 RVA: 0x00007ED8 File Offset: 0x000060D8
1820 public virtual void Rebuild(CanvasUpdate update)
1821 {
1822 this.UpdateGeometry();
1823 }
1824
1825 // Token: 0x0600020B RID: 523 RVA: 0x00007EEC File Offset: 0x000060EC
1826 public virtual void LayoutComplete()
1827 {
1828 }
1829
1830 // Token: 0x0600020C RID: 524 RVA: 0x00007EFC File Offset: 0x000060FC
1831 public virtual void GraphicUpdateComplete()
1832 {
1833 }
1834
1835 // Token: 0x0600020D RID: 525 RVA: 0x00007F0C File Offset: 0x0000610C
1836 private void UpdateGeometry()
1837 {
1838 bool isSupported = TouchScreenKeyboard.isSupported;
1839 bool hideMobileInput;
1841 {
1844 if (!hideMobileInput)
1845 {
1846 return;
1847 }
1848 }
1850 if (!hideMobileInput)
1851 {
1852 }
1854 if (!hideMobileInput)
1855 {
1856 }
1857 string text = base.transform.name + " Input Caret";
1858 if (2304 == 0)
1859 {
1860 }
1861 Type type;
1862 Type type2;
1863 if ((type != null && type == null) || (type2 != null && type2 == null))
1864 {
1865 throw new ArrayTypeMismatchException();
1866 }
1870 transform.SetParent(parent);
1873 int layer = base.gameObject.layer;
1874 RectTransform rectTransform;
1875 this.caretRectTrans = rectTransform;
1876 CanvasRenderer canvasRenderer;
1877 this.m_CachedInputRenderer = canvasRenderer;
1879 if (textComponent2 == null)
1880 {
1881 }
1882 Material defaultGraphicMaterial = Graphic.defaultGraphicMaterial;
1883 Texture2D whiteTexture = Texture2D.whiteTexture;
1886 }
1887
1888 // Token: 0x0600020E RID: 526 RVA: 0x00008030 File Offset: 0x00006230
1890 {
1892 if (!true)
1893 {
1894 }
1895 RectTransform rectTransform = this.caretRectTrans;
1896 if (!true)
1897 {
1898 }
1899 Vector3 localPosition = this.caretRectTrans.localPosition;
1901 Vector3 localPosition2 = rectTransform2.localPosition;
1902 Quaternion localRotation = this.caretRectTrans.localRotation;
1904 Vector3 localScale = this.caretRectTrans.localScale;
1906 Vector2 anchorMin = this.caretRectTrans.anchorMin;
1908 Vector2 anchorMax = this.caretRectTrans.anchorMax;
1910 Vector2 anchoredPosition = this.caretRectTrans.anchoredPosition;
1912 Vector2 sizeDelta = this.caretRectTrans.sizeDelta;
1914 Vector2 pivot = this.caretRectTrans.pivot;
1918 Vector3 localPosition3 = textComponent2.rectTransform.localPosition;
1921 Quaternion localRotation3 = textComponent3.rectTransform.localRotation;
1922 long num = 0L;
1926 Vector3 localScale3 = textComponent4.rectTransform.localScale;
1929 Vector2 anchorMin3 = textComponent5.rectTransform.anchorMin;
1932 Vector2 anchorMax3 = textComponent6.rectTransform.anchorMax;
1935 Vector2 anchoredPosition3 = textComponent7.rectTransform.anchoredPosition;
1938 Vector2 sizeDelta3 = textComponent8.rectTransform.sizeDelta;
1941 Vector2 pivot3 = textComponent9.rectTransform.pivot;
1942 }
1943
1944 // Token: 0x0600020F RID: 527 RVA: 0x00008240 File Offset: 0x00006440
1945 private void OnFillVBO(Mesh vbo)
1946 {
1947 if (this.m_AllowInput)
1948 {
1950 bool hasSelection = this.hasSelection;
1951 return;
1952 }
1953 }
1954
1955 // Token: 0x06000210 RID: 528 RVA: 0x0000828C File Offset: 0x0000648C
1957 {
1958 if (this.m_CaretVisible)
1959 {
1960 if (this.m_CursorVerts == null)
1961 {
1962 this.CreateCursorVerts();
1963 }
1964 int caretWidth = this.m_CaretWidth;
1965 int caretPosition = this.m_CaretPosition;
1966 int stringLength = this.compositionString._stringLength;
1968 int drawStart = this.m_DrawStart;
1969 TextGenerator cachedTextGenerator = textComponent.cachedTextGenerator;
1970 if (cachedTextGenerator != null && cachedTextGenerator.lineCount != 0)
1971 {
1972 IList<UICharInfo> characters = cachedTextGenerator.characters;
1973 return;
1974 }
1975 }
1976 }
1977
1978 // Token: 0x06000211 RID: 529 RVA: 0x00008468 File Offset: 0x00006668
1979 private void CreateCursorVerts()
1980 {
1981 if (!true)
1982 {
1983 }
1986 }
1987
1988 // Token: 0x06000212 RID: 530 RVA: 0x00008490 File Offset: 0x00006690
1990 {
1991 int caretPosition = this.m_CaretPosition;
1992 string text;
1993 int stringLength = text._stringLength;
1994 int drawStart = this.m_DrawStart;
1996 string text2;
1997 int stringLength2 = text2._stringLength;
1998 int drawStart2 = this.m_DrawStart;
1999 TextGenerator cachedTextGenerator = this.m_TextComponent.cachedTextGenerator;
2000 int lineCount = cachedTextGenerator.lineCount;
2001 if (drawStart2 == 0)
2002 {
2003 }
2004 int num;
2005 int lineEndPosition = InputField.GetLineEndPosition(cachedTextGenerator, num);
2006 if (drawStart2 == 0)
2007 {
2008 }
2009 float r = this.m_SelectionColor.r;
2010 float g = this.m_SelectionColor.g;
2011 float b = this.m_SelectionColor.b;
2012 float a = this.m_SelectionColor.a;
2013 }
2014
2015 // Token: 0x06000213 RID: 531 RVA: 0x0000860C File Offset: 0x0000680C
2016 protected char Validate(string text, int pos, char ch)
2017 {
2019 {
2020 }
2021 bool enabled = base.enabled;
2023 if (pos != 0)
2024 {
2026 {
2027 }
2028 bool flag = char.IsLetter(ch);
2030 {
2031 }
2032 bool flag2 = char.IsLower(ch);
2033 if (pos != 0)
2034 {
2035 }
2037 {
2038 }
2039 return char.ToUpper(ch);
2040 }
2041 int stringLength = text._stringLength;
2042 long num = 0L;
2043 char c = text[(int)num];
2044 int stringLength2 = text._stringLength;
2045 long num2 = 0L;
2046 char c2 = text[(int)num2];
2047 int caretPosition = this.m_CaretPosition;
2048 string text2;
2049 int stringLength3 = text2._stringLength;
2051 string text3;
2052 int stringLength4 = text3._stringLength;
2053 bool flag3 = text.Contains("'");
2054 int num3;
2055 char c3 = text[num3];
2056 char c4 = text[num3];
2057 char c5 = text[num3];
2058 int stringLength5 = text._stringLength;
2059 char c6 = text[pos];
2060 char c7 = text[pos];
2061 return text[pos];
2062 }
2063
2064 // Token: 0x06000214 RID: 532 RVA: 0x000087DC File Offset: 0x000069DC
2066 {
2068 if (!true)
2069 {
2070 }
2071 Font font = this.m_TextComponent.font;
2072 if (this.m_AllowInput)
2073 {
2075 if (keyboard != null)
2076 {
2077 bool active = keyboard.active;
2080 string text = this.m_Text;
2082 }
2083 }
2085 }
2086
2087 // Token: 0x06000215 RID: 533 RVA: 0x00008848 File Offset: 0x00006A48
2089 {
2090 if (!true)
2091 {
2092 }
2094 }
2095
2096 // Token: 0x06000216 RID: 534 RVA: 0x00008984 File Offset: 0x00006B84
2097 public override void OnSelect(BaseEventData eventData)
2098 {
2099 base.OnSelect(eventData);
2100 this.ActivateInputField();
2101 }
2102
2103 // Token: 0x06000217 RID: 535 RVA: 0x000089A0 File Offset: 0x00006BA0
2104 public virtual void OnPointerClick(PointerEventData eventData)
2105 {
2106 if (eventData.<button>k__BackingField != PointerEventData.InputButton.Left)
2107 {
2108 return;
2109 }
2110 this.ActivateInputField();
2111 }
2112
2113 // Token: 0x06000218 RID: 536 RVA: 0x000089BC File Offset: 0x00006BBC
2115 {
2116 bool allowInput = this.m_AllowInput;
2117 if (allowInput)
2118 {
2120 if (!allowInput)
2121 {
2122 }
2123 string text = this.m_Text;
2125 long num = 0L;
2126 bool flag = string.IsNullOrEmpty(text);
2127 placeholder2.enabled = num != 0L;
2129 if (!allowInput)
2130 {
2131 }
2132 if (this.m_WasCanceled)
2133 {
2134 string originalText = this.m_OriginalText;
2135 this.SetText(originalText, true);
2136 }
2137 this.SendOnEndEdit();
2139 if (keyboard != null)
2140 {
2141 long num2 = 0L;
2142 keyboard.active = num2 != 0L;
2143 }
2144 this.MarkGeometryAsDirty();
2145 return;
2146 }
2147 }
2148
2149 // Token: 0x06000219 RID: 537 RVA: 0x00008A4C File Offset: 0x00006C4C
2150 public override void OnDeselect(BaseEventData eventData)
2151 {
2152 this.DeactivateInputField();
2153 base.OnDeselect(eventData);
2154 }
2155
2156 // Token: 0x0600021A RID: 538 RVA: 0x00008A68 File Offset: 0x00006C68
2157 public virtual void OnSubmit(BaseEventData eventData)
2158 {
2159 if (!this.m_AllowInput)
2160 {
2162 }
2163 }
2164
2165 // Token: 0x0600021B RID: 539 RVA: 0x00008A84 File Offset: 0x00006C84
2166 private void EnforceContentType()
2167 {
2169 }
2170
2171 // Token: 0x0600021C RID: 540 RVA: 0x00008AC0 File Offset: 0x00006CC0
2173 {
2174 int num = 1;
2176 if (num == 0)
2177 {
2178 }
2181 }
2182
2183 // Token: 0x0600021D RID: 541 RVA: 0x00008AEC File Offset: 0x00006CEC
2188
2189 // Token: 0x0600021E RID: 542 RVA: 0x00008B04 File Offset: 0x00006D04
2190 private void SetToCustom()
2191 {
2193 }
2194
2195 // Token: 0x0600021F RID: 543 RVA: 0x00008B24 File Offset: 0x00006D24
2197 {
2198 if (this.m_HasDoneFocusTransition)
2199 {
2200 return;
2201 }
2203 base.DoStateTransition(Selectable.SelectionState.Selected, instant);
2204 }
2205
2206 // Token: 0x06000220 RID: 544 RVA: 0x00008B4C File Offset: 0x00006D4C
2208 {
2209 }
2210
2211 // Token: 0x06000221 RID: 545 RVA: 0x00008B5C File Offset: 0x00006D5C
2212 public virtual void CalculateLayoutInputVertical()
2213 {
2214 }
2215
2216 // Token: 0x1700008D RID: 141
2217 // (get) Token: 0x06000222 RID: 546 RVA: 0x00002207 File Offset: 0x00000407
2218 public virtual float minWidth
2219 {
2220 get
2221 {
2222 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
2223 }
2224 }
2225
2226 // Token: 0x1700008E RID: 142
2227 // (get) Token: 0x06000223 RID: 547 RVA: 0x00008B6C File Offset: 0x00006D6C
2228 public virtual float preferredWidth
2229 {
2230 get
2231 {
2232 /*
2233An exception occurred when decompiling this method (06000223)
2234
2235ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single UnityEngine.UI.InputField::get_preferredWidth()
2236
2237 ---> System.Exception: Basic block has to end with unconditional control flow.
2238{
2239 IL_000A:
2240 stloc:Text(var_2_10, ldfld:Text(InputField::m_TextComponent, ldloc:InputField(this)))
2241 stloc:TextGenerator(var_4_1C, callgetter:TextGenerator(Text::get_cachedTextGeneratorForLayout, ldfld:Text(InputField::m_TextComponent, ldloc:InputField(this))))
2242 stloc:string(var_5_24, ldfld:string(InputField::m_Text, ldloc:InputField(this)))
2243 stloc:float32(var_7_31, callgetter:float32(Text::get_pixelsPerUnit, ldfld:Text(InputField::m_TextComponent, ldloc:InputField(this))))
2244}
2245
2246 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
2247 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
2248 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
2249 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
2250 --- End of inner exception stack trace ---
2251 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
2252 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
2253*/;
2254 }
2255 }
2256
2257 // Token: 0x1700008F RID: 143
2258 // (get) Token: 0x06000224 RID: 548 RVA: 0x00002207 File Offset: 0x00000407
2259 public virtual float flexibleWidth
2260 {
2261 get
2262 {
2263 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
2264 }
2265 }
2266
2267 // Token: 0x17000090 RID: 144
2268 // (get) Token: 0x06000225 RID: 549 RVA: 0x00002207 File Offset: 0x00000407
2269 public virtual float minHeight
2270 {
2271 get
2272 {
2273 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
2274 }
2275 }
2276
2277 // Token: 0x17000091 RID: 145
2278 // (get) Token: 0x06000226 RID: 550 RVA: 0x00008BAC File Offset: 0x00006DAC
2279 public virtual float preferredHeight
2280 {
2281 get
2282 {
2283 /*
2284An exception occurred when decompiling this method (06000226)
2285
2286ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single UnityEngine.UI.InputField::get_preferredHeight()
2287
2288 ---> System.Exception: Basic block has to end with unconditional control flow.
2289{
2290 IL_000A:
2291 stloc:Vector2(var_2_1F, callgetter:Vector2(Rect::get_size, callgetter:Rect[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Rect&](RectTransform::get_rect, callgetter:RectTransform(Graphic::get_rectTransform, ldfld:Text[exp:Graphic](InputField::m_TextComponent, ldloc:InputField(this))))))
2292 stloc:TextGenerator(var_4_2B, callgetter:TextGenerator(Text::get_cachedTextGeneratorForLayout, ldfld:Text(InputField::m_TextComponent, ldloc:InputField(this))))
2293 stloc:string(var_5_33, ldfld:string(InputField::m_Text, ldloc:InputField(this)))
2294 stloc:float32(var_7_40, callgetter:float32(Text::get_pixelsPerUnit, ldfld:Text(InputField::m_TextComponent, ldloc:InputField(this))))
2295}
2296
2297 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
2298 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
2299 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
2300 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
2301 --- End of inner exception stack trace ---
2302 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
2303 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
2304*/;
2305 }
2306 }
2307
2308 // Token: 0x17000092 RID: 146
2309 // (get) Token: 0x06000227 RID: 551 RVA: 0x00002207 File Offset: 0x00000407
2310 public virtual float flexibleHeight
2311 {
2312 get
2313 {
2314 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
2315 }
2316 }
2317
2318 // Token: 0x17000093 RID: 147
2319 // (get) Token: 0x06000228 RID: 552 RVA: 0x00008BFC File Offset: 0x00006DFC
2320 public virtual int layoutPriority
2321 {
2322 get
2323 {
2324 return 1;
2325 }
2326 }
2327
2328 // Token: 0x06000229 RID: 553 RVA: 0x00008C0C File Offset: 0x00006E0C
2329 // Note: this type is marked as 'beforefieldinit'.
2330 static InputField()
2331 {
2332 }
2333
2334 // Token: 0x0600022A RID: 554 RVA: 0x00008C1C File Offset: 0x00006E1C
2336 {
2337 return base.transform;
2338 }
2339
2340 // Token: 0x040000C6 RID: 198
2342
2343 // Token: 0x040000C7 RID: 199
2344 private static readonly char[] kSeparators;
2345
2346 // Token: 0x040000C8 RID: 200
2347 private static bool s_IsQuestDeviceEvaluated;
2348
2349 // Token: 0x040000C9 RID: 201
2350 private static bool s_IsQuestDevice;
2351
2352 // Token: 0x040000CA RID: 202
2353 [FormerlySerializedAs("text")]
2356
2357 // Token: 0x040000CB RID: 203
2360
2361 // Token: 0x040000CC RID: 204
2364
2365 // Token: 0x040000CD RID: 205
2367 [FormerlySerializedAs("inputType")]
2369
2370 // Token: 0x040000CE RID: 206
2371 [FormerlySerializedAs("asteriskChar")]
2373 private char m_AsteriskChar;
2374
2375 // Token: 0x040000CF RID: 207
2376 [FormerlySerializedAs("keyboardType")]
2379
2380 // Token: 0x040000D0 RID: 208
2383
2384 // Token: 0x040000D1 RID: 209
2385 [FormerlySerializedAs("hideMobileInput")]
2387 private bool m_HideMobileInput;
2388
2389 // Token: 0x040000D2 RID: 210
2390 [FormerlySerializedAs("validation")]
2393
2394 // Token: 0x040000D3 RID: 211
2396 [FormerlySerializedAs("characterLimit")]
2397 private int m_CharacterLimit;
2398
2399 // Token: 0x040000D4 RID: 212
2400 [FormerlySerializedAs("m_EndEdit")]
2401 [FormerlySerializedAs("m_OnSubmit")]
2402 [FormerlySerializedAs("onSubmit")]
2404 [FormerlySerializedAs("m_OnEndEdit")]
2406
2407 // Token: 0x040000D5 RID: 213
2410
2411 // Token: 0x040000D6 RID: 214
2413 [FormerlySerializedAs("m_OnValueChange")]
2414 [FormerlySerializedAs("onValueChange")]
2416
2417 // Token: 0x040000D7 RID: 215
2419 [FormerlySerializedAs("onValidateInput")]
2421
2422 // Token: 0x040000D8 RID: 216
2423 [FormerlySerializedAs("selectionColor")]
2426
2427 // Token: 0x040000D9 RID: 217
2430
2431 // Token: 0x040000DA RID: 218
2434
2435 // Token: 0x040000DB RID: 219
2437 [Multiline]
2438 [FormerlySerializedAs("mValue")]
2439 protected string m_Text;
2440
2441 // Token: 0x040000DC RID: 220
2443 [Range(0f, 4f)]
2444 private float m_CaretBlinkRate;
2445
2446 // Token: 0x040000DD RID: 221
2448 [Range(1f, 5f)]
2449 private int m_CaretWidth;
2450
2451 // Token: 0x040000DE RID: 222
2453 private bool m_ReadOnly;
2454
2455 // Token: 0x040000DF RID: 223
2458
2459 // Token: 0x040000E0 RID: 224
2460 protected int m_CaretPosition;
2461
2462 // Token: 0x040000E1 RID: 225
2464
2465 // Token: 0x040000E2 RID: 226
2467
2468 // Token: 0x040000E3 RID: 227
2470
2471 // Token: 0x040000E4 RID: 228
2473
2474 // Token: 0x040000E5 RID: 229
2476
2477 // Token: 0x040000E6 RID: 230
2479
2480 // Token: 0x040000E7 RID: 231
2482 protected Mesh m_Mesh;
2483
2484 // Token: 0x040000E8 RID: 232
2485 private bool m_AllowInput;
2486
2487 // Token: 0x040000E9 RID: 233
2489
2490 // Token: 0x040000EA RID: 234
2491 private bool m_UpdateDrag;
2492
2493 // Token: 0x040000EB RID: 235
2495
2496 // Token: 0x040000EC RID: 236
2497 private const float kHScrollSpeed = 0.05f;
2498
2499 // Token: 0x040000ED RID: 237
2500 private const float kVScrollSpeed = 0.1f;
2501
2502 // Token: 0x040000EE RID: 238
2503 protected bool m_CaretVisible;
2504
2505 // Token: 0x040000EF RID: 239
2507
2508 // Token: 0x040000F0 RID: 240
2509 private float m_BlinkStartTime;
2510
2511 // Token: 0x040000F1 RID: 241
2512 protected int m_DrawStart;
2513
2514 // Token: 0x040000F2 RID: 242
2515 protected int m_DrawEnd;
2516
2517 // Token: 0x040000F3 RID: 243
2519
2520 // Token: 0x040000F4 RID: 244
2521 private string m_OriginalText;
2522
2523 // Token: 0x040000F5 RID: 245
2524 private bool m_WasCanceled;
2525
2526 // Token: 0x040000F6 RID: 246
2528
2529 // Token: 0x040000F7 RID: 247
2531
2532 // Token: 0x040000F8 RID: 248
2534
2535 // Token: 0x040000F9 RID: 249
2537
2538 // Token: 0x040000FA RID: 250
2539 private const string kEmailSpecialCharacters = "!#$%&'*+-/=?^_`{|}~";
2540
2541 // Token: 0x040000FB RID: 251
2542 private const string kOculusQuestDeviceModel = "Oculus Quest";
2543
2544 // Token: 0x040000FC RID: 252
2546
2547 // Token: 0x040000FD RID: 253
2548 private const int k_MaxTextLength = 16382;
2549
2550 // Token: 0x0200002D RID: 45
2551 public enum ContentType
2552 {
2553 // Token: 0x040000FF RID: 255
2554 Standard,
2555 // Token: 0x04000100 RID: 256
2557 // Token: 0x04000101 RID: 257
2559 // Token: 0x04000102 RID: 258
2561 // Token: 0x04000103 RID: 259
2563 // Token: 0x04000104 RID: 260
2564 Name,
2565 // Token: 0x04000105 RID: 261
2567 // Token: 0x04000106 RID: 262
2568 Password,
2569 // Token: 0x04000107 RID: 263
2570 Pin,
2571 // Token: 0x04000108 RID: 264
2572 Custom
2573 }
2574
2575 // Token: 0x0200002E RID: 46
2576 public enum InputType
2577 {
2578 // Token: 0x0400010A RID: 266
2579 Standard,
2580 // Token: 0x0400010B RID: 267
2582 // Token: 0x0400010C RID: 268
2583 Password
2584 }
2585
2586 // Token: 0x0200002F RID: 47
2588 {
2589 // Token: 0x0400010E RID: 270
2590 None,
2591 // Token: 0x0400010F RID: 271
2592 Integer,
2593 // Token: 0x04000110 RID: 272
2594 Decimal,
2595 // Token: 0x04000111 RID: 273
2597 // Token: 0x04000112 RID: 274
2598 Name,
2599 // Token: 0x04000113 RID: 275
2601 }
2602
2603 // Token: 0x02000030 RID: 48
2604 public enum LineType
2605 {
2606 // Token: 0x04000115 RID: 277
2607 SingleLine,
2608 // Token: 0x04000116 RID: 278
2610 // Token: 0x04000117 RID: 279
2612 }
2613
2614 // Token: 0x02000031 RID: 49
2616 {
2617 // Token: 0x0600022B RID: 555 RVA: 0x00008C30 File Offset: 0x00006E30
2618 public OnValidateInput(object @object, IntPtr method)
2619 {
2621 this.m_target = @object;
2623 this.method_code = this;
2624 }
2625
2626 // Token: 0x0600022C RID: 556 RVA: 0x00008C84 File Offset: 0x00006E84
2627 public char Invoke(string text, int charIndex, char addedChar)
2628 {
2629 /*
2630An exception occurred when decompiling this method (0600022C)
2631
2632ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Char UnityEngine.UI.InputField/OnValidateInput::Invoke(System.String,System.Int32,System.Char)
2633
2634 ---> System.Exception: Basic block has to end with unconditional control flow.
2635{
2636 Block_0:
2637 stloc:native int(var_0_06, ldfld:native int(Delegate::method_code, ldloc:OnValidateInput[exp:Delegate](this)))
2638 stloc:native int(var_1_0D, ldfld:native int(Delegate::invoke_impl, ldloc:OnValidateInput[exp:Delegate](this)))
2639 stloc:native int(var_2_14, ldfld:native int(Delegate::method, ldloc:OnValidateInput[exp:Delegate](this)))
2640}
2641
2642 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
2643 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
2644 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
2645 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
2646 --- End of inner exception stack trace ---
2647 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
2648 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
2649*/;
2650 }
2651
2652 // Token: 0x0600022D RID: 557 RVA: 0x00002207 File Offset: 0x00000407
2653 public IAsyncResult BeginInvoke(string text, int charIndex, char addedChar, AsyncCallback callback, object @object)
2654 {
2655 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
2656 }
2657
2658 // Token: 0x0600022E RID: 558 RVA: 0x00002207 File Offset: 0x00000407
2659 public char EndInvoke(IAsyncResult result)
2660 {
2661 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
2662 }
2663 }
2664
2665 // Token: 0x02000032 RID: 50
2666 [Serializable]
2667 public class SubmitEvent : UnityEvent<string>
2668 {
2669 // Token: 0x0600022F RID: 559 RVA: 0x00008CA8 File Offset: 0x00006EA8
2671 {
2672 }
2673 }
2674
2675 // Token: 0x02000033 RID: 51
2676 [Serializable]
2677 public class EndEditEvent : UnityEvent<string>
2678 {
2679 // Token: 0x06000230 RID: 560 RVA: 0x00008CB8 File Offset: 0x00006EB8
2681 {
2682 }
2683 }
2684
2685 // Token: 0x02000034 RID: 52
2686 [Serializable]
2687 public class OnChangeEvent : UnityEvent<string>
2688 {
2689 // Token: 0x06000231 RID: 561 RVA: 0x00008CC8 File Offset: 0x00006EC8
2691 {
2692 }
2693 }
2694
2695 // Token: 0x02000035 RID: 53
2696 protected enum EditState
2697 {
2698 // Token: 0x04000119 RID: 281
2699 Continue,
2700 // Token: 0x0400011A RID: 282
2701 Finish
2702 }
2703
2704 // Token: 0x02000036 RID: 54
2706 private sealed class <CaretBlink>d__172 : IEnumerator<object>, IEnumerator, IDisposable
2707 {
2708 // Token: 0x06000232 RID: 562 RVA: 0x00008CD8 File Offset: 0x00006ED8
2711 {
2712 this.<>1__state = <>1__state;
2713 }
2714
2715 // Token: 0x06000233 RID: 563 RVA: 0x00008CF4 File Offset: 0x00006EF4
2717 void IDisposable.Dispose()
2718 {
2719 }
2720
2721 // Token: 0x06000234 RID: 564 RVA: 0x00008D04 File Offset: 0x00006F04
2722 private bool MoveNext()
2723 {
2724 /*
2725An exception occurred when decompiling this method (06000234)
2726
2727ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean UnityEngine.UI.InputField/<CaretBlink>d__172::MoveNext()
2728
2729 ---> System.Exception: Basic block has to end with unconditional control flow.
2730{
2731 IL_003F:
2732 stloc:float32(var_8_4A, callgetter:float32(Time::get_unscaledTime))
2733 stloc:float32(var_9_52, ldfld:float32(InputField::m_BlinkStartTime, ldloc:InputField(var_1_0D)))
2734 stloc:bool(var_10_5A, ldfld:bool(InputField::m_CaretVisible, ldloc:InputField(var_1_0D)))
2735 stfld:bool(InputField::m_CaretVisible, ldloc:InputField(var_1_0D), ldloc:bool(var_10_5A))
2736 stloc:bool(var_11_6A, callgetter:bool(InputField::get_hasSelection, ldloc:InputField(var_1_0D)))
2737 stloc:int32(var_12_6D, ldc.i4:int32(2))
2738 stfld:int32('<CaretBlink>d__172'::<>1__state, ldloc:'<CaretBlink>d__172'(this), ldloc:int32(var_12_6D))
2739}
2740
2741 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
2742 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
2743 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
2744 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
2745 --- End of inner exception stack trace ---
2746 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
2747 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
2748*/;
2749 }
2750
2751 // Token: 0x17000094 RID: 148
2752 // (get) Token: 0x06000235 RID: 565 RVA: 0x00008D8C File Offset: 0x00006F8C
2754 {
2756 get
2757 {
2758 return this.<>2__current;
2759 }
2760 }
2761
2762 // Token: 0x06000236 RID: 566 RVA: 0x00002207 File Offset: 0x00000407
2764 void IEnumerator.Reset()
2765 {
2766 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
2767 }
2768
2769 // Token: 0x17000095 RID: 149
2770 // (get) Token: 0x06000237 RID: 567 RVA: 0x00008DA0 File Offset: 0x00006FA0
2771 object IEnumerator.Current
2772 {
2774 get
2775 {
2776 return this.<>2__current;
2777 }
2778 }
2779
2780 // Token: 0x0400011B RID: 283
2781 private int <>1__state;
2782
2783 // Token: 0x0400011C RID: 284
2784 private object <>2__current;
2785
2786 // Token: 0x0400011D RID: 285
2787 public InputField <>4__this;
2788 }
2789
2790 // Token: 0x02000037 RID: 55
2792 private sealed class <MouseDragOutsideRect>d__194 : IEnumerator<object>, IEnumerator, IDisposable
2793 {
2794 // Token: 0x06000238 RID: 568 RVA: 0x00008DB4 File Offset: 0x00006FB4
2797 {
2798 this.<>1__state = <>1__state;
2799 }
2800
2801 // Token: 0x06000239 RID: 569 RVA: 0x00008DD0 File Offset: 0x00006FD0
2803 void IDisposable.Dispose()
2804 {
2805 }
2806
2807 // Token: 0x0600023A RID: 570 RVA: 0x00008DE0 File Offset: 0x00006FE0
2808 private bool MoveNext()
2809 {
2810 /*
2811An exception occurred when decompiling this method (0600023A)
2812
2813ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean UnityEngine.UI.InputField/<MouseDragOutsideRect>d__194::MoveNext()
2814
2815 ---> System.Exception: Basic block has to end with unconditional control flow.
2816{
2817 IL_00C5:
2818 stloc:int32(var_24_C6, ldc.i4:int32(1))
2819 stfld:int32('<MouseDragOutsideRect>d__194'::<>1__state, ldloc:'<MouseDragOutsideRect>d__194'(this), ldloc:int32(var_24_C6))
2820}
2821
2822 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
2823 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
2824 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
2825 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
2826 --- End of inner exception stack trace ---
2827 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
2828 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
2829*/;
2830 }
2831
2832 // Token: 0x17000096 RID: 150
2833 // (get) Token: 0x0600023B RID: 571 RVA: 0x00008EBC File Offset: 0x000070BC
2835 {
2837 get
2838 {
2839 return this.<>2__current;
2840 }
2841 }
2842
2843 // Token: 0x0600023C RID: 572 RVA: 0x00002207 File Offset: 0x00000407
2845 void IEnumerator.Reset()
2846 {
2847 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
2848 }
2849
2850 // Token: 0x17000097 RID: 151
2851 // (get) Token: 0x0600023D RID: 573 RVA: 0x00008ED0 File Offset: 0x000070D0
2852 object IEnumerator.Current
2853 {
2855 get
2856 {
2857 return this.<>2__current;
2858 }
2859 }
2860
2861 // Token: 0x0400011E RID: 286
2862 private int <>1__state;
2863
2864 // Token: 0x0400011F RID: 287
2865 private object <>2__current;
2866
2867 // Token: 0x04000120 RID: 288
2868 public PointerEventData eventData;
2869
2870 // Token: 0x04000121 RID: 289
2871 public InputField <>4__this;
2872 }
2873 }
2874}
class f__AnonymousType0<< Count > j__TPar
static byte Min(byte val1, byte val2)
Definition Math.cs:152
static byte Max(byte val1, byte val2)
Definition Math.cs:111
static RuntimePlatform platform
GameObject gameObject
Definition Component.cs:31
void SetSelectedGameObject(GameObject selected, BaseEventData pointer)
EventType rawType
Definition Event.cs:149
EventModifiers modifiers
Definition Event.cs:182
static bool PopEvent([NotNull("ArgumentNullException")] Event outEvent)
Definition Event.cs:266
bool HasCharacter(char c)
Definition Font.cs:86
static string systemCopyBuffer
Definition GUIUtility.cs:56
static string compositionString
Definition Input.cs:163
static void DestroyImmediate(Object obj, [DefaultValue("false")] bool allowDestroyingAssets)
Definition Object.cs:176
static OperatingSystemFamily operatingSystemFamily
Definition SystemInfo.cs:29
IList< UILineInfo > lines
IList< UICharInfo > characters
static Texture2D whiteTexture
Definition Texture2D.cs:32
static float unscaledTime
Definition Time.cs:24
Quaternion localRotation
Definition Transform.cs:95
void SetParent(Transform p)
Definition Transform.cs:162
static void AddMarker(string name, Object obj)
static void RegisterCanvasElementForGraphicRebuild(ICanvasElement element)
static void UnRegisterCanvasElementForRebuild(ICanvasElement element)
static void DisableCanvasElementForRebuild(ICanvasElement element)
RectTransform rectTransform
Definition Graphic.cs:262
static Material defaultGraphicMaterial
Definition Graphic.cs:22
OnValidateInput(object @object, IntPtr method)
char EndInvoke(IAsyncResult result)
char Invoke(string text, int charIndex, char addedChar)
IAsyncResult BeginInvoke(string text, int charIndex, char addedChar, AsyncCallback callback, object @object)
const string kEmailSpecialCharacters
virtual void LayoutComplete()
void MoveUp(bool shift)
void GenerateCaret(VertexHelper vbo, Vector2 roundingOffset)
override void OnDestroy()
virtual void LateUpdate()
void MoveDown(bool shift, bool goToLastChar)
void GenerateHighlight(VertexHelper vbo, Vector2 roundingOffset)
InputField.CharacterValidation characterValidation
InputField.CharacterValidation m_CharacterValidation
override void OnSelect(BaseEventData eventData)
TouchScreenKeyboard m_Keyboard
InputField.SubmitEvent onSubmit
void UpdateTouchKeyboardFromEditChanges()
int DetermineCharacterLine(int charPos, TextGenerator generator)
RectTransform caretRectTrans
void MoveUp(bool shift, bool goToFirstChar)
static readonly char[] kSeparators
override void OnEnable()
virtual void Rebuild(CanvasUpdate update)
virtual void CalculateLayoutInputVertical()
static int GetLineStartPosition(TextGenerator gen, int line)
int LineDownCharacterPosition(int originalPos, bool goToLastChar)
void SetText(string value, bool sendCallback=true)
InputField.OnChangeEvent m_OnValueChanged
const string kOculusQuestDeviceModel
virtual void OnBeginDrag(PointerEventData eventData)
InputField.EndEditEvent m_OnDidEndEdit
InputField.ContentType contentType
virtual bool shouldActivateOnSelect
char Validate(string text, int pos, char ch)
virtual float preferredHeight
class< CaretBlink > d__172
virtual float flexibleHeight
void SetToCustomIfContentTypeIsNot(params InputField.ContentType[] allowedContentTypes)
Vector2 ScreenToLocal(Vector2 screen)
InputField.SubmitEvent m_OnSubmit
void MoveTextStart(bool shift)
virtual void OnEndDrag(PointerEventData eventData)
class< MouseDragOutsideRect > d__194
int LineUpCharacterPosition(int originalPos, bool goToFirstChar)
virtual void OnSubmit(BaseEventData eventData)
void MoveTextEnd(bool shift)
InputField.EditState KeyPressed(Event evt)
TouchScreenKeyboard touchScreenKeyboard
InputField.LineType lineType
int GetCharacterIndexFromPosition(Vector2 pos)
InputField.LineType m_LineType
void MoveLeft(bool shift, bool ctrl)
virtual void OnUpdateSelected(BaseEventData eventData)
virtual float preferredWidth
static int GetLineEndPosition(TextGenerator gen, int line)
InputField.OnChangeEvent onValueChange
CanvasRenderer m_CachedInputRenderer
InputField.InputType inputType
TextGenerator cachedInputTextGenerator
Definition InputField.cs:80
override void OnDeselect(BaseEventData eventData)
override void OnDisable()
InputField.OnChangeEvent onValueChanged
IEnumerator MouseDragOutsideRect(PointerEventData eventData)
void MoveRight(bool shift, bool ctrl)
bool MayDrag(PointerEventData eventData)
void SetTextWithoutNotify(string input)
virtual float flexibleWidth
InputField.InputType m_InputType
TouchScreenKeyboardType m_KeyboardType
void SetDrawRangeToContainCaretPosition(int caretPos)
InputField.OnValidateInput m_OnValidateInput
virtual void CalculateLayoutInputHorizontal()
virtual void OnPointerClick(PointerEventData eventData)
TextGenerator m_InputTextCache
class< CaretBlink > IEnumerator
void MoveDown(bool shift)
virtual void Append(string input)
virtual void Append(char input)
TouchScreenKeyboardType keyboardType
override void Awake()
int GetUnclampedCharacterLineFromPosition(Vector2 pos, TextGenerator generator)
InputField.ContentType m_ContentType
static bool s_IsQuestDeviceEvaluated
virtual void OnDrag(PointerEventData eventData)
InputField.OnValidateInput onValidateInput
WaitForSecondsRealtime m_WaitForSecondsRealtime
override void OnPointerDown(PointerEventData eventData)
virtual void GraphicUpdateComplete()
override void DoStateTransition(Selectable.SelectionState state, bool instant)
InputField.EndEditEvent onEndEdit
bool< isPointerInside > k__BackingField
TextGenerator cachedTextGenerator
Definition Text.cs:23
float pixelsPerUnit
Definition Text.cs:349
Vector2 size
Definition Rect.cs:206