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.
1
using
System
;
2
using
System.Runtime.InteropServices
;
3
using
Controller
;
4
using
Cpp2IlInjected
;
5
using
Microsoft.Xna.Framework
;
6
using
Microsoft.Xna.Framework.Graphics
;
7
using
Terraria
;
8
9
// Token: 0x02000127 RID: 295
10
public
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
18
private
void
AddAction
(
GUIButtonBar
.
Action
action
,
ControllerActionButton
bannerAction
)
19
{
20
ControllerActionButton
[]
itemsActions
= this.
ItemsActions
;
21
int
itemCount = this.
ItemCount
;
22
if
(bannerAction ==
null
)
23
{
24
GUIButtonBar
.
Action
[] items = this.
Items
;
25
int
itemCount2
= this.
ItemCount
;
26
this.ItemCount
=
itemCount2
;
27
return
;
28
}
29
if
(bannerAction !=
null
)
30
{
31
int
itemCount3
= this.
ItemCount
;
32
return
;
33
}
34
throw
new
ArrayTypeMismatchException
();
35
}
36
37
// Token: 0x060007A4 RID: 1956 RVA: 0x0001D140 File Offset: 0x0001B340
38
private
void
RefreshItems
()
39
{
40
ControllerActionButton
[]
itemsActions
= this.
ItemsActions
;
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
{
47
ControllerActionButton
[]
itemsActions2
= this.
ItemsActions
;
48
GUIButtonBar
.
Action
[]
items2
= this.
Items
;
49
int
itemCount2
= this.
ItemCount
;
50
this.ItemCount
=
itemCount2
;
51
if
(itemCount2 == 0)
52
{
53
}
54
int
gameMode
=
Main
.
GameMode
;
55
ControllerActionButton
[]
itemsActions3
= this.
ItemsActions
;
56
GUIButtonBar
.
Action
[]
items3
= this.
Items
;
57
int
itemCount3
= this.
ItemCount
;
58
ControllerActionButton
[]
itemsActions4
= this.
ItemsActions
;
59
GUIButtonBar
.
Action
[]
items4
= this.
Items
;
60
int
itemCount4
= this.
ItemCount
;
61
this.ItemCount
=
itemCount4
;
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
78
private
Texture2D
GetButtonSetup
(
GUIButtonBar
.
Action
action
,
int
entry, [Out]
bool
disabled
, [Out]
string
actionString
, [Out]
TransactionButton_Layout
buttonLayout
)
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
;
91
bool
mapEnabled2
=
Main
.
mapEnabled
;
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;
99
disabled.m_value
=
num2
!= 0;
100
if
(
num2
== 0)
101
{
102
}
103
Texture2D
texture2D
;
104
return
texture2D
;
105
}
106
Texture2D
texture2D2
;
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
{
113
GUITransactionButton.InputState
inputState
;
114
do
115
{
116
if
(!
true
)
117
{
118
}
119
GUIButtonBar
.
Action
[] items = this.
Items
;
120
ControllerActionButton
[]
itemsActions
= this.
ItemsActions
;
121
float
[] scale2 = this.
Scale
;
122
ControllerActionButton
linkedAction
=
itemsActions
.
LinkedAction
;
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
131
private
void
PerformAction
(
GUIButtonBar
.
Action
action
)
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
();
150
GUIItemGrid.GetItemScaleHandler
getItemScaleHandler
= this.
itemScale
;
151
int
itemCount = this.
ItemCount
;
152
GUIItemGrid.GetItemScaleHandler
getItemScaleHandler2
= this.
itemScale
;
153
GUIItemGrid.CursorOver
cursorOver = this.
itemOver
;
154
GUIItemGrid.DrawItemHandler
drawItemHandler
= this.
itemDraw
;
155
int
itemCount2
= this.
ItemCount
;
156
}
157
}
158
159
// Token: 0x0400061F RID: 1567
160
private
int
ItemCount
;
161
162
// Token: 0x04000620 RID: 1568
163
public
GUIButtonBar
.
Action
[]
Items
;
164
165
// Token: 0x04000621 RID: 1569
166
public
ControllerActionButton
[]
ItemsActions
;
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
175
private
GUIItemGrid.GetItemScaleHandler
itemScale
;
176
177
// Token: 0x04000625 RID: 1573
178
private
GUIItemGrid.CursorOver
itemOver
;
179
180
// Token: 0x04000626 RID: 1574
181
private
GUIItemGrid.DrawItemHandler
itemDraw
;
182
183
// Token: 0x02000128 RID: 296
184
public
enum
Action
185
{
186
// Token: 0x04000628 RID: 1576
187
ButtonBarToggle
,
188
// Token: 0x04000629 RID: 1577
189
Chat
,
190
// Token: 0x0400062A RID: 1578
191
Tutorial
,
192
// Token: 0x0400062B RID: 1579
193
JourneyModeSettings
,
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
201
MiniMapToggle
,
202
// Token: 0x04000630 RID: 1584
203
Map
,
204
// Token: 0x04000631 RID: 1585
205
Duplication
,
206
// Token: 0x04000632 RID: 1586
207
Count
208
}
209
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Controller.ControllerActionButton.LinkedAction
ControllerActionButton LinkedAction
Definition
ControllerActionButton.cs:270
Controller.ControllerActionButton
Definition
ControllerActionButton.cs:11
Cpp2IlInjected.AnalysisFailedException
Definition
AnalysisFailedException.cs:7
GUIButtonBar.AddAction
void AddAction(GUIButtonBar.Action action, ControllerActionButton bannerAction)
Definition
GUIButtonBar.cs:18
GUIButtonBar.ItemCount
int ItemCount
Definition
GUIButtonBar.cs:160
GUIButtonBar.RefreshItems
void RefreshItems()
Definition
GUIButtonBar.cs:38
GUIButtonBar.Draw
void Draw()
Definition
GUIButtonBar.cs:136
GUIButtonBar.ItemOver
void ItemOver(int index)
Definition
GUIButtonBar.cs:73
GUIButtonBar.itemOver
GUIItemGrid.CursorOver itemOver
Definition
GUIButtonBar.cs:178
GUIButtonBar.Items
GUIButtonBar.Action[] Items
Definition
GUIButtonBar.cs:163
GUIButtonBar.GetButtonSetup
Texture2D GetButtonSetup(GUIButtonBar.Action action, int entry, [Out] bool disabled, [Out] string actionString, [Out] TransactionButton_Layout buttonLayout)
Definition
GUIButtonBar.cs:78
GUIButtonBar.Action
Action
Definition
GUIButtonBar.cs:185
GUIButtonBar.Action.Bestiary
@ Bestiary
GUIButtonBar.Action.Tutorial
@ Tutorial
GUIButtonBar.Action.Map
@ Map
GUIButtonBar.Action.ButtonBarToggle
@ ButtonBarToggle
GUIButtonBar.Action.Chat
@ Chat
GUIButtonBar.Action.Housing
@ Housing
GUIButtonBar.Action.JourneyModeSettings
@ JourneyModeSettings
GUIButtonBar.Action.MiniMapToggle
@ MiniMapToggle
GUIButtonBar.Action.PVP
@ PVP
GUIButtonBar.Action.Count
@ Count
GUIButtonBar.Action.Duplication
@ Duplication
GUIButtonBar.ItemDraw
void ItemDraw(ItemGrid_Layout gridLayout, int index, Vector2 position, float scale)
Definition
GUIButtonBar.cs:111
GUIButtonBar.itemDraw
GUIItemGrid.DrawItemHandler itemDraw
Definition
GUIButtonBar.cs:181
GUIButtonBar.GUIButtonBar
GUIButtonBar()
Definition
GUIButtonBar.cs:13
GUIButtonBar.ItemScale
float ItemScale(int index)
Definition
GUIButtonBar.cs:67
GUIButtonBar.PerformAction
void PerformAction(GUIButtonBar.Action action)
Definition
GUIButtonBar.cs:131
GUIButtonBar.ItemsActions
ControllerActionButton[] ItemsActions
Definition
GUIButtonBar.cs:166
GUIButtonBar.itemScale
GUIItemGrid.GetItemScaleHandler itemScale
Definition
GUIButtonBar.cs:175
GUIButtonBar.Scale
float[] Scale
Definition
GUIButtonBar.cs:169
GUIButtonBar.Expanded
bool Expanded
Definition
GUIButtonBar.cs:172
GUIButtonBar
Definition
GUIButtonBar.cs:11
GUIItemGrid.CursorOver
Definition
GUIItemGrid.cs:194
GUIItemGrid.DrawItemHandler
Definition
GUIItemGrid.cs:277
GUIItemGrid.GetItemScaleHandler
Definition
GUIItemGrid.cs:226
GUITransactionButton.InputState
InputState
Definition
GUITransactionButton.cs:534
GUITransactionButton
Definition
GUITransactionButton.cs:11
ItemGrid_Layout
Definition
ItemGrid_Layout.cs:7
Microsoft.Xna.Framework.Graphics.Texture2D
Definition
Texture2D.cs:10
System.ArrayTypeMismatchException
Definition
ArrayTypeMismatchException.cs:9
Terraria.Main.myPlayer
static int myPlayer
Definition
Main.cs:2337
Terraria.Main.GameMode
static int GameMode
Definition
Main.cs:4141
Terraria.Main.mapEnabled
static bool mapEnabled
Definition
Main.cs:1231
Terraria.Main.mapReady
static bool mapReady
Definition
Main.cs:1091
Terraria.Main.mapFullscreen
static bool mapFullscreen
Definition
Main.cs:1441
Terraria.Main
Definition
Main.cs:67
TransactionButton_Layout
Definition
TransactionButton_Layout.cs:10
Controller
Definition
Axis.cs:4
Cpp2IlInjected
Definition
AnalysisFailedException.cs:4
Microsoft.Xna.Framework.Graphics
Definition
Blend.cs:4
Microsoft.Xna.Framework
Definition
AudioChannels.cs:4
System.Runtime.InteropServices
Definition
_Activator.cs:4
System.ExceptionArgument.action
@ action
System.ExceptionArgument.index
@ index
System
Definition
__ComObject.cs:4
Terraria
Definition
Achievement.cs:10
Microsoft.Xna.Framework.Vector2
Definition
Vector2.cs:10
source
GUIButtonBar.cs
Generated by
1.10.0