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
XNAUIInputLayer.cs
Go to the documentation of this file.
1using System;
2using Controller;
4using UnityEngine;
5
6// Token: 0x02000297 RID: 663
7public class XNAUIInputLayer
8{
9 // Token: 0x06000F80 RID: 3968 RVA: 0x0004DE98 File Offset: 0x0004C098
18
19 // Token: 0x06000F81 RID: 3969 RVA: 0x0004DEE4 File Offset: 0x0004C0E4
26
27 // Token: 0x06000F82 RID: 3970 RVA: 0x0004DF0C File Offset: 0x0004C10C
28 public void CancelUICrusorDrag()
29 {
30 }
31
32 // Token: 0x06000F83 RID: 3971 RVA: 0x0004DF1C File Offset: 0x0004C11C
33 public void UpdateCursor(global::Cursor cursor)
34 {
35 if (cursor.InputLayer != null)
36 {
37 if (cursor.Down || cursor.WasDown)
38 {
39 return;
40 }
41 bool key = KeyboardInput.GetKey(KeyCode.Mouse1);
43 }
45 Debug.Log("Releasing cursor");
46 float x = cursor.Position.x;
47 float y = cursor.Position.y;
50 }
51
52 // Token: 0x06000F84 RID: 3972 RVA: 0x0004DF90 File Offset: 0x0004C190
53 public void UpdateCursorSecondary(global::Cursor cursor)
54 {
55 if (!cursor.IgnoreForWorld && cursor.InputLayer == null)
56 {
57 float x = cursor.Position.x;
58 float y = cursor.Position.y;
61 }
62 }
63
64 // Token: 0x06000F85 RID: 3973 RVA: 0x0004DFD8 File Offset: 0x0004C1D8
65 public void CaptureWorldCursor()
66 {
67 global::Cursor worldCursor = this.GetWorldCursor();
68 if (worldCursor != null)
69 {
72 }
73 }
74
75 // Token: 0x06000F86 RID: 3974 RVA: 0x0004E000 File Offset: 0x0004C200
76 public void WorldUpdateCursor(global::Cursor cursor)
77 {
78 }
79
80 // Token: 0x06000F87 RID: 3975 RVA: 0x0004E010 File Offset: 0x0004C210
82 {
83 }
84
85 // Token: 0x06000F88 RID: 3976 RVA: 0x0004E020 File Offset: 0x0004C220
86 public void Update(float elapsedTime)
87 {
88 global::Cursor uicursor = this.GetUICursor();
89 if (uicursor == null)
90 {
91 if (this.HadUICursor)
92 {
93 this._timeWithoutUICursor = (float)17096;
94 }
97 return;
98 }
99 if (this.UICrusorDragging)
100 {
105 if (this.UICrusorDraggingFromAxis == 0)
106 {
107 }
108 return;
109 }
110 bool wasDown;
111 if (!uicursor.Down)
112 {
113 wasDown = uicursor.WasDown;
114 if (!wasDown)
115 {
116 }
117 }
118 if (!wasDown)
119 {
120 }
122 if (!this.UICrusorDragging && (!this.HadUICursor || uicursor.Down))
123 {
124 return;
125 }
128 this.HadUICursor = true;
129 }
130
131 // Token: 0x1700018B RID: 395
132 // (get) Token: 0x06000F89 RID: 3977 RVA: 0x000021DB File Offset: 0x000003DB
133 public static float UITextAlpha
134 {
135 get
136 {
137 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
138 }
139 }
140
141 // Token: 0x06000F8A RID: 3978 RVA: 0x000021DB File Offset: 0x000003DB
142 public static float UITextAlphaCustom(float _timeForFullUIMouse, float _timeForUIMouseFade = 1f)
143 {
144 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
145 }
146
147 // Token: 0x06000F8B RID: 3979 RVA: 0x0004E0D0 File Offset: 0x0004C2D0
148 public global::Cursor GetUICursor()
149 {
150 global::Cursor cursor;
151 return cursor;
152 }
153
154 // Token: 0x06000F8C RID: 3980 RVA: 0x0004E0F4 File Offset: 0x0004C2F4
155 public global::Cursor GetWorldCursor()
156 {
157 /*
158An exception occurred when decompiling this method (06000F8C)
159
160ICSharpCode.Decompiler.DecompilerException: Error decompiling Cursor XNAUIInputLayer::GetWorldCursor()
161
162 ---> System.Exception: Basic block has to end with unconditional control flow.
163{
164 IL_0029:
165 stloc:CursorInputLayer(var_9_2F, ldfld:CursorInputLayer(XNAUIInputLayer::_worldInputLayer, ldloc:XNAUIInputLayer(this)))
166}
167
168 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
169 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
170 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
171 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
172 --- End of inner exception stack trace ---
173 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
174 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
175*/;
176 }
177
178 // Token: 0x04001C26 RID: 7206
180
181 // Token: 0x04001C27 RID: 7207
183
184 // Token: 0x04001C28 RID: 7208
186
187 // Token: 0x04001C29 RID: 7209
189
190 // Token: 0x04001C2A RID: 7210
192
193 // Token: 0x04001C2B RID: 7211
194 public bool UICrusorDragging = true;
195
196 // Token: 0x04001C2C RID: 7212
197 public bool HadUICursor;
198
199 // Token: 0x04001C2D RID: 7213
200 private const float TimeForUIMouseFade = 1f;
201
202 // Token: 0x04001C2E RID: 7214
203 private const float TimeForFullUIMouse = 1f;
204
205 // Token: 0x04001C2F RID: 7215
207}
class f__AnonymousType0<< Count > j__TPar
static bool GetKey(KeyCode keycode)
static void Log(object message)
Definition Debug.cs:51
void WorldUpdateCursor(global::Cursor cursor)
global::Cursor GetWorldCursor()
void UpdateCursor(global::Cursor cursor)
const float TimeForUIMouseFade
static float UITextAlpha
static float UITextAlphaCustom(float _timeForFullUIMouse, float _timeForUIMouseFade=1f)
void Update(float elapsedTime)
CursorInputLayer _inputLayer
global::Cursor GetUICursor()
const float TimeForFullUIMouse
static XNAUIInputLayer Instance
void ResetTimeWithoutCursor()
void UpdateCursorSecondary(global::Cursor cursor)
CursorInputLayer _worldInputLayer
void CaptureUICrusorDrag(int dragFromAxis=-1)
CursorInputLayer _inputLayer2
static XNAUnityRunner.ForcedInputMode PrimaryInputMode