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
GUIButtonBar.cs
Go to the documentation of this file.
1using System;
3using Controller;
7using Terraria;
8
9// Token: 0x02000127 RID: 295
10public class GUIButtonBar
11{
12 // Token: 0x060007A2 RID: 1954 RVA: 0x0001D0E4 File Offset: 0x0001B2E4
13 public GUIButtonBar()
14 {
15 }
16
17 // Token: 0x060007A3 RID: 1955 RVA: 0x0001D0F8 File Offset: 0x0001B2F8
19 {
21 int itemCount = this.ItemCount;
22 if (bannerAction == null)
23 {
24 GUIButtonBar.Action[] items = this.Items;
25 int itemCount2 = this.ItemCount;
27 return;
28 }
29 if (bannerAction != null)
30 {
31 int itemCount3 = this.ItemCount;
32 return;
33 }
35 }
36
37 // Token: 0x060007A4 RID: 1956 RVA: 0x0001D140 File Offset: 0x0001B340
38 private void RefreshItems()
39 {
41 GUIButtonBar.Action[] items = this.Items;
42 int itemCount = this.ItemCount;
43 this.ItemCount = itemCount;
44 bool expanded = this.Expanded;
45 if (expanded || expanded)
46 {
49 int itemCount2 = this.ItemCount;
51 if (itemCount2 == 0)
52 {
53 }
57 int itemCount3 = this.ItemCount;
60 int itemCount4 = this.ItemCount;
62 return;
63 }
64 }
65
66 // Token: 0x060007A5 RID: 1957 RVA: 0x000021DB File Offset: 0x000003DB
67 public float ItemScale(int index)
68 {
69 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
70 }
71
72 // Token: 0x060007A6 RID: 1958 RVA: 0x0001D26C File Offset: 0x0001B46C
73 private void ItemOver(int index)
74 {
75 }
76
77 // Token: 0x060007A7 RID: 1959 RVA: 0x0001D27C File Offset: 0x0001B47C
79 {
80 if (entry != 0)
81 {
82 int itemCount = this.ItemCount;
83 }
84 if (this.Expanded)
85 {
86 if (72 == 0)
87 {
88 }
89 bool mapEnabled = Main.mapEnabled;
90 bool mapReady = Main.mapReady;
92 bool mapReady2 = Main.mapReady;
93 int num = 1;
94 disabled.m_value = num != 0;
95 if (num == 0)
96 {
97 }
98 int num2 = 1;
100 if (num2 == 0)
101 {
102 }
104 return texture2D;
105 }
107 return texture2D2;
108 }
109
110 // Token: 0x060007A8 RID: 1960 RVA: 0x0001D2E8 File Offset: 0x0001B4E8
111 private void ItemDraw(ItemGrid_Layout gridLayout, int index, Vector2 position, float scale)
112 {
114 do
115 {
116 if (!true)
117 {
118 }
119 GUIButtonBar.Action[] items = this.Items;
121 float[] scale2 = this.Scale;
123 }
124 while (inputState != GUITransactionButton.InputState.Clicked);
125 if (this.Items == null)
126 {
127 }
128 }
129
130 // Token: 0x060007A9 RID: 1961 RVA: 0x0001D324 File Offset: 0x0001B524
132 {
133 }
134
135 // Token: 0x060007AA RID: 1962 RVA: 0x0001D378 File Offset: 0x0001B578
136 public void Draw()
137 {
138 int num = 1;
139 if (num == 0)
140 {
141 }
142 bool mapFullscreen = Main.mapFullscreen;
143 if (num == 0)
144 {
145 }
146 int myPlayer = Main.myPlayer;
147 if (num == 0)
148 {
149 this.RefreshItems();
151 int itemCount = this.ItemCount;
153 GUIItemGrid.CursorOver cursorOver = this.itemOver;
155 int itemCount2 = this.ItemCount;
156 }
157 }
158
159 // Token: 0x0400061F RID: 1567
160 private int ItemCount;
161
162 // Token: 0x04000620 RID: 1568
164
165 // Token: 0x04000621 RID: 1569
167
168 // Token: 0x04000622 RID: 1570
169 public float[] Scale;
170
171 // Token: 0x04000623 RID: 1571
172 private bool Expanded;
173
174 // Token: 0x04000624 RID: 1572
176
177 // Token: 0x04000625 RID: 1573
179
180 // Token: 0x04000626 RID: 1574
182
183 // Token: 0x02000128 RID: 296
184 public enum Action
185 {
186 // Token: 0x04000628 RID: 1576
188 // Token: 0x04000629 RID: 1577
189 Chat,
190 // Token: 0x0400062A RID: 1578
191 Tutorial,
192 // Token: 0x0400062B RID: 1579
194 // Token: 0x0400062C RID: 1580
195 Housing,
196 // Token: 0x0400062D RID: 1581
197 PVP,
198 // Token: 0x0400062E RID: 1582
199 Bestiary,
200 // Token: 0x0400062F RID: 1583
202 // Token: 0x04000630 RID: 1584
203 Map,
204 // Token: 0x04000631 RID: 1585
206 // Token: 0x04000632 RID: 1586
207 Count
208 }
209}
class f__AnonymousType0<< Count > j__TPar
void AddAction(GUIButtonBar.Action action, ControllerActionButton bannerAction)
void RefreshItems()
void ItemOver(int index)
GUIItemGrid.CursorOver itemOver
GUIButtonBar.Action[] Items
Texture2D GetButtonSetup(GUIButtonBar.Action action, int entry, [Out] bool disabled, [Out] string actionString, [Out] TransactionButton_Layout buttonLayout)
void ItemDraw(ItemGrid_Layout gridLayout, int index, Vector2 position, float scale)
GUIItemGrid.DrawItemHandler itemDraw
float ItemScale(int index)
void PerformAction(GUIButtonBar.Action action)
ControllerActionButton[] ItemsActions
GUIItemGrid.GetItemScaleHandler itemScale
static int myPlayer
Definition Main.cs:2337
static int GameMode
Definition Main.cs:4141
static bool mapEnabled
Definition Main.cs:1231
static bool mapReady
Definition Main.cs:1091
static bool mapFullscreen
Definition Main.cs:1441