Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ EmoteButton()

Terraria.GameContent.UI.Elements.EmoteButton.EmoteButton ( int emoteIndex)
inline

Definition at line 22 of file EmoteButton.cs.

23 {
24 _texture = Main.Assets.Request<Texture2D>("Images/Extra_" + (short)48, (AssetRequestMode)1);
25 _textureBorder = Main.Assets.Request<Texture2D>("Images/UI/EmoteBubbleBorder", (AssetRequestMode)1);
26 _emoteIndex = emoteIndex;
27 Rectangle frame = GetFrame();
28 Width.Set(frame.Width, 0f);
29 Height.Set(frame.Height, 0f);
30 }
StyleDimension Height
Definition UIElement.cs:29
StyleDimension Width
Definition UIElement.cs:27
void Set(float pixels, float precent)

References Terraria.GameContent.UI.Elements.EmoteButton._emoteIndex, Terraria.GameContent.UI.Elements.EmoteButton._texture, Terraria.GameContent.UI.Elements.EmoteButton._textureBorder, Terraria.Main.Assets, Terraria.GameContent.UI.Elements.EmoteButton.GetFrame(), Microsoft.Xna.Framework.Rectangle.Height, Terraria.UI.UIElement.Height, Terraria.UI.StyleDimension.Set(), Microsoft.Xna.Framework.Rectangle.Width, and Terraria.UI.UIElement.Width.