tModLoader v2024.04
A mod to make and play Terraria mods
EmoteBubbleLoader Class Reference

Static Public Member Functions

static ModEmoteBubble GetEmoteBubble (int type)
 Gets the ModEmoteBubble instance corresponding to the specified ID. More...
 
static ? Rectangle GetFrame (EmoteBubble emoteBubble)
 
static ? Rectangle GetFrameInEmoteMenu (int emoteType, int frame, int frameCounter)
 
static void OnSpawn (EmoteBubble emoteBubble)
 
static void PostDraw (EmoteBubble emoteBubble, SpriteBatch spriteBatch, Texture2D texture, Vector2 position, Rectangle frame, Vector2 origin, SpriteEffects spriteEffects)
 
static void PostDrawInEmoteMenu (int emoteType, SpriteBatch spriteBatch, EmoteButton uiEmoteButton, Vector2 position, Rectangle frame, Vector2 origin)
 
static bool PreDraw (EmoteBubble emoteBubble, SpriteBatch spriteBatch, Texture2D texture, Vector2 position, Rectangle frame, Vector2 origin, SpriteEffects spriteEffects)
 
static bool PreDrawInEmoteMenu (int emoteType, SpriteBatch spriteBatch, EmoteButton uiEmoteButton, Vector2 position, Rectangle frame, Vector2 origin)
 
static bool UpdateFrame (EmoteBubble emoteBubble)
 
static bool UpdateFrameInEmoteMenu (int emoteType, ref int frameCounter)
 

Properties

static int EmoteBubbleCount [get]
 

Member Function Documentation

◆ GetEmoteBubble()

static ModEmoteBubble EmoteBubbleLoader.GetEmoteBubble ( int  type)
static

Gets the ModEmoteBubble instance corresponding to the specified ID.

Parameters
typeThe ID of the emote bubble
Returns
The ModEmoteBubble instance in the emote bubbles array, null if not found.