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
UIImage.cs
Go to the documentation of this file.
1
using
System
;
2
using
Microsoft.Xna.Framework
;
3
using
Microsoft.Xna.Framework.Graphics
;
4
using
ReLogic.Content
;
5
using
Terraria.UI
;
6
7
namespace
Terraria.GameContent.UI.Elements
8
{
9
// Token: 0x02000AB9 RID: 2745
10
public
class
UIImage
:
UIElement
11
{
12
// Token: 0x060050E3 RID: 20707 RVA: 0x0027EC14 File Offset: 0x0027CE14
13
public
UIImage
(
Asset<Texture2D>
texture)
14
{
15
int
num = 16256;
16
this.ImageScale
= (float)num;
17
if
(num == 0)
18
{
19
}
20
if
(num == 0)
21
{
22
}
23
if
(!
true
)
24
{
25
}
26
base
..ctor();
27
this._texture
= texture;
28
int
num2
=
Utils
.
Width
(texture);
29
int
num3
=
Utils
.
Height
(this.
_texture
);
30
}
31
32
// Token: 0x060050E4 RID: 20708 RVA: 0x0027EC58 File Offset: 0x0027CE58
33
public
void
SetImage
(
Asset<Texture2D>
texture)
34
{
35
int
num = 1;
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: 0x060050E5 RID: 20709 RVA: 0x0027EC84 File Offset: 0x0027CE84
45
protected
override
void
DrawSelf
(
SpriteBatch
spriteBatch)
46
{
47
float
x = this.
_dimensions
.
X
;
48
Asset<Texture2D>
texture = this.
_texture
;
49
if
(this.
ScaleToFit
)
50
{
51
return
;
52
}
53
if
(texture ==
null
)
54
{
55
}
56
float
imageScale
= this.
ImageScale
;
57
if
(texture ==
null
)
58
{
59
}
60
float
x2
= this.
NormalizedOrigin
.
X
;
61
float
y = this.
NormalizedOrigin
.
Y
;
62
bool
removeFloatingPointsFromDrawPosition
= this.
RemoveFloatingPointsFromDrawPosition
;
63
if
(removeFloatingPointsFromDrawPosition)
64
{
65
if
(!
removeFloatingPointsFromDrawPosition
)
66
{
67
}
68
}
69
Asset<Texture2D>
texture2
= this.
_texture
;
70
float
rotation = this.
Rotation
;
71
float
x3
= this.
NormalizedOrigin
.
X
;
72
float
y2
= this.
NormalizedOrigin
.
Y
;
73
if
(texture2 ==
null
)
74
{
75
}
76
float
imageScale2
= this.
ImageScale
;
77
}
78
79
// Token: 0x040089A2 RID: 35234
80
private
Asset<Texture2D>
_texture
;
81
82
// Token: 0x040089A3 RID: 35235
83
public
float
ImageScale
;
84
85
// Token: 0x040089A4 RID: 35236
86
public
float
Rotation
;
87
88
// Token: 0x040089A5 RID: 35237
89
public
bool
ScaleToFit
;
90
91
// Token: 0x040089A6 RID: 35238
92
public
Color
Color
;
93
94
// Token: 0x040089A7 RID: 35239
95
public
Vector2
NormalizedOrigin
;
96
97
// Token: 0x040089A8 RID: 35240
98
public
bool
RemoveFloatingPointsFromDrawPosition
;
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.UIImage._texture
Asset< Texture2D > _texture
Definition
UIImage.cs:80
Terraria.GameContent.UI.Elements.UIImage.SetImage
void SetImage(Asset< Texture2D > texture)
Definition
UIImage.cs:33
Terraria.GameContent.UI.Elements.UIImage.DrawSelf
override void DrawSelf(SpriteBatch spriteBatch)
Definition
UIImage.cs:45
Terraria.GameContent.UI.Elements.UIImage.Color
Color Color
Definition
UIImage.cs:92
Terraria.GameContent.UI.Elements.UIImage.ScaleToFit
bool ScaleToFit
Definition
UIImage.cs:89
Terraria.GameContent.UI.Elements.UIImage.Rotation
float Rotation
Definition
UIImage.cs:86
Terraria.GameContent.UI.Elements.UIImage.UIImage
UIImage(Asset< Texture2D > texture)
Definition
UIImage.cs:13
Terraria.GameContent.UI.Elements.UIImage.NormalizedOrigin
Vector2 NormalizedOrigin
Definition
UIImage.cs:95
Terraria.GameContent.UI.Elements.UIImage.RemoveFloatingPointsFromDrawPosition
bool RemoveFloatingPointsFromDrawPosition
Definition
UIImage.cs:98
Terraria.GameContent.UI.Elements.UIImage.ImageScale
float ImageScale
Definition
UIImage.cs:83
Terraria.GameContent.UI.Elements.UIImage
Definition
UIImage.cs:11
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
Microsoft.Xna.Framework
Definition
AudioChannels.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
Microsoft.Xna.Framework.Vector2.X
float X
Definition
Vector2.cs:698
Microsoft.Xna.Framework.Vector2.Y
float Y
Definition
Vector2.cs:701
Microsoft.Xna.Framework.Vector2
Definition
Vector2.cs:10
Terraria.UI.CalculatedStyle.X
float X
Definition
CalculatedStyle.cs:62
source
Terraria
GameContent
UI
Elements
UIImage.cs
Generated by
1.10.0