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

◆ NewBubble()

static int Terraria.GameContent.UI.EmoteBubble.NewBubble ( int emoticon,
WorldUIAnchor bubbleAnchor,
int time )
inlinestatic

Definition at line 114 of file EmoteBubble.cs.

115 {
116 if (Main.netMode == 1)
117 {
118 return -1;
119 }
121 emoteBubble.ID = AssignNewID();
123 if (Main.netMode == 2)
124 {
126 NetMessage.SendData(91, -1, -1, null, emoteBubble.ID, tuple.Item1, tuple.Item2, time, emoticon);
127 }
129 return emoteBubble.ID;
130 }
static Dictionary< int, EmoteBubble > byID
EmoteBubble(int emotion, WorldUIAnchor bubbleAnchor, int time=180)
static Tuple< int, int > SerializeNetAnchor(WorldUIAnchor anch)
static void OnBubbleChange(int bubbleID)

References Terraria.GameContent.UI.EmoteBubble.EmoteBubble(), Terraria.GameContent.UI.EmoteBubble.AssignNewID(), Terraria.GameContent.UI.EmoteBubble.byID, Terraria.Main.netMode, Terraria.GameContent.UI.EmoteBubble.OnBubbleChange(), Terraria.NetMessage.SendData(), and Terraria.GameContent.UI.EmoteBubble.SerializeNetAnchor().

Referenced by Terraria.Cinematics.DD2Film.DryadAlertEmote(), Terraria.Cinematics.DD2Film.DryadConfusedEmote(), Terraria.NPC.FindFrame(), Terraria.MessageBuffer.GetData(), Terraria.GameContent.UI.EmoteBubble.MakeLocalPlayerEmote(), Terraria.Chat.Commands.EmojiCommand.ProcessOutgoingMessage(), and Terraria.Chat.Commands.RockPaperScissorsCommand.ProcessOutgoingMessage().