Endstar LUA API Documentation
Loading...
Searching...
No Matches
TextBubble Class Reference

Used to modify the behavior of a text bubble. Can display text, modify text and more. More...

Public Member Functions

void Display (Context instigator, long index)
 Displays a specific text in the text bubble.
 
void DisplayWithDuration (Context instigator, int index, float duration)
 Displays a specific text in the text bubble for a certain duration.
 
void DisplayForTarget (Context instigator, Context displayTarget, long index)
 Displays a specific text to a single player in the text bubble.
 
void DisplayForTargetWithDuration (Context instigator, Context displayTarget, long index, float duration)
 Displays a specific text to a single player in the text bubble for a duration.
 
void Close (Context instigator)
 Closes the text bubble.
 
void CloseForTarget (Context instigator, Context target)
 Closes the text bubble for a specific player context.
 
string[] GetTexts ()
 Gets an array of all the texts in this text bubble currently.
 
void SetLocalizedTextViaTable (Context instigator, LuaTable newText)
 Sets the text of this text bubble with a lua table.
 
int GetTextLength ()
 Gets the number of texts in this text bubble.
 
void SetLocalizedText (Context instigator, LocalizedString[] text)
 Sets the text of this text bubble with a localized string array.
 
void SetDisplayName (Context instigator, LocalizedString text)
 Sets the display name for this text bubble.
 

Detailed Description

Used to modify the behavior of a text bubble. Can display text, modify text and more.

Member Function Documentation

◆ Close()

void Close ( Context instigator)

Closes the text bubble.

◆ CloseForTarget()

void CloseForTarget ( Context instigator,
Context target )

Closes the text bubble for a specific player context.

Parameters
instigatorThe source context triggering this change
targetThe target to close the text bubble for.

◆ Display()

void Display ( Context instigator,
long index )

Displays a specific text in the text bubble.

Parameters
instigatorThe source context triggering this change
indexThe index of the text to display

◆ DisplayForTarget()

void DisplayForTarget ( Context instigator,
Context displayTarget,
long index )

Displays a specific text to a single player in the text bubble.

Parameters
instigatorThe source context triggering this change
displayTargetThe context of the player to display the text to.
indexThe index of the text to display.

◆ DisplayForTargetWithDuration()

void DisplayForTargetWithDuration ( Context instigator,
Context displayTarget,
long index,
float duration )

Displays a specific text to a single player in the text bubble for a duration.

Parameters
instigatorThe source context triggering this change
displayTargetThe context of the player to display the text to.
indexThe index of the text to display.
durationThe duration in seconds for the text to be displayed.

◆ DisplayWithDuration()

void DisplayWithDuration ( Context instigator,
int index,
float duration )

Displays a specific text in the text bubble for a certain duration.

Parameters
instigatorThe source context triggering this change
indexThe index of the text to display.
durationThe duration in seconds for the text to be displayed.

◆ GetTextLength()

int GetTextLength ( )

Gets the number of texts in this text bubble.

Returns
The number of texts in this text bubble.

◆ GetTexts()

string[] GetTexts ( )

Gets an array of all the texts in this text bubble currently.

Returns
An array of localized strings containing the text on this text bubble

◆ SetDisplayName()

void SetDisplayName ( Context instigator,
LocalizedString text )

Sets the display name for this text bubble.

Parameters
instigatorThe source context triggering this change
textThe display name.

◆ SetLocalizedText()

void SetLocalizedText ( Context instigator,
LocalizedString[] text )

Sets the text of this text bubble with a localized string array.

Parameters
instigatorThe source context triggering this change
textThe new text for the text bubble

◆ SetLocalizedTextViaTable()

void SetLocalizedTextViaTable ( Context instigator,
LuaTable newText )

Sets the text of this text bubble with a lua table.

Parameters
instigatorThe source context triggering this change
newTextThe new text for the text bubble