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
DrKeyboard_IME.cs
Go to the documentation of this file.
1using System;
2using UnityEngine;
3
4// Token: 0x0200001C RID: 28
6{
7 // Token: 0x0600008D RID: 141 RVA: 0x00003160 File Offset: 0x00001360
8 public DrKeyboard_IME(string initialText, int maxChars, string title, string prompt)
9 {
12 }
13
14 // Token: 0x17000027 RID: 39
15 // (get) Token: 0x0600008E RID: 142 RVA: 0x00003194 File Offset: 0x00001394
16 // (set) Token: 0x0600008F RID: 143 RVA: 0x000031A8 File Offset: 0x000013A8
17 public override bool active
18 {
19 get
20 {
21 /*
22An exception occurred when decompiling this method (0600008E)
23
24ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean DrKeyboard_IME::get_active()
25
26 ---> System.Exception: Basic block has to end with unconditional control flow.
27{
28 Block_0:
29 stloc:IMECompositionMode(var_1_07, callgetter:IMECompositionMode(Input::get_imeCompositionMode))
30}
31
32 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
33 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
34 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
35 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
36 --- End of inner exception stack trace ---
37 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
38 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
39*/;
40 }
41 set
42 {
43 }
44 }
45
46 // Token: 0x17000028 RID: 40
47 // (get) Token: 0x06000090 RID: 144 RVA: 0x000031B8 File Offset: 0x000013B8
48 public override bool done
49 {
50 get
51 {
52 }
53 }
54
55 // Token: 0x17000029 RID: 41
56 // (get) Token: 0x06000091 RID: 145 RVA: 0x000031C8 File Offset: 0x000013C8
57 // (set) Token: 0x06000092 RID: 146 RVA: 0x000031DC File Offset: 0x000013DC
58 public override string text
59 {
60 get
61 {
62 return this._text;
63 }
64 set
65 {
67 }
68 }
69
70 // Token: 0x1700002A RID: 42
71 // (get) Token: 0x06000093 RID: 147 RVA: 0x000031F0 File Offset: 0x000013F0
72 public override bool wasCanceled
73 {
74 get
75 {
76 return this._wasCanceled;
77 }
78 }
79
80 // Token: 0x06000094 RID: 148 RVA: 0x00003204 File Offset: 0x00001404
81 public override void Update()
82 {
83 if (!true)
84 {
85 }
86 if (!true)
87 {
88 }
89 bool keyDown = KeyboardInput.GetKeyDown(KeyCode.KeypadEnter);
90 if (!true)
91 {
92 }
94 }
95
96 // Token: 0x06000095 RID: 149 RVA: 0x00003294 File Offset: 0x00001494
97 private void Append(string input)
98 {
99 if (input != null)
100 {
101 int stringLength = input._stringLength;
102 long num = 0L;
103 long num2 = 0L;
104 char c = input[(int)num];
105 string text = this._text;
106 int stringLength2 = text._stringLength;
107 long num3 = 0L;
108 string text2 = text.Substring((int)num3, (int)num2);
109 return;
110 }
111 }
112
113 // Token: 0x04000063 RID: 99
114 private int _lastFrame = 1;
115
116 // Token: 0x04000064 RID: 100
117 private string _lastIME = "";
118
119 // Token: 0x04000065 RID: 101
120 private string _text;
121
122 // Token: 0x04000066 RID: 102
123 private bool _wasCanceled;
124}
class f__AnonymousType0<< Count > j__TPar
override bool active
void Append(string input)
DrKeyboard_IME(string initialText, int maxChars, string title, string prompt)
override bool done
override bool wasCanceled
override string text
override void Update()
static bool GetKeyDown(KeyCode keycode)