-
Notifications
You must be signed in to change notification settings - Fork 2.2k
LUA Script API: Custom Text
ShadowMario edited this page Aug 21, 2022
·
2 revisions
creates a Lua Text object on position x
, y
and a width with 'width'
Spawns a Lua Text on the stage
removes a Lua Text off the stage
-
tag
- The Lua Sprite's tag -
destroy
- Specifies if you don't want to use the sprite anymore. Default value istrue
(Set tofalse
if you want to re-add it later)
Sets text string at the specified tag
Sets text size at the specified tag
Sets text width at the specified tag
Sets text border at the specified tag
Sets text color at the specified tag
Sets text font at the specified tag
Sets text as italic or not based on the italic
parameter
Sets text alignment at the specified tag
'left'
,'right'
, or 'center'
Gets text object's text at the specified tag
Gets text object's size at the specified tag
Gets text object's font at the specified tag
Gets text object's width at the specified tag