-
Notifications
You must be signed in to change notification settings - Fork 7
Lua Script API: Custom Text
Initializes the creation of a text object. This will not add the text object immediately into the game yet.
-
tag
- The unique tag name for the text object to inherit for later use. -
text
- An optional parameter, The given text content for the text object to display inside the game. -
width
- An optional parameter, the specified text-box width to be set in; Default value:0
. -
x
- An optional parameter, the specified x-position value of the text object to be set at; Default value:0
. -
y
- An optional parameter, the specified y-position value of the text object to be set at; Default value:0
.
Adds the given text object into the game. Once a text object has been added it will overlap the previous added object. Causing the recently added object to be placed in front of every object in the game.
-
tag
- The given text object name tag to add within the game.
Removes the given text object from the game.
-
tag
- The given text object name tag to remove from the game. -
destroy
- An optional parameter, whether the given text object will be permanently removed or not; Default value:true
.
Sets the given text object's string content with a new content. Returns true
, if it works properly.
-
tag
- The given text object name tag to set a new content. -
text
- The new string content to set to.
Sets the given text object's size with a new size value.
-
tag
- The given text object name tag to set a new size. Returnstrue
, if it works properly. -
size
- The new size value to set to.
Sets the given text object's auto-sizing, it determines the width and height by its text content size.
-
tag
- The given text object name tag to enable auto-sizing or not. -
autoSize
- Whether to enable auto-sizing or not.
Sets the given text object's text-box width with a new text-box width value. Returns true
, if it works properly.
-
tag
- The given text object name tag to set a new text-box width. -
width
- The new text-box width value to set to.
Sets the given text object's text-box height with a new text-box height value. Returns true
, if it works properly.
-
tag
- The given text object name tag to set a new text-box height. -
height
- The new text-box height value to set to.
Sets the given text object's border size, color, and style with a new value.
-
tag
- The given text object name tag to set a new border properties. Returnstrue
, if it works properly. -
size
- The new border size to set to. -
color
- The new border color to set to. -
style
- An optional parameter, The new border style to set to; Default value:outline
.
Sets the given text object's text color with a new color value. Returns true
, if it works properly.
-
tag
- The given text object name tag to set a new color value to. -
color
- The new color value to set to.
Sets the given text object's text alignment with a new alignment. Returns true
, if it works properly.
-
tag
- The given text object name tag to set a new alignment to. -
alignment
- An optional parameter, the new alignment to set to; Default value:left
.
Sets the given text object's font with a new font. Returns true
, if it works properly.
-
tag
- The given text object name tag to set a new font to. -
newFont
- The new font to set to; starts within thefonts
folder directory.
Sets the given text object's into a italic type. Returns true
, if it works properly.
-
tag
- The given text object name tag to enable italic type or not. -
italic
- Whether to enable italic type or not.
Gets the given text object's current string content value.
-
tag
- The given text object name tag to get the current string content from.
Gets the given text object's current size value.
-
tag
- The given text object name tag to get the current size value from.
Gets the given text object's current text-box width value.
-
tag
- The given text object name tag to get the current text-box width from.
Gets the given text object's current font.
-
tag
- The given text object name tag to get the current font from.
Is the page in some way inaccurate? an error, a typo, or outdated data? To report it, use the "Issue Tab". Or do you wish to include a new function or add new information? use the "Pull Request Tab". Help is always appreciated!
- Event Callbacks
- Custom Sprite
- Custom Text
- Object Functions
- General Functions
- Scripting & File Functions
- Game Input Control Functions
- Language Translation
- HScript Functions
- Custom Substates
- Custom Shaders
- Deprecated & Removed Functions
- Sound & Music Functions
- Tweens & Timers Functions
- Reflection Functions
- Variables