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
UIPanel.cs
Go to the documentation of this file.
1
using
System
;
2
using
Microsoft.Xna.Framework.Graphics
;
3
using
ReLogic.Content
;
4
using
Terraria.UI
;
5
6
namespace
Terraria.GameContent.UI.Elements
7
{
8
// Token: 0x02000AC5 RID: 2757
9
public
class
UIPanel
:
UIElement
10
{
11
// Token: 0x0600511D RID: 20765 RVA: 0x0027F664 File Offset: 0x0027D864
12
public
UIPanel
()
13
{
14
Color
color;
15
this.BackgroundColor
= color;
16
base
..ctor();
17
Asset<Texture2D>
borderTexture
= this.
_borderTexture
;
18
if
(borderTexture ==
null
)
19
{
20
if
(
borderTexture
==
null
)
21
{
22
}
23
return
;
24
}
25
Asset<Texture2D>
backgroundTexture
= this.
_backgroundTexture
;
26
if
(backgroundTexture ==
null
)
27
{
28
if
(
backgroundTexture
==
null
)
29
{
30
}
31
return
;
32
}
33
base
.SetPadding(0f);
34
}
35
36
// Token: 0x0600511E RID: 20766 RVA: 0x0027F6BC File Offset: 0x0027D8BC
37
public
UIPanel
(
Asset<Texture2D>
customBackground
,
Asset<Texture2D>
customborder
,
int
customCornerSize
= 12,
int
customBarSize
= 4)
38
{
39
Color
color;
40
this.BackgroundColor
= color;
41
base
..ctor();
42
if
(this.
_borderTexture
==
null
)
43
{
44
this._borderTexture
=
customborder
;
45
}
46
Asset<Texture2D>
backgroundTexture
= this.
_backgroundTexture
;
47
if
(backgroundTexture ==
null
)
48
{
49
this._backgroundTexture
=
customBackground
;
50
}
51
this._cornerSize
=
customCornerSize
;
52
this._barSize
=
customBarSize
;
53
if
(
backgroundTexture
==
null
)
54
{
55
}
56
base
.SetPadding(0f);
57
}
58
59
// Token: 0x0600511F RID: 20767 RVA: 0x0027F724 File Offset: 0x0027D924
60
private
void
DrawPanel
(
SpriteBatch
spriteBatch,
Texture2D
texture,
Color
color)
61
{
62
float
x = this.
_dimensions
.
X
;
63
float
y = this.
_dimensions
.
Y
;
64
float
width = this.
_dimensions
.
Width
;
65
float
height = this.
_dimensions
.
Height
;
66
int
cornerSize
= this.
_cornerSize
;
67
int
cornerSize2
= this.
_cornerSize
;
68
int
cornerSize3
= this.
_cornerSize
;
69
int
cornerSize4
= this.
_cornerSize
;
70
int
cornerSize5
= this.
_cornerSize
;
71
int
barSize
= this.
_barSize
;
72
int
cornerSize6
= this.
_cornerSize
;
73
int
cornerSize7
= this.
_cornerSize
;
74
int
barSize2
= this.
_barSize
;
75
int
cornerSize8
= this.
_cornerSize
;
76
int
cornerSize9
= this.
_cornerSize
;
77
int
barSize3
= this.
_barSize
;
78
int
cornerSize10
= this.
_cornerSize
;
79
int
cornerSize11
= this.
_cornerSize
;
80
int
barSize4
= this.
_barSize
;
81
int
cornerSize12
= this.
_cornerSize
;
82
int
barSize5
= this.
_barSize
;
83
int
cornerSize13
= this.
_cornerSize
;
84
int
cornerSize14
= this.
_cornerSize
;
85
int
barSize6
= this.
_barSize
;
86
int
cornerSize15
= this.
_cornerSize
;
87
int
barSize7
= this.
_barSize
;
88
int
cornerSize16
= this.
_cornerSize
;
89
int
cornerSize17
= this.
_cornerSize
;
90
int
barSize8
= this.
_barSize
;
91
}
92
93
// Token: 0x06005120 RID: 20768 RVA: 0x0027F83C File Offset: 0x0027DA3C
94
protected
override
void
DrawSelf
(
SpriteBatch
spriteBatch)
95
{
96
if
(this.
_backgroundTexture
!=
null
)
97
{
98
Color
backgroundColor = this.
BackgroundColor
;
99
}
100
if
(this.
_borderTexture
!=
null
)
101
{
102
Color
borderColor
= this.
BorderColor
;
103
return
;
104
}
105
}
106
107
// Token: 0x040089C3 RID: 35267
108
private
int
_cornerSize
;
109
110
// Token: 0x040089C4 RID: 35268
111
private
int
_barSize
;
112
113
// Token: 0x040089C5 RID: 35269
114
private
Asset<Texture2D>
_borderTexture
;
115
116
// Token: 0x040089C6 RID: 35270
117
private
Asset<Texture2D>
_backgroundTexture
;
118
119
// Token: 0x040089C7 RID: 35271
120
public
Color
BorderColor
;
121
122
// Token: 0x040089C8 RID: 35272
123
public
Color
BackgroundColor
;
124
}
125
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Microsoft.Xna.Framework.Graphics.SpriteBatch
Definition
SpriteBatch.cs:14
Microsoft.Xna.Framework.Graphics.Texture2D
Definition
Texture2D.cs:10
ReLogic.Content.Asset
Definition
Asset.cs:10
Terraria.GameContent.UI.Elements.UIPanel.UIPanel
UIPanel(Asset< Texture2D > customBackground, Asset< Texture2D > customborder, int customCornerSize=12, int customBarSize=4)
Definition
UIPanel.cs:37
Terraria.GameContent.UI.Elements.UIPanel.UIPanel
UIPanel()
Definition
UIPanel.cs:12
Terraria.GameContent.UI.Elements.UIPanel.DrawSelf
override void DrawSelf(SpriteBatch spriteBatch)
Definition
UIPanel.cs:94
Terraria.GameContent.UI.Elements.UIPanel._borderTexture
Asset< Texture2D > _borderTexture
Definition
UIPanel.cs:114
Terraria.GameContent.UI.Elements.UIPanel.DrawPanel
void DrawPanel(SpriteBatch spriteBatch, Texture2D texture, Color color)
Definition
UIPanel.cs:60
Terraria.GameContent.UI.Elements.UIPanel.BorderColor
Color BorderColor
Definition
UIPanel.cs:120
Terraria.GameContent.UI.Elements.UIPanel.BackgroundColor
Color BackgroundColor
Definition
UIPanel.cs:123
Terraria.GameContent.UI.Elements.UIPanel._cornerSize
int _cornerSize
Definition
UIPanel.cs:108
Terraria.GameContent.UI.Elements.UIPanel._backgroundTexture
Asset< Texture2D > _backgroundTexture
Definition
UIPanel.cs:117
Terraria.GameContent.UI.Elements.UIPanel._barSize
int _barSize
Definition
UIPanel.cs:111
Terraria.GameContent.UI.Elements.UIPanel
Definition
UIPanel.cs:10
Terraria.UI.UIElement._dimensions
CalculatedStyle _dimensions
Definition
UIElement.cs:1172
Terraria.UI.UIElement
Definition
UIElement.cs:15
Microsoft.Xna.Framework.Graphics
Definition
Blend.cs:4
ReLogic.Content
Definition
Asset.cs:7
System
Definition
__ComObject.cs:4
Terraria.GameContent.UI.Elements
Definition
EmoteButton.cs:9
Terraria.UI
Definition
Alignment.cs:5
Microsoft.Xna.Framework.Graphics.Color
Definition
Color.cs:12
Terraria.UI.CalculatedStyle.X
float X
Definition
CalculatedStyle.cs:62
Terraria.UI.CalculatedStyle.Y
float Y
Definition
CalculatedStyle.cs:65
Terraria.UI.CalculatedStyle.Height
float Height
Definition
CalculatedStyle.cs:71
Terraria.UI.CalculatedStyle.Width
float Width
Definition
CalculatedStyle.cs:68
source
Terraria
GameContent
UI
Elements
UIPanel.cs
Generated by
1.10.0