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
GUIInventorySplitStack.cs
Go to the documentation of this file.
1using System;
2using Controller;
7using Terraria;
8
9// Token: 0x0200014C RID: 332
11{
12 // Token: 0x06000909 RID: 2313 RVA: 0x00027134 File Offset: 0x00025334
18
19 // Token: 0x0600090A RID: 2314 RVA: 0x00027160 File Offset: 0x00025360
20 public static void LoadContent(ContentManager content)
21 {
22 Texture2D texture2D = content.Load<Texture2D>("Images/UI/PageIcons/SplitStack");
23 Texture2D texture2D2 = content.Load<Texture2D>("Images/UI/PageIcons/SplitStackSelected");
24 }
25
26 // Token: 0x0600090B RID: 2315 RVA: 0x00027188 File Offset: 0x00025388
27 public void Open()
28 {
29 Item item;
30 int stack = item.stack;
31 this.RefreshItemToSplit();
32 int num = 1;
33 this.open = num != 0;
34 }
35
36 // Token: 0x0600090C RID: 2316 RVA: 0x000271AC File Offset: 0x000253AC
37 private void RefreshItemToSplit()
38 {
40 Item item;
41 int type = item.type;
42 splitItem.type = type;
43 Color color = item.color;
44 splitItem.color = color;
46 int type2 = item.type;
48 Color color2 = item.color;
50 int stack = item.stack;
51 float num = this.splitSlider;
53 int num2;
56 int stack2 = this.SplitItem.stack;
58 }
59
60 // Token: 0x0600090D RID: 2317 RVA: 0x00027248 File Offset: 0x00025448
61 public bool IsOpen()
62 {
63 return this.open;
64 }
65
66 // Token: 0x0600090E RID: 2318 RVA: 0x0002725C File Offset: 0x0002545C
67 public void Close()
68 {
69 }
70
71 // Token: 0x0600090F RID: 2319 RVA: 0x0002726C File Offset: 0x0002546C
73 {
74 if (!true)
75 {
76 }
77 bool gameMenu = Main.gameMenu;
78 bool flag = this.open;
79 if (flag)
80 {
81 if (!flag)
82 {
83 }
84 bool playerInventory = Main.playerInventory;
85 }
88 bool flag2;
89 return flag2;
90 }
91
92 // Token: 0x06000910 RID: 2320 RVA: 0x000272B4 File Offset: 0x000254B4
93 public void RightClickSplit()
94 {
95 if (!true)
96 {
97 }
100 if (!true)
101 {
102 }
103 int mouseX = Main.mouseX;
104 int mouseY = Main.mouseY;
106 }
107
108 // Token: 0x06000911 RID: 2321 RVA: 0x000272F0 File Offset: 0x000254F0
109 public bool WasSplit()
110 {
111 if (!true)
112 {
113 }
115 DateTime dateTime = this.lastSplitTime;
116 double totalSeconds = (now - dateTime).TotalSeconds;
118 float x = this.lastSplitPosition.X;
119 float y = this.lastSplitPosition.Y;
120 Vector2 vector;
121 float num = vector.Length();
122 return true;
123 }
124
125 // Token: 0x06000912 RID: 2322 RVA: 0x00027350 File Offset: 0x00025550
126 public void Draw()
127 {
128 GUIInputRegionExclusive pickingInterceptor = this.PickingInterceptor;
130 if (this.open)
131 {
133 }
134 int myPlayer = Main.myPlayer;
135 Item item;
136 if (item.type != 0)
137 {
138 Item item2;
139 int stack = item2.stack;
140 return;
141 }
142 if (true)
143 {
144 return;
145 }
147 Item item3;
148 if (item3.type != 0)
149 {
150 Item item4;
151 int stack2 = item4.stack;
152 }
153 bool flag = this.open;
154 int num = 544;
155 if (this.open)
156 {
157 if (num == 0)
158 {
159 }
160 bool flag2 = this.open;
161 return;
162 }
163 }
164
165 // Token: 0x06000913 RID: 2323 RVA: 0x00027480 File Offset: 0x00025680
166 public void DrawOverlay()
167 {
168 GUIInputRegionExclusive pickingInterceptor = this.PickingInterceptor;
170 if (this.open)
171 {
172 this.RefreshItemToSplit();
173 return;
174 }
176 int num = 1;
178 }
179
180 // Token: 0x04000879 RID: 2169
182
183 // Token: 0x0400087A RID: 2170
185
186 // Token: 0x0400087B RID: 2171
188
189 // Token: 0x0400087C RID: 2172
190 private bool open;
191
192 // Token: 0x0400087D RID: 2173
193 private float splitSlider = (float)16128;
194
195 // Token: 0x0400087E RID: 2174
197
198 // Token: 0x0400087F RID: 2175
200
201 // Token: 0x04000880 RID: 2176
203
204 // Token: 0x04000881 RID: 2177
205 private float splitScale;
206
207 // Token: 0x04000882 RID: 2178
208 private float itemScale;
209
210 // Token: 0x04000883 RID: 2179
211 private float mainScale;
212
213 // Token: 0x04000884 RID: 2180
215
216 // Token: 0x04000885 RID: 2181
218
219 // Token: 0x04000886 RID: 2182
221}
class f__AnonymousType0<< Count > j__TPar
static void LoadContent(ContentManager content)
bool IsOver(Vector2 cursorPosition)
GUIInputRegionExclusive PickingInterceptor
GUITransactionButton.InputState splitButtonState
static Vector2 GetUICursorPosition()
Definition Mouse.cs:358
static int myPlayer
Definition Main.cs:2337
static bool playerInventory
Definition Main.cs:2057
static int mouseY
Definition Main.cs:601
static bool gameMenu
Definition Main.cs:2673
static int mouseX
Definition Main.cs:587
static DateTime Now
Definition DateTime.cs:530