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
UISlicedImage.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: 0x02000ACD RID: 2765
9
public
class
UISlicedImage
:
UIElement
10
{
11
// Token: 0x170008CE RID: 2254
12
// (get) Token: 0x06005155 RID: 20821 RVA: 0x002802CC File Offset: 0x0027E4CC
13
// (set) Token: 0x06005156 RID: 20822 RVA: 0x002802E4 File Offset: 0x0027E4E4
14
public
Color
Color
15
{
16
get
17
{
18
Color
color = this.
_color
;
19
Color
color2
;
20
return
color2
;
21
}
22
set
23
{
24
this._color
=
value
;
25
}
26
}
27
28
// Token: 0x06005157 RID: 20823 RVA: 0x002802F8 File Offset: 0x0027E4F8
29
public
UISlicedImage
(
Asset<Texture2D>
texture)
30
{
31
int
num = 1;
32
if
(num == 0)
33
{
34
}
35
base
..ctor();
36
this._texture
= texture;
37
if
(num == 0)
38
{
39
}
40
int
num2
=
Utils
.
Width
(texture);
41
int
num3
=
Utils
.
Height
(this.
_texture
);
42
}
43
44
// Token: 0x06005158 RID: 20824 RVA: 0x00280330 File Offset: 0x0027E530
45
public
void
SetImage
(
Asset<Texture2D>
texture)
46
{
47
this._texture
= texture;
48
}
49
50
// Token: 0x06005159 RID: 20825 RVA: 0x00280344 File Offset: 0x0027E544
51
protected
override
void
DrawSelf
(
SpriteBatch
spriteBatch)
52
{
53
Asset<Texture2D>
texture = this.
_texture
;
54
float
x = this.
_dimensions
.
X
;
55
float
y = this.
_dimensions
.
Y
;
56
float
width = this.
_dimensions
.
Width
;
57
float
height = this.
_dimensions
.
Height
;
58
int
leftSliceDepth
= this.
_leftSliceDepth
;
59
int
rightSliceDepth
= this.
_rightSliceDepth
;
60
int
topSliceDepth
= this.
_topSliceDepth
;
61
int
bottomSliceDepth
= this.
_bottomSliceDepth
;
62
Color
color = this.
_color
;
63
if
(texture ==
null
)
64
{
65
}
66
}
67
68
// Token: 0x0600515A RID: 20826 RVA: 0x002803B4 File Offset: 0x0027E5B4
69
public
void
SetSliceDepths
(
int
top,
int
bottom,
int
left,
int
right)
70
{
71
this._leftSliceDepth
= left;
72
this._rightSliceDepth
= right;
73
this._topSliceDepth
= top;
74
this._bottomSliceDepth
= bottom;
75
}
76
77
// Token: 0x0600515B RID: 20827 RVA: 0x002803E0 File Offset: 0x0027E5E0
78
public
void
SetSliceDepths
(
int
fluff
)
79
{
80
}
81
82
// Token: 0x040089E7 RID: 35303
83
private
Asset<Texture2D>
_texture
;
84
85
// Token: 0x040089E8 RID: 35304
86
private
Color
_color
;
87
88
// Token: 0x040089E9 RID: 35305
89
private
int
_leftSliceDepth
;
90
91
// Token: 0x040089EA RID: 35306
92
private
int
_rightSliceDepth
;
93
94
// Token: 0x040089EB RID: 35307
95
private
int
_topSliceDepth
;
96
97
// Token: 0x040089EC RID: 35308
98
private
int
_bottomSliceDepth
;
99
}
100
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Microsoft.Xna.Framework.Graphics.SpriteBatch
Definition
SpriteBatch.cs:14
ReLogic.Content.Asset
Definition
Asset.cs:10
Terraria.GameContent.UI.Elements.UISlicedImage._leftSliceDepth
int _leftSliceDepth
Definition
UISlicedImage.cs:89
Terraria.GameContent.UI.Elements.UISlicedImage._rightSliceDepth
int _rightSliceDepth
Definition
UISlicedImage.cs:92
Terraria.GameContent.UI.Elements.UISlicedImage.DrawSelf
override void DrawSelf(SpriteBatch spriteBatch)
Definition
UISlicedImage.cs:51
Terraria.GameContent.UI.Elements.UISlicedImage.SetImage
void SetImage(Asset< Texture2D > texture)
Definition
UISlicedImage.cs:45
Terraria.GameContent.UI.Elements.UISlicedImage.SetSliceDepths
void SetSliceDepths(int top, int bottom, int left, int right)
Definition
UISlicedImage.cs:69
Terraria.GameContent.UI.Elements.UISlicedImage.UISlicedImage
UISlicedImage(Asset< Texture2D > texture)
Definition
UISlicedImage.cs:29
Terraria.GameContent.UI.Elements.UISlicedImage._topSliceDepth
int _topSliceDepth
Definition
UISlicedImage.cs:95
Terraria.GameContent.UI.Elements.UISlicedImage.SetSliceDepths
void SetSliceDepths(int fluff)
Definition
UISlicedImage.cs:78
Terraria.GameContent.UI.Elements.UISlicedImage._texture
Asset< Texture2D > _texture
Definition
UISlicedImage.cs:83
Terraria.GameContent.UI.Elements.UISlicedImage._bottomSliceDepth
int _bottomSliceDepth
Definition
UISlicedImage.cs:98
Terraria.GameContent.UI.Elements.UISlicedImage._color
Color _color
Definition
UISlicedImage.cs:86
Terraria.GameContent.UI.Elements.UISlicedImage
Definition
UISlicedImage.cs:10
Terraria.UI.UIElement._dimensions
CalculatedStyle _dimensions
Definition
UIElement.cs:1172
Terraria.UI.UIElement
Definition
UIElement.cs:15
Terraria.Utils.Height
static int Height(this Asset< Texture2D > asset)
Definition
Utils.cs:701
Terraria.Utils.Width
static int Width(this Asset< Texture2D > asset)
Definition
Utils.cs:696
Terraria.Utils
Definition
Utils.cs:25
Microsoft.Xna.Framework.Graphics
Definition
Blend.cs:4
ReLogic.Content
Definition
Asset.cs:7
System.ExceptionArgument.value
@ value
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
UISlicedImage.cs
Generated by
1.10.0