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

◆ OnBubbleChange()

static void Terraria.GameContent.UI.EmoteBubble.OnBubbleChange ( int bubbleID)
inlinestatic

Definition at line 251 of file EmoteBubble.cs.

252 {
254 if (emoteBubble.anchor.type != 0 || !(emoteBubble.anchor.entity is Player player))
255 {
256 return;
257 }
258 foreach (EmoteBubble value in byID.Values)
259 {
260 if (value.anchor.type == WorldUIAnchor.AnchorType.Entity && value.anchor.entity == player && value.ID != bubbleID)
261 {
262 value.lifeTime = 6;
263 }
264 }
265 }
static Dictionary< int, EmoteBubble > byID
EmoteBubble(int emotion, WorldUIAnchor bubbleAnchor, int time=180)

References Terraria.GameContent.UI.EmoteBubble.byID, and System.value.

Referenced by Terraria.MessageBuffer.GetData(), and Terraria.GameContent.UI.EmoteBubble.NewBubble().