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
GUIChestSplitStack.cs
Go to the documentation of this file.
1using System;
2using Controller;
6using Terraria;
7
8// Token: 0x0200012B RID: 299
10{
11 // Token: 0x060007BD RID: 1981 RVA: 0x0001DAF0 File Offset: 0x0001BCF0
17
18 // Token: 0x060007BE RID: 1982 RVA: 0x0001DB20 File Offset: 0x0001BD20
20 {
21 if (!true)
22 {
23 }
24 bool gameMenu = Main.gameMenu;
25 bool flag = this.open;
26 if (flag)
27 {
28 if (!flag)
29 {
30 }
31 bool playerInventory = Main.playerInventory;
32 }
35 bool flag2;
36 return flag2;
37 }
38
39 // Token: 0x060007BF RID: 1983 RVA: 0x0001DB68 File Offset: 0x0001BD68
40 public void RightClickSplit()
41 {
42 if (!true)
43 {
44 }
47 if (!true)
48 {
49 }
50 int mouseX = Main.mouseX;
51 int mouseY = Main.mouseY;
53 }
54
55 // Token: 0x060007C0 RID: 1984 RVA: 0x0001DBA4 File Offset: 0x0001BDA4
56 public bool WasSplit()
57 {
58 if (!true)
59 {
60 }
62 DateTime dateTime = this.lastSplitTime;
63 double totalSeconds = (now - dateTime).TotalSeconds;
65 float x = this.lastSplitPosition.X;
66 float y = this.lastSplitPosition.Y;
67 Vector2 vector;
68 float num = vector.Length();
69 return true;
70 }
71
72 // Token: 0x060007C1 RID: 1985 RVA: 0x0001DC04 File Offset: 0x0001BE04
73 public bool IsOpen()
74 {
75 return this.open;
76 }
77
78 // Token: 0x060007C2 RID: 1986 RVA: 0x0001DC18 File Offset: 0x0001BE18
79 public void Open()
80 {
81 Item item;
82 int stack = item.stack;
83 long num = 0L;
84 this.RefreshItemToSplit(num != 0L);
85 int num2 = 1;
86 this.open = num2 != 0;
87 }
88
89 // Token: 0x060007C3 RID: 1987 RVA: 0x0001DC40 File Offset: 0x0001BE40
90 private void RefreshItemToSplit(bool SliderConsoleRightDirection = false)
91 {
93 Item item;
94 int type = item.type;
95 splitItem.type = type;
96 Color color = item.color;
97 splitItem.color = color;
99 int type2 = item.type;
101 Color color2 = item.color;
103 int stack = item.stack;
104 float num = this.splitSlider;
106 int num2;
109 }
110
111 // Token: 0x060007C4 RID: 1988 RVA: 0x0001DCCC File Offset: 0x0001BECC
112 public void Close()
113 {
114 }
115
116 // Token: 0x060007C5 RID: 1989 RVA: 0x0001DCDC File Offset: 0x0001BEDC
117 public void Draw()
118 {
119 if (this.PickingInterceptor == null)
120 {
121 }
125 if (this.open)
126 {
129 Item splitItem = this.SplitItem;
130 int stack = itemToSplit.stack;
131 int stack2 = splitItem.stack;
132 }
133 }
134
135 // Token: 0x0400064D RID: 1613
137
138 // Token: 0x0400064E RID: 1614
140
141 // Token: 0x0400064F RID: 1615
142 private bool open;
143
144 // Token: 0x04000650 RID: 1616
145 private float splitSlider = (float)16128;
146
147 // Token: 0x04000651 RID: 1617
149
150 // Token: 0x04000652 RID: 1618
152
153 // Token: 0x04000653 RID: 1619
155
156 // Token: 0x04000654 RID: 1620
157 private float splitScale;
158
159 // Token: 0x04000655 RID: 1621
160 private float itemScale;
161
162 // Token: 0x04000656 RID: 1622
163 private float mainScale;
164
165 // Token: 0x04000657 RID: 1623
167
168 // Token: 0x04000658 RID: 1624
170
171 // Token: 0x04000659 RID: 1625
173}
class f__AnonymousType0<< Count > j__TPar
GUITransactionButton.InputState splitButtonState
GUISlider.DragState dragState
void RefreshItemToSplit(bool SliderConsoleRightDirection=false)
bool IsOver(Vector2 cursorPosition)
GUIInputRegionExclusive PickingInterceptor
static Vector2 GetUICursorPosition()
Definition Mouse.cs:358
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