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

◆ GetFrameInEmoteMenu()

static ? Rectangle Terraria.ModLoader.EmoteBubbleLoader.GetFrameInEmoteMenu ( int emoteType,
int frame,
int frameCounter )
inlinestatic

Definition at line 233 of file EmoteBubbleLoader.cs.

234 {
235 if (emoteType >= EmoteID.Count)
236 {
237 return GetEmoteBubble(emoteType)?.GetFrameInEmoteMenu(frame, frameCounter);
238 }
239 Rectangle? result = null;
240 foreach (GlobalEmoteBubble globalEmoteBubble in globalEmoteBubbles)
241 {
242 Rectangle? frameRect = globalEmoteBubble.GetFrameInEmoteMenu(emoteType, frame, frameCounter);
243 if (frameRect.HasValue)
244 {
246 }
247 }
248 return result;
249 }
static readonly int Count
Definition EmoteID.cs:50
static ModEmoteBubble GetEmoteBubble(int type)
Gets the T:Terraria.ModLoader.ModEmoteBubble instance corresponding to the specified ID.
static readonly List< GlobalEmoteBubble > globalEmoteBubbles

References Terraria.GameContent.UI.EmoteID.Count, Terraria.ModLoader.EmoteBubbleLoader.GetEmoteBubble(), and Terraria.ModLoader.EmoteBubbleLoader.globalEmoteBubbles.

Referenced by Terraria.GameContent.UI.Elements.EmoteButton.GetFrame().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: