-
Notifications
You must be signed in to change notification settings - Fork 446
Text Functions
Dean James edited this page Nov 30, 2020
·
2 revisions
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.
-
pxinteger - Pixels Sets the border size.
-
alphainteger - Alpha value, 0 to 255 -
redinteger - Red value, 0 to 255 -
greeninteger - Green value, 0 to 255 -
blueinteger - Blue value, 0 to 255 Sets the color of the text background.
- `` bool -
trueor `false` Sets the visible of the text background.
- `` bool -
trueor `false` Sets the font bold, if `true` was specified, otherwise resets to the non-bold default.
-
alphainteger - Alpha value, 0 to 255 -
redinteger - Red value, 0 to 255 -
greeninteger - Green value, 0 to 255 -
blueinteger - Blue value, 0 to 255 Sets the color of the font.
-
fontxstring - 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
-
sizeinteger - Font size Sets the text object's font size.
-
italicbool -trueorfalseSets the font italic, iftruewas specified, otherwise resets to the non-italic default.
-
xinteger - Horizontal position -
yinteger - Vertical position Moves the text object to the specified pixel coordinates.
-
namestring - Name of the text object -
justifiedbool -trueorfalseRight-justifies the text object, iftrueis provided, otherwise resets it to the left-justified default.
-
namestring - Name of the text object -
alphainteger - Transparency value, 0 to 255 -
redinteger - Red amount, 0 to 255 -
greeninteger - Green amount, 0 to 255 -
blueinteger - Blue amount, 0 to 255
Sets the text outline's stroke color and transparency.
-
namestring - Name of the text object -
widthnumber - Stroke size in pixels
Sets the text outline's stroke width in pixels.
-
textstring - The text to display Sets the text to display in the text object.
-
visiblebool -trueorfalseSets the visible of the text object.