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
EmoteButton.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.Localization
;
6
using
Terraria.UI
;
7
8
namespace
Terraria.GameContent.UI.Elements
9
{
10
// Token: 0x02000A8E RID: 2702
11
public
class
EmoteButton
:
UIElement
12
{
13
// Token: 0x06004FD2 RID: 20434 RVA: 0x0027B754 File Offset: 0x00279954
14
public
EmoteButton
(
int
emoteIndex
)
15
{
16
int
num = 1;
17
if
(num == 0)
18
{
19
}
20
base
..ctor();
21
if
(num == 0)
22
{
23
}
24
string
text2;
25
string
text
=
"Images/Extra_"
+ text2;
26
}
27
28
// Token: 0x06004FD3 RID: 20435 RVA: 0x0027B78C File Offset: 0x0027998C
29
private
Rectangle
GetFrame
()
30
{
31
int
frameCounter = this.
_frameCounter
;
32
Asset<Texture2D>
texture = this.
_texture
;
33
int
emoteIndex
= this.
_emoteIndex
;
34
if
(frameCounter == 0)
35
{
36
}
37
Rectangle
rectangle
;
38
return
rectangle
;
39
}
40
41
// Token: 0x06004FD4 RID: 20436 RVA: 0x0027B7B4 File Offset: 0x002799B4
42
private
void
UpdateFrame
()
43
{
44
}
45
46
// Token: 0x06004FD5 RID: 20437 RVA: 0x0027B7C4 File Offset: 0x002799C4
47
public
override
void
Update
(
GameTime
gameTime
)
48
{
49
int
frameCounter = this.
_frameCounter
;
50
this._frameCounter
= frameCounter;
51
base
.Update(
gameTime
);
52
}
53
54
// Token: 0x06004FD6 RID: 20438 RVA: 0x0027B7E8 File Offset: 0x002799E8
55
protected
override
void
DrawSelf
(
SpriteBatch
spriteBatch)
56
{
57
int
num = 1;
58
if
(num == 0)
59
{
60
}
61
Rectangle
frame = this.
GetFrame
();
62
Asset<Texture2D>
texture = this.
_texture
;
63
if
(num == 0)
64
{
65
}
66
int
num2
=
Utils
.
Width
(texture);
67
Vector2
vector = frame.Size();
68
if
(num == 0)
69
{
70
}
71
bool
hovered = this.
_hovered
;
72
if
(hovered)
73
{
74
if
(num == 0)
75
{
76
}
77
return
;
78
}
79
Asset<Texture2D>
texture2
= this.
_texture
;
80
Asset<Texture2D>
texture3
= this.
_texture
;
81
Asset<Texture2D>
textureBorder
= this.
_textureBorder
;
82
if
(!hovered)
83
{
84
}
85
if
(!
true
)
86
{
87
}
88
bool
hovered2
= this.
_hovered
;
89
if
(hovered2)
90
{
91
if
(!
hovered2
)
92
{
93
}
94
int
emoteIndex
= this.
_emoteIndex
;
95
string
text
;
96
string
textValue
=
Language
.
GetTextValue
(
"EmojiName."
+
text
);
97
string
text2 =
"/"
+
textValue
;
98
if
(!hovered)
99
{
100
}
101
}
102
}
103
104
// Token: 0x06004FD7 RID: 20439 RVA: 0x0027B89C File Offset: 0x00279A9C
105
public
override
void
MouseOver
(
UIMouseEvent
evt
)
106
{
107
base
.MouseOver(
evt
);
108
this._hovered
=
true
;
109
}
110
111
// Token: 0x06004FD8 RID: 20440 RVA: 0x0027B8B8 File Offset: 0x00279AB8
112
public
override
void
MouseOut
(
UIMouseEvent
evt
)
113
{
114
base
.MouseOut(
evt
);
115
}
116
117
// Token: 0x06004FD9 RID: 20441 RVA: 0x0027B8CC File Offset: 0x00279ACC
118
public
override
void
LeftClick
(
UIMouseEvent
evt
)
119
{
120
base
.LeftClick(
evt
);
121
if
(!
true
)
122
{
123
}
124
int
myPlayer;
125
if
(
true
)
126
{
127
if
(!
true
)
128
{
129
}
130
myPlayer =
Main
.
myPlayer
;
131
int
emoteIndex
= this.
_emoteIndex
;
132
return
;
133
}
134
Player
localPlayer
=
Main
.
LocalPlayer
;
135
Player
localPlayer2
=
Main
.
LocalPlayer
;
136
EmoteBubble
.
CheckForNPCsToReactToEmoteBubble
(myPlayer,
localPlayer2
);
137
IngameFancyUI
.
Close
();
138
}
139
140
// Token: 0x040088AC RID: 34988
141
private
Asset<Texture2D>
_texture
;
142
143
// Token: 0x040088AD RID: 34989
144
private
Asset<Texture2D>
_textureBorder
;
145
146
// Token: 0x040088AE RID: 34990
147
private
int
_emoteIndex
;
148
149
// Token: 0x040088AF RID: 34991
150
private
bool
_hovered
;
151
152
// Token: 0x040088B0 RID: 34992
153
private
int
_frameCounter
;
154
}
155
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Microsoft.Xna.Framework.GameTime
Definition
GameTime.cs:7
Microsoft.Xna.Framework.Graphics.SpriteBatch
Definition
SpriteBatch.cs:14
ReLogic.Content.Asset
Definition
Asset.cs:10
Terraria.GameContent.UI.Elements.EmoteButton._frameCounter
int _frameCounter
Definition
EmoteButton.cs:153
Terraria.GameContent.UI.Elements.EmoteButton._textureBorder
Asset< Texture2D > _textureBorder
Definition
EmoteButton.cs:144
Terraria.GameContent.UI.Elements.EmoteButton.Update
override void Update(GameTime gameTime)
Definition
EmoteButton.cs:47
Terraria.GameContent.UI.Elements.EmoteButton._emoteIndex
int _emoteIndex
Definition
EmoteButton.cs:147
Terraria.GameContent.UI.Elements.EmoteButton._hovered
bool _hovered
Definition
EmoteButton.cs:150
Terraria.GameContent.UI.Elements.EmoteButton.LeftClick
override void LeftClick(UIMouseEvent evt)
Definition
EmoteButton.cs:118
Terraria.GameContent.UI.Elements.EmoteButton.MouseOut
override void MouseOut(UIMouseEvent evt)
Definition
EmoteButton.cs:112
Terraria.GameContent.UI.Elements.EmoteButton.DrawSelf
override void DrawSelf(SpriteBatch spriteBatch)
Definition
EmoteButton.cs:55
Terraria.GameContent.UI.Elements.EmoteButton.GetFrame
Rectangle GetFrame()
Definition
EmoteButton.cs:29
Terraria.GameContent.UI.Elements.EmoteButton.EmoteButton
EmoteButton(int emoteIndex)
Definition
EmoteButton.cs:14
Terraria.GameContent.UI.Elements.EmoteButton._texture
Asset< Texture2D > _texture
Definition
EmoteButton.cs:141
Terraria.GameContent.UI.Elements.EmoteButton.MouseOver
override void MouseOver(UIMouseEvent evt)
Definition
EmoteButton.cs:105
Terraria.GameContent.UI.Elements.EmoteButton.UpdateFrame
void UpdateFrame()
Definition
EmoteButton.cs:42
Terraria.GameContent.UI.Elements.EmoteButton
Definition
EmoteButton.cs:12
Terraria.GameContent.UI.EmoteBubble.CheckForNPCsToReactToEmoteBubble
static void CheckForNPCsToReactToEmoteBubble(int emoteID, Player player)
Definition
EmoteBubble.cs:108
Terraria.GameContent.UI.EmoteBubble
Definition
EmoteBubble.cs:12
Terraria.Localization.Language.GetTextValue
static string GetTextValue(string key)
Definition
Language.cs:54
Terraria.Localization.Language
Definition
Language.cs:11
Terraria.Main.myPlayer
static int myPlayer
Definition
Main.cs:2337
Terraria.Main.LocalPlayer
static Player LocalPlayer
Definition
Main.cs:5267
Terraria.Main
Definition
Main.cs:67
Terraria.Player
Definition
Player.cs:33
Terraria.UI.IngameFancyUI.Close
static void Close()
Definition
IngameFancyUI.cs:84
Terraria.UI.IngameFancyUI
Definition
IngameFancyUI.cs:14
Terraria.UI.UIElement
Definition
UIElement.cs:15
Terraria.UI.UIMouseEvent
Definition
UIMouseEvent.cs:8
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.ExceptionArgument.text
@ text
System
Definition
__ComObject.cs:4
Terraria.GameContent.UI.Elements
Definition
EmoteButton.cs:9
Terraria.Localization
Definition
GameCulture.cs:7
Terraria.UI
Definition
Alignment.cs:5
Microsoft.Xna.Framework.Rectangle
Definition
Rectangle.cs:9
Microsoft.Xna.Framework.Vector2
Definition
Vector2.cs:10
source
Terraria
GameContent
UI
Elements
EmoteButton.cs
Generated by
1.10.0