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
UIVirtualKeyboard.cs
Go to the documentation of this file.
1using System;
10using Terraria.UI;
11
13{
14 // Token: 0x02000A77 RID: 2679
16 {
17 // Token: 0x170008A9 RID: 2217
18 // (get) Token: 0x06004F19 RID: 20249 RVA: 0x00278E68 File Offset: 0x00277068
19 // (set) Token: 0x06004F1A RID: 20250 RVA: 0x00278E80 File Offset: 0x00277080
20 public string Text
21 {
22 get
23 {
24 return this._textBox.Text;
25 }
26 set
27 {
28 }
29 }
30
31 // Token: 0x170008AA RID: 2218
32 // (get) Token: 0x06004F1B RID: 20251 RVA: 0x00278E90 File Offset: 0x00277090
33 // (set) Token: 0x06004F1C RID: 20252 RVA: 0x00278EA4 File Offset: 0x002770A4
34 public bool HideContents
35 {
36 get
37 {
38 /*
39An exception occurred when decompiling this method (06004F1B)
40
41ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameContent.UI.States.UIVirtualKeyboard::get_HideContents()
42
43 ---> System.Exception: Basic block has to end with unconditional control flow.
44{
45 Block_0:
46 stloc:UITextBox(var_0_06, ldfld:UITextBox(UIVirtualKeyboard::_textBox, ldloc:UIVirtualKeyboard(this)))
47}
48
49 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
50 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
51 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
52 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
53 --- End of inner exception stack trace ---
54 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
55 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
56*/;
57 }
58 set
59 {
61 }
62 }
63
64 // Token: 0x06004F1D RID: 20253 RVA: 0x00278EB8 File Offset: 0x002770B8
66 {
67 int num = 1;
69 if (num == 0)
70 {
71 }
73 base..ctor();
74 this._keyboardContext = inputMode;
75 if (num == 0)
76 {
78 }
79 num.m_value = this;
81 }
82
83 // Token: 0x06004F1E RID: 20254 RVA: 0x00279290 File Offset: 0x00277490
84 public void SetMaxInputLength(int length)
85 {
87 }
88
89 // Token: 0x06004F1F RID: 20255 RVA: 0x002792AC File Offset: 0x002774AC
91 {
92 bool flag = this.CanRestore();
94 UITextPanel<object> uitextPanel = this.CreateKeyboardButton(localizedText, 6, 4, 2, true);
95 }
96
97 // Token: 0x06004F20 RID: 20256 RVA: 0x002792CC File Offset: 0x002774CC
98 private void PressSpace()
99 {
100 if (this.CustomTextValidationForUpdate != null)
101 {
102 string text = this.Text + " ";
103 }
104 this._textBox.Write(" ");
105 this.ValidateText();
106 }
107
108 // Token: 0x06004F21 RID: 20257 RVA: 0x0027930C File Offset: 0x0027750C
109 private bool CanRestore()
110 {
111 bool edittingSign = this._edittingSign;
112 if (!edittingSign || !edittingSign)
113 {
114 }
115 bool edittingChest = this._edittingChest;
116 if (!edittingChest || !edittingChest)
117 {
118 return;
119 }
120 }
121
122 // Token: 0x06004F22 RID: 20258 RVA: 0x00279334 File Offset: 0x00277534
124 {
125 if (listeningElement != null)
126 {
127 }
128 string text2;
129 if (this.CustomTextValidationForUpdate != null)
130 {
131 string text = this.Text + text2;
132 }
133 int stringLength = this.Text._stringLength;
134 this._textBox.Write(text2);
135 this.ValidateText();
136 if (stringLength != 0)
137 {
138 return;
139 }
140 int stringLength2 = this.Text._stringLength;
142 }
143
144 // Token: 0x06004F23 RID: 20259 RVA: 0x002793A0 File Offset: 0x002775A0
149
150 // Token: 0x06004F24 RID: 20260 RVA: 0x00279428 File Offset: 0x00277628
151 private void ValidateText()
152 {
153 int num = 1;
154 bool flag = this.TextIsValidForSubmit();
155 this._canSubmit = num != 0;
156 UITextPanel<LocalizedText> submitButton = this._submitButton;
157 if (num == 0)
158 {
159 }
161 if (num != 0)
162 {
163 return;
164 }
165 if (num == 0)
166 {
167 }
168 }
169
170 // Token: 0x06004F25 RID: 20261 RVA: 0x00279494 File Offset: 0x00277694
171 private bool TextIsValidForSubmit()
172 {
174 string text = this.Text;
175 if (customTextValidationForUpdate != null)
176 {
177 }
178 int stringLength = text.Trim()._stringLength;
179 if (this._edittingSign || this._edittingChest)
180 {
181 return true;
182 }
183 bool allowEmpty = this._allowEmpty;
184 return true;
185 }
186
187 // Token: 0x06004F26 RID: 20262 RVA: 0x002794D8 File Offset: 0x002776D8
188 private void StyleKey<T>(UITextPanel<T> button, bool external = false)
189 {
190 if (!true)
191 {
192 }
194 }
195
196 // Token: 0x06004F27 RID: 20263 RVA: 0x002794F0 File Offset: 0x002776F0
197 private UITextPanel<object> CreateKeyboardButton(object text, int x, int y, int width = 1, bool style = true)
198 {
199 UITextPanel<object>[] keyList = this._keyList;
200 throw new ArrayTypeMismatchException();
201 }
202
203 // Token: 0x06004F28 RID: 20264 RVA: 0x0027950C File Offset: 0x0027770C
204 private bool ShouldShowKeyboard()
205 {
207 }
208
209 // Token: 0x06004F29 RID: 20265 RVA: 0x00279520 File Offset: 0x00277720
210 protected override void DrawSelf(SpriteBatch spriteBatch)
211 {
212 if (!true)
213 {
214 }
215 bool gameMenu = Main.gameMenu;
217 this.outerLayer2.Remove();
218 List<UIElement> elements = this.Elements;
221 base.Append(uielement2);
222 this.outerLayer1.Activate();
223 this.outerLayer2.Deactivate();
224 float labelHeight = this._labelHeight;
226 float textBoxHeight = this._textBoxHeight;
229 UIText label = this._label;
230 }
231
232 // Token: 0x06004F2A RID: 20266 RVA: 0x00279834 File Offset: 0x00277A34
233 private bool TryEscapingMenu()
234 {
235 if (this.CustomEscapeAttempt != null)
236 {
237 }
238 bool edittingSign = this._edittingSign;
239 if (edittingSign)
240 {
241 if (!edittingSign)
242 {
243 }
245 }
246 if (this._edittingChest)
247 {
249 }
250 bool gameMenu = Main.gameMenu;
251 if (this._cancelAction != null)
252 {
254 return false;
255 }
257 return true;
258 }
259
260 // Token: 0x06004F2B RID: 20267 RVA: 0x00279890 File Offset: 0x00277A90
261 private void UpdateOffsetDown()
262 {
263 int num = 1;
265 if (num == 0)
266 {
267 }
271 }
272
273 // Token: 0x06004F2C RID: 20268 RVA: 0x002798C0 File Offset: 0x00277AC0
274 public override void OnActivate()
275 {
276 }
277
278 // Token: 0x06004F2D RID: 20269 RVA: 0x002798D0 File Offset: 0x00277AD0
279 public override void OnDeactivate()
280 {
281 base.OnDeactivate();
282 if (!true)
283 {
284 }
285 }
286
287 // Token: 0x06004F2E RID: 20270 RVA: 0x002798E8 File Offset: 0x00277AE8
288 public static void CycleSymbols()
289 {
290 if (!true)
291 {
292 }
293 if (true)
294 {
295 return;
296 }
297 }
298
299 // Token: 0x06004F2F RID: 20271 RVA: 0x00279900 File Offset: 0x00277B00
300 public static void BackSpace()
301 {
302 if (!true)
303 {
304 }
305 if (true)
306 {
307 if (!true)
308 {
309 }
310 return;
311 }
312 }
313
314 // Token: 0x170008AB RID: 2219
315 // (get) Token: 0x06004F30 RID: 20272 RVA: 0x00279918 File Offset: 0x00277B18
316 public static bool CanSubmit
317 {
318 get
319 {
320 if (!true)
321 {
322 }
323 if (true)
324 {
325 return;
326 }
327 }
328 }
329
330 // Token: 0x06004F31 RID: 20273 RVA: 0x0027992C File Offset: 0x00277B2C
331 public static void Submit()
332 {
333 if (!true)
334 {
335 }
336 if (true)
337 {
338 return;
339 }
340 }
341
342 // Token: 0x06004F32 RID: 20274 RVA: 0x00279940 File Offset: 0x00277B40
343 private void InternalSubmit()
344 {
345 string text = this.Text.Trim();
346 bool flag = this.TextIsValidForSubmit();
348 IntPtr invoke_impl = submitAction.invoke_impl;
349 IntPtr method_code = submitAction.method_code;
350 IntPtr method = submitAction.method;
351 }
352
353 // Token: 0x06004F33 RID: 20275 RVA: 0x00279980 File Offset: 0x00277B80
354 public static void Cancel()
355 {
356 if (!true)
357 {
358 }
359 if (true)
360 {
361 if (!true)
362 {
363 }
364 return;
365 }
366 }
367
368 // Token: 0x06004F34 RID: 20276 RVA: 0x00279998 File Offset: 0x00277B98
369 public static void Write(string text)
370 {
371 if (!true)
372 {
373 }
374 if (true)
375 {
376 if (!true)
377 {
378 }
379 string text2;
380 if (text2._stringLength == 0)
381 {
382 string text3;
383 if (text3._stringLength == 0)
384 {
385 }
386 return;
387 }
388 }
389 }
390
391 // Token: 0x06004F35 RID: 20277 RVA: 0x002799C0 File Offset: 0x00277BC0
392 public static void CursorLeft()
393 {
394 if (!true)
395 {
396 }
397 if (true)
398 {
399 if (!true)
400 {
401 }
402 return;
403 }
404 }
405
406 // Token: 0x06004F36 RID: 20278 RVA: 0x002799D8 File Offset: 0x00277BD8
407 public static void CursorRight()
408 {
409 if (!true)
410 {
411 }
412 if (true)
413 {
414 if (!true)
415 {
416 }
417 return;
418 }
419 }
420
421 // Token: 0x06004F37 RID: 20279 RVA: 0x002799F0 File Offset: 0x00277BF0
422 public static bool CanDisplay(int keyboardContext)
423 {
424 int screenHeight = Main.screenHeight;
425 return true;
426 }
427
428 // Token: 0x170008AC RID: 2220
429 // (get) Token: 0x06004F38 RID: 20280 RVA: 0x00279A08 File Offset: 0x00277C08
430 public static int KeyboardContext
431 {
432 get
433 {
434 /*
435An exception occurred when decompiling this method (06004F38)
436
437ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.GameContent.UI.States.UIVirtualKeyboard::get_KeyboardContext()
438
439 ---> System.Exception: Basic block has to end with unconditional control flow.
440{
441 IL_0003:
442 brtrue(IL_0000, logicnot:bool(ldc.i4:bool(1)))
443}
444
445 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
446 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
447 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
448 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
449 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
450 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
451 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
452 --- End of inner exception stack trace ---
453 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
454 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
455*/;
456 }
457 }
458
459 // Token: 0x06004F39 RID: 20281 RVA: 0x00279A1C File Offset: 0x00277C1C
460 public static void CacheCanceledInput(int cacheMode)
461 {
462 string npcChatText = Main.npcChatText;
463 }
464
465 // Token: 0x06004F3A RID: 20282 RVA: 0x00279A34 File Offset: 0x00277C34
467 {
468 if (!true)
469 {
470 }
471 string npcChatText = Main.npcChatText;
472 this.Text = npcChatText;
473 }
474
475 // Token: 0x06004F3B RID: 20283 RVA: 0x00279A54 File Offset: 0x00277C54
476 private void CopyTextToSign()
477 {
478 bool edittingSign = this._edittingSign;
479 if (edittingSign)
480 {
481 if (!edittingSign)
482 {
483 }
484 int myPlayer = Main.myPlayer;
485 if (!edittingSign)
486 {
487 }
488 if (edittingSign)
489 {
490 Main.npcChatText = this.Text;
491 return;
492 }
493 }
494 }
495
496 // Token: 0x06004F3C RID: 20284 RVA: 0x00279A88 File Offset: 0x00277C88
497 private void CopyTextToChest()
498 {
499 if (this._edittingChest)
500 {
501 Main.npcChatText = this.Text;
502 return;
503 }
504 }
505
506 // Token: 0x06004F3D RID: 20285 RVA: 0x00279AAC File Offset: 0x00277CAC
508 {
509 UIElement target = evt.Target;
510 if (target != null)
511 {
512 }
513 if (evt.Target != null)
514 {
515 }
516 }
517
518 // Token: 0x06004F3E RID: 20286 RVA: 0x00279AE8 File Offset: 0x00277CE8
520 {
521 int num = 1;
522 UIElement target = evt.Target;
523 if (num == 0)
524 {
525 }
526 if (target != null)
527 {
528 }
529 if (evt.Target != null)
530 {
531 }
532 }
533
534 // Token: 0x06004F3F RID: 20287 RVA: 0x00279B20 File Offset: 0x00277D20
535 // Note: this type is marked as 'beforefieldinit'.
537 {
538 }
539
540 // Token: 0x06004F40 RID: 20288 RVA: 0x00279B30 File Offset: 0x00277D30
549
550 // Token: 0x06004F41 RID: 20289 RVA: 0x00279B5C File Offset: 0x00277D5C
553 {
556 if (!true)
557 {
558 }
561 if (keyState == UIVirtualKeyboard.KeyState.Default)
562 {
563 }
564 }
565
566 // Token: 0x06004F42 RID: 20290 RVA: 0x00279B8C File Offset: 0x00277D8C
569 {
571 }
572
573 // Token: 0x06004F43 RID: 20291 RVA: 0x00279BA0 File Offset: 0x00277DA0
582
583 // Token: 0x06004F44 RID: 20292 RVA: 0x00279BCC File Offset: 0x00277DCC
586 {
589 if (!true)
590 {
591 }
594 if (keyState == UIVirtualKeyboard.KeyState.Default)
595 {
596 }
597 }
598
599 // Token: 0x06004F45 RID: 20293 RVA: 0x00279BFC File Offset: 0x00277DFC
602 {
604 }
605
606 // Token: 0x06004F46 RID: 20294 RVA: 0x00279C10 File Offset: 0x00277E10
609 {
610 this.ValidateText();
611 }
612
613 // Token: 0x06004F47 RID: 20295 RVA: 0x00279C24 File Offset: 0x00277E24
616 {
617 this.ValidateText();
618 }
619
620 // Token: 0x06004F48 RID: 20296 RVA: 0x00279C38 File Offset: 0x00277E38
623 {
625 IntPtr invoke_impl = cancelAction.invoke_impl;
626 IntPtr method_code = cancelAction.method_code;
627 IntPtr method = cancelAction.method;
628 }
629
630 // Token: 0x06004F49 RID: 20297 RVA: 0x00279C64 File Offset: 0x00277E64
633 {
634 this.ValidateText();
635 }
636
637 // Token: 0x06004F4A RID: 20298 RVA: 0x00279C78 File Offset: 0x00277E78
640 {
641 this.ValidateText();
642 }
643
644 // Token: 0x06004F4B RID: 20299 RVA: 0x00279C8C File Offset: 0x00277E8C
647 {
648 bool flag = this.TextIsValidForSubmit();
650 string text2;
651 string text = text2.Trim();
652 IntPtr method_code = submitAction.method_code;
653 IntPtr invoke_impl = submitAction.invoke_impl;
654 IntPtr method = submitAction.method;
655 }
656
657 // Token: 0x06004F4C RID: 20300 RVA: 0x00279CC8 File Offset: 0x00277EC8
660 {
662 IntPtr invoke_impl = cancelAction.invoke_impl;
663 IntPtr method_code = cancelAction.method_code;
664 IntPtr method = cancelAction.method;
665 }
666
667 // Token: 0x06004F4D RID: 20301 RVA: 0x00279CF4 File Offset: 0x00277EF4
670 {
671 this._textBox.Backspace();
672 this.ValidateText();
673 }
674
675 // Token: 0x0400880F RID: 34831
677
678 // Token: 0x04008810 RID: 34832
679 private static string _cancelCacheSign;
680
681 // Token: 0x04008811 RID: 34833
682 private static string _cancelCacheChest;
683
684 // Token: 0x04008812 RID: 34834
685 private const string DEFAULT_KEYS = "1234567890qwertyuiopasdfghjkl'zxcvbnm,.?";
686
687 // Token: 0x04008813 RID: 34835
688 private const string SHIFT_KEYS = "1234567890QWERTYUIOPASDFGHJKL'ZXCVBNM,.?";
689
690 // Token: 0x04008814 RID: 34836
691 private const string SYMBOL_KEYS = "1234567890!@#$%^&*()-_+=/\\{}[]<>;:\"`|~£¥";
692
693 // Token: 0x04008815 RID: 34837
694 private const float KEY_SPACING = 4f;
695
696 // Token: 0x04008816 RID: 34838
697 private const float KEY_WIDTH = 48f;
698
699 // Token: 0x04008817 RID: 34839
700 private const float KEY_HEIGHT = 37f;
701
702 // Token: 0x04008818 RID: 34840
704
705 // Token: 0x04008819 RID: 34841
707
708 // Token: 0x0400881A RID: 34842
710
711 // Token: 0x0400881B RID: 34843
713
714 // Token: 0x0400881C RID: 34844
716
717 // Token: 0x0400881D RID: 34845
719
720 // Token: 0x0400881E RID: 34846
721 private UIText _label;
722
723 // Token: 0x0400881F RID: 34847
725
726 // Token: 0x04008820 RID: 34848
728
729 // Token: 0x04008821 RID: 34849
731
732 // Token: 0x04008822 RID: 34850
734
735 // Token: 0x04008823 RID: 34851
737
738 // Token: 0x04008824 RID: 34852
740
741 // Token: 0x04008825 RID: 34853
743
744 // Token: 0x04008826 RID: 34854
746
747 // Token: 0x04008827 RID: 34855
749
750 // Token: 0x04008828 RID: 34856
752
753 // Token: 0x04008829 RID: 34857
755
756 // Token: 0x0400882A RID: 34858
757 private bool _allowEmpty;
758
759 // Token: 0x0400882B RID: 34859
761
762 // Token: 0x0400882C RID: 34860
764
765 // Token: 0x0400882D RID: 34861
767
768 // Token: 0x0400882E RID: 34862
769 private int _lastOffsetDown;
770
771 // Token: 0x0400882F RID: 34863
772 public static int OffsetDown;
773
774 // Token: 0x04008830 RID: 34864
775 public static bool ShouldHideText;
776
777 // Token: 0x04008831 RID: 34865
778 private int _keyboardContext;
779
780 // Token: 0x04008832 RID: 34866
781 private bool _edittingSign;
782
783 // Token: 0x04008833 RID: 34867
784 private bool _edittingChest;
785
786 // Token: 0x04008834 RID: 34868
787 private float _textBoxHeight;
788
789 // Token: 0x04008835 RID: 34869
790 private float _labelHeight;
791
792 // Token: 0x04008836 RID: 34870
794
795 // Token: 0x04008837 RID: 34871
797
798 // Token: 0x04008838 RID: 34872
800
801 // Token: 0x04008839 RID: 34873
802 private bool _canSubmit;
803
804 // Token: 0x02000A78 RID: 2680
806 {
807 // Token: 0x06004F4E RID: 20302 RVA: 0x00279D14 File Offset: 0x00277F14
808 public KeyboardSubmitEvent(object @object, IntPtr method)
809 {
811 this.m_target = @object;
813 this.method_code = this;
814 }
815
816 // Token: 0x06004F4F RID: 20303 RVA: 0x00279D68 File Offset: 0x00277F68
817 public void Invoke(string text)
818 {
821 IntPtr method = this.method;
822 }
823
824 // Token: 0x06004F50 RID: 20304 RVA: 0x000021DB File Offset: 0x000003DB
825 public IAsyncResult BeginInvoke(string text, AsyncCallback callback, object @object)
826 {
827 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
828 }
829
830 // Token: 0x06004F51 RID: 20305 RVA: 0x00279D8C File Offset: 0x00277F8C
831 public void EndInvoke(IAsyncResult result)
832 {
833 }
834 }
835
836 // Token: 0x02000A79 RID: 2681
837 public enum KeyState
838 {
839 // Token: 0x0400883B RID: 34875
840 Default,
841 // Token: 0x0400883C RID: 34876
842 Symbol,
843 // Token: 0x0400883D RID: 34877
844 Shift
845 }
846
847 // Token: 0x02000A7A RID: 2682
849 [Serializable]
850 private sealed class <>c
851 {
852 // Token: 0x06004F52 RID: 20306 RVA: 0x00279D9C File Offset: 0x00277F9C
853 // Note: this type is marked as 'beforefieldinit'.
854 static <>c()
855 {
856 }
857
858 // Token: 0x06004F53 RID: 20307 RVA: 0x00279DAC File Offset: 0x00277FAC
859 public <>c()
860 {
861 }
862
863 // Token: 0x06004F54 RID: 20308 RVA: 0x00279DC0 File Offset: 0x00277FC0
864 internal void <.ctor>b__50_8(UIMouseEvent evt, UIElement listeningElement)
865 {
866 if (!true)
867 {
868 }
869 UIVirtualKeyboard.Submit();
870 }
871
872 // Token: 0x06004F55 RID: 20309 RVA: 0x00279DD8 File Offset: 0x00277FD8
873 internal void <.ctor>b__50_10(UIMouseEvent a, UIElement b)
874 {
875 if (b != null)
876 {
877 }
878 if (39322 == 0)
879 {
880 }
881 }
882
883 // Token: 0x06004F56 RID: 20310 RVA: 0x00279DF8 File Offset: 0x00277FF8
884 internal void <.ctor>b__50_11(UIMouseEvent a, UIElement b)
885 {
886 if (b != null)
887 {
888 }
889 if (20972 == 0)
890 {
891 }
892 }
893
894 // Token: 0x06004F57 RID: 20311 RVA: 0x00279E18 File Offset: 0x00278018
895 internal void <.ctor>b__50_15(UIMouseEvent a, UIElement b)
896 {
897 if (b != null)
898 {
899 }
900 if (39322 == 0)
901 {
902 }
903 }
904
905 // Token: 0x06004F58 RID: 20312 RVA: 0x00279E38 File Offset: 0x00278038
906 internal void <.ctor>b__50_16(UIMouseEvent a, UIElement b)
907 {
908 if (b != null)
909 {
910 }
911 if (20972 == 0)
912 {
913 }
914 }
915
916 // Token: 0x0400883E RID: 34878
917 public static readonly UIVirtualKeyboard.<>c <>9;
918
919 // Token: 0x0400883F RID: 34879
920 public static UIElement.MouseEvent <>9__50_8;
921
922 // Token: 0x04008840 RID: 34880
923 public static UIElement.MouseEvent <>9__50_10;
924
925 // Token: 0x04008841 RID: 34881
926 public static UIElement.MouseEvent <>9__50_11;
927
928 // Token: 0x04008842 RID: 34882
929 public static UIElement.MouseEvent <>9__50_15;
930
931 // Token: 0x04008843 RID: 34883
932 public static UIElement.MouseEvent <>9__50_16;
933 }
934
935 // Token: 0x02000A7B RID: 2683
937 private sealed class <>c__DisplayClass52_0
938 {
939 // Token: 0x06004F59 RID: 20313 RVA: 0x00279E58 File Offset: 0x00278058
941 {
942 }
943
944 // Token: 0x06004F5A RID: 20314 RVA: 0x00279E6C File Offset: 0x0027806C
946 {
947 bool flag = this.<>4__this.CanRestore();
949 bool edittingSign = uivirtualKeyboard._edittingSign;
950 LocalizedText text = Language.GetText("UI.SpaceButton");
952 if (!uivirtualKeyboard2._edittingSign)
953 {
954 bool edittingChest = uivirtualKeyboard2._edittingChest;
955 }
956 UITextPanel<object> uitextPanel = uivirtualKeyboard.CreateKeyboardButton(text, 2, 4, 43139072, true);
957 if (this.<>9__1 == null)
958 {
959 }
960 this.mainPanel.Append(uitextPanel);
962 if (edittingSign)
963 {
964 LocalizedText text2 = Language.GetText("UI.EnterButton");
965 if (this.<>9__2 == null)
966 {
967 }
969 this.mainPanel.Append(uitextPanel2);
971 }
972 }
973
974 // Token: 0x06004F5B RID: 20315 RVA: 0x00279F20 File Offset: 0x00278120
976 {
977 this.<>4__this.PressSpace();
978 }
979
980 // Token: 0x06004F5C RID: 20316 RVA: 0x00279F38 File Offset: 0x00278138
982 {
983 this.<>4__this._textBox.Write("\n");
984 this.<>4__this.ValidateText();
985 }
986
987 // Token: 0x04008844 RID: 34884
989
990 // Token: 0x04008845 RID: 34885
991 public UIPanel mainPanel;
992
993 // Token: 0x04008846 RID: 34886
994 public Action createTheseTwo;
995
996 // Token: 0x04008847 RID: 34887
997 public UIElement.MouseEvent <>9__1;
998
999 // Token: 0x04008848 RID: 34888
1000 public UIElement.MouseEvent <>9__2;
1001 }
1002
1003 // Token: 0x02000A7C RID: 2684
1005 private sealed class <>c__DisplayClass52_1
1006 {
1007 // Token: 0x06004F5D RID: 20317 RVA: 0x00279F68 File Offset: 0x00278168
1009 {
1010 }
1011
1012 // Token: 0x06004F5E RID: 20318 RVA: 0x00279F7C File Offset: 0x0027817C
1014 {
1015 this.CS$<>8__locals1.<>4__this.ValidateText();
1016 this.restoreBar.Remove();
1018 UITextPanel<object> enterButton = <>4__this._enterButton;
1020 UIElement <Parent>k__BackingField = <>4__this.<Parent>k__BackingField;
1021 enterButton.Remove();
1022 Action createTheseTwo = this.CS$<>8__locals1.createTheseTwo;
1023 IntPtr invoke_impl = createTheseTwo.invoke_impl;
1024 IntPtr method_code = createTheseTwo.method_code;
1025 IntPtr method = createTheseTwo.method;
1026 }
1027
1028 // Token: 0x04008849 RID: 34889
1030
1031 // Token: 0x0400884A RID: 34890
1033 }
1034
1035 // Token: 0x02000A7D RID: 2685
1037 private sealed class <>c__DisplayClass60_0<T>
1038 {
1039 // Token: 0x06004F5F RID: 20319 RVA: 0x00279FF4 File Offset: 0x002781F4
1041 {
1042 }
1043
1044 // Token: 0x06004F60 RID: 20320 RVA: 0x0027A008 File Offset: 0x00278208
1046 {
1047 if (!true)
1048 {
1049 }
1050 if (listeningElement != null)
1051 {
1052 }
1053 if (listeningElement != null)
1054 {
1055 }
1056 if (!this.external)
1057 {
1058 }
1059 }
1060
1061 // Token: 0x06004F61 RID: 20321 RVA: 0x0027A03C File Offset: 0x0027823C
1063 {
1064 if (!true)
1065 {
1066 }
1067 if (listeningElement != null)
1068 {
1069 }
1070 if (listeningElement != null)
1071 {
1072 }
1073 if (!this.external)
1074 {
1075 }
1076 }
1077
1078 // Token: 0x0400884B RID: 34891
1079 public bool external;
1080
1081 // Token: 0x0400884C RID: 34892
1083 }
1084 }
1085}
class f__AnonymousType0<< Count > j__TPar
IntPtr method_code
Definition Delegate.cs:386
IntPtr invoke_impl
Definition Delegate.cs:371
static Delegate Remove(Delegate source, Delegate value)
Definition Delegate.cs:278
IAsyncResult BeginInvoke(string text, AsyncCallback callback, object @object)
void<.ctor > b__50_13(UIMouseEvent evt, UIElement listeningElement)
UIVirtualKeyboard.KeyboardSubmitEvent _submitAction
void<.ctor > b__50_7(UIMouseEvent evt, UIElement listeningElement)
void<.ctor > b__50_0(UIMouseEvent evt, UIElement listeningElement)
void StyleKey< T >(UITextPanel< T > button, bool external=false)
void<.ctor > b__50_6(UIMouseEvent evt, UIElement listeningElement)
UIVirtualKeyboard(string labelText, string startingText, UIVirtualKeyboard.KeyboardSubmitEvent submitAction, Action cancelAction, int inputMode=0, bool allowEmpty=false)
void<.ctor > b__50_14(UIMouseEvent evt, UIElement listeningElement)
void<.ctor > b__50_3(UIMouseEvent evt, UIElement listeningElement)
void FadedMouseOver(UIMouseEvent evt, UIElement listeningElement)
void FadedMouseOut(UIMouseEvent evt, UIElement listeningElement)
void<.ctor > b__50_1(UIMouseEvent evt, UIElement listeningElement)
void<.ctor > b__50_5(UIMouseEvent evt, UIElement listeningElement)
void SetKeyState(UIVirtualKeyboard.KeyState keyState)
override void DrawSelf(SpriteBatch spriteBatch)
void<.ctor > b__50_9(UIMouseEvent evt, UIElement listeningElement)
void<.ctor > b__50_12(UIMouseEvent evt, UIElement listeningElement)
void<.ctor > b__50_4(UIMouseEvent evt, UIElement listeningElement)
void TypeText(UIMouseEvent evt, UIElement listeningElement)
UITextPanel< object > CreateKeyboardButton(object text, int x, int y, int width=1, bool style=true)
void<.ctor > b__50_18(UIMouseEvent evt, UIElement listeningElement)
void<.ctor > b__50_17(UIMouseEvent evt, UIElement listeningElement)
void<.ctor > b__50_2(UIMouseEvent evt, UIElement listeningElement)
static LocalizedText GetText(string key)
Definition Language.cs:44
static string npcChatText
Definition Main.cs:2463
static void InputTextSignCancel()
Definition Main.cs:8398
static int myPlayer
Definition Main.cs:2337
static int screenHeight
Definition Main.cs:2015
static bool gameMenu
Definition Main.cs:2673
static void RenameChestCancel()
Definition ChestUI.cs:225
void Append(UIElement element)
Definition UIElement.cs:412
UIElement< Parent > k__BackingField
readonly List< UIElement > Elements