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.
1using System;
6using Terraria.UI;
7
9{
10 // Token: 0x02000A8E RID: 2702
11 public class EmoteButton : UIElement
12 {
13 // Token: 0x06004FD2 RID: 20434 RVA: 0x0027B754 File Offset: 0x00279954
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
30 {
31 int frameCounter = this._frameCounter;
32 Asset<Texture2D> texture = this._texture;
33 int emoteIndex = this._emoteIndex;
34 if (frameCounter == 0)
35 {
36 }
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 }
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 }
138 }
139
140 // Token: 0x040088AC RID: 34988
142
143 // Token: 0x040088AD RID: 34989
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}
class f__AnonymousType0<< Count > j__TPar
override void Update(GameTime gameTime)
override void LeftClick(UIMouseEvent evt)
override void MouseOut(UIMouseEvent evt)
override void DrawSelf(SpriteBatch spriteBatch)
override void MouseOver(UIMouseEvent evt)
static void CheckForNPCsToReactToEmoteBubble(int emoteID, Player player)
static string GetTextValue(string key)
Definition Language.cs:54
static int myPlayer
Definition Main.cs:2337
static Player LocalPlayer
Definition Main.cs:5267
static int Width(this Asset< Texture2D > asset)
Definition Utils.cs:696