Appearance
types.text_drawable
A drawable text
Functions
new(): types.text_drawable
Creates a new text drawable
- returns (
types.text_drawable) A new text drawable instance
text(text : string): types.text_drawable
Sets the text
- text (
string) The text to draw - returns (
types.text_drawable) The text drawable instance
align(align : enums.align): types.text_drawable
Sets the alignment
- align (
enums.align) The alignment - returns (
types.text_drawable) The text drawable instance
position(x : number, y : number): types.text_drawable
Sets the position
- x (
number) The x position - y (
number) The y position - returns (
types.text_drawable) The text drawable instance
scale(scale : number): types.text_drawable
Sets the scale
- scale (
number) The scale - returns (
types.text_drawable) The text drawable instance
width(): number
Returns the width of the text
- returns (
number) The width
height(): number
Returns the height of the text
- returns (
number) The height
base_color(color : types.color): types.text_drawable
Sets the base color
- color (
types.color) The base color - returns (
types.text_drawable) The text drawable instance
grad_color(color : types.color): types.text_drawable
Sets the gradient color
- color (
types.color) The gradient color - returns (
types.text_drawable) The text drawable instance
shadow(): types.text_drawable
Enables shadow
- returns (
types.text_drawable) The text drawable instance
outline(thickness : number, color : types.color): types.text_drawable
Sets the outline
- thickness (
number) The outline thickness - color (
types.color) The outline color - returns (
types.text_drawable) The text drawable instance
font_face(font : enums.font_face): types.text_drawable
Sets the font face
- font (
enums.font_face) The font face - returns (
types.text_drawable) The text drawable instance
insert(canvas : types.ui_canvas)
Inserts the drawable into a canvas
- canvas (
types.ui_canvas) The canvas to insert into
