-
Notifications
You must be signed in to change notification settings - Fork 430
Text Functions
This page contains information on all functions provided within the windower.text
table.
Note that these functions are very rudimentary and involve a lot of work to get simple things done. The text objects created will not update, save their properties, or be draggable. To get any of that functionality, use the Texts Library.
Each of these functions takes a name
parameter which identifies the text object to modify.
Creates a text object.
Destroys a text object.
Returns two values, the x
and y
of its size.
Returns two values, the x
and y
of its top-left position.
-
px
integer - Pixels
Sets the border size.
-
alpha
integer - Alpha value, 0 to 255 -
red
integer - Red value, 0 to 255 -
green
integer - Green value, 0 to 255 -
blue
integer - Blue value, 0 to 255
Sets the color of the text background.
- `` bool -
true
or `false`
Sets the visible of the text background.
- `` bool -
true
or `false`
Sets the font bold, if true
was specified, otherwise resets to the non-bold default.
-
alpha
integer - Alpha value, 0 to 255 -
red
integer - Red value, 0 to 255 -
green
integer - Green value, 0 to 255 -
blue
integer - Blue value, 0 to 255
Sets the color of the font.
-
fontx
string - Font name
Sets the text object's font to the specified font, if available. Can now accept multiple fonts as fallbacks if the previous is not installed
-
size
integer - Font size
Sets the text object's font size.
-
italic
bool -true
orfalse
Sets the font italic, if true
was specified, otherwise resets to the non-italic default.
-
x
integer - Horizontal position -
y
integer - Vertical position
Moves the text object to the specified pixel coordinates.
-
name
string - Name of the text object -
justified
bool -true
orfalse
Right-justifies the text object, if true
is provided, otherwise resets it to the left-justified default.
-
name
string - Name of the text object -
alpha
integer - Transparency value, 0 to 255 -
red
integer - Red amount, 0 to 255 -
green
integer - Green amount, 0 to 255 -
blue
integer - Blue amount, 0 to 255
Sets the text outline's stroke color and transparency.
-
name
string - Name of the text object -
width
number - Stroke size in pixels
Sets the text outline's stroke width in pixels.
-
text
string - The text to display
Sets the text to display in the text object.
-
visible
bool -true
orfalse
Sets the visible of the text object.