Client
showTextUI
fjsf.showTextUI(text, data)Displays a TextUI element on the screen.
TextUI is typically used for interaction hints, short prompts, or contextual information.
Parameters
text
stringMain text displayed in the TextUI.data
table | nilOptional TextUI configuration object.Supported fields:
description
string | nilSecondary text displayed below the main text.icon
string | nilFontAwesome icon class.iconAnim
string | nilOptional icon animation class.color
string | nilText color (CSS value).background
string | nilBackground color (CSS value).size
string | nilTextUI size.Allowed values:
smallmediumlarge
position
string | nilScreen position.Supported values:
right-upright-middleright-downcenter-upcenter-middlecenter-downleft-upleft-middleleft-down
sounds
boolean | nilEnables sound effect when the TextUI appears.
iconAnim
Optional animation applied to the TextUI icon.
Type: string | nil
Allowed values are identical to notify / alert icon animations.
Invalid values are ignored.
Returns
This function does not return anything.
Example
hideTextUI
Hides the currently active TextUI.
Returns
This function does not return anything.
Example
isTextUIActive
Returns whether a TextUI is currently visible.
Returns
boolean
trueβ TextUI is visiblefalseβ No active TextUI
Example
Last updated