Inherits IEntityWithGlobals< GlobalEmoteBubble >.
|
|
WorldUIAnchor | anchor |
| |
|
int | emote |
| | This is the internal ID of this EmoteBubble.
|
| |
|
int | frame |
| |
|
int | frameCounter |
| |
|
int | frameSpeed = 8 |
| |
|
int | lifeTime |
| |
|
int | lifeTimeStart |
| |
|
int | metadata |
| |
|
|
const int | EMOTE_SHEET_EMOTES_PER_ROW = 4 |
| |
|
const int | EMOTE_SHEET_HORIZONTAL_FRAMES = 8 |
| |
|
static readonly int | EMOTE_SHEET_VERTICAL_FRAMES = 2 + (EmoteID.Count - 1) / 4 |
| |
◆ CheckForNPCsToReactToEmoteBubble()
| static void EmoteBubble.CheckForNPCsToReactToEmoteBubble |
( |
int |
emoteID, |
|
|
Player |
player |
|
) |
| |
|
static |
Try to find a NPC close enough (less than 200 pixels) to react to the emote sent by the player.
- Parameters
-
◆ GetExistingEmoteBubble()
| static EmoteBubble EmoteBubble.GetExistingEmoteBubble |
( |
int |
whoAmI | ) |
|
|
static |
Gets the emote bubble that exists in the world by WhoAmI. Returns null if there is no corresponding emote
- Parameters
-
- Returns
◆ MakeLocalPlayerEmote()
| static void EmoteBubble.MakeLocalPlayerEmote |
( |
int |
emoteId | ) |
|
|
static |
Send a emote from Main.LocalPlayer. Should never be called on server.
- Parameters
-
◆ MakePlayerEmote()
| static void EmoteBubble.MakePlayerEmote |
( |
Player |
player, |
|
|
int |
emoteId, |
|
|
bool |
syncBetweenClients = true |
|
) |
| |
|
static |
Send a emote from the player
- Parameters
-
| player | |
| emoteId | |
| syncBetweenClients | If true, this emote will be automatically synchronized between clients |
◆ NewBubble()
| static int EmoteBubble.NewBubble |
( |
int |
emoticon, |
|
|
WorldUIAnchor |
bubbleAnchor, |
|
|
int |
time |
|
) |
| |
|
static |
Use this method to spawn a emote bubble
- Parameters
-
| emoticon | The emote ID of the emote that will spawn. |
| bubbleAnchor | The WorldUIAnchor instance for the emote. You can use
Definition: WorldUIAnchor.cs:7
to get the instance. |
| time | How long this emote remains. |
- Returns
- The WhoAmI of this emote
◆ NewBubbleNPC()
Use this method to make NPCs use a random emote based on the pick emote table.
- Parameters
-
| bubbleAnchor | The WorldUIAnchor instance for the emote. You can use to get the instance. |
| time | How long this emote remains. |
| other | The WorldUIAnchor instance from the other side of the conversation. |
- Returns
- The WhoAmI of this emote