Module base.text
Component to handle all GUI texts Good working with localization system
Functions
set_to(self, set_to) | Set text to text field |
set_color(self, color) | Set color |
set_alpha(self, alpha) | Set alpha |
set_scale(self, scale) | Set scale |
set_pivot(self, pivot) | Set text pivot. |
Functions
- set_to(self, set_to)
-
Set text to text field
Parameters:
- set_color(self, color)
-
Set color
Parameters:
- self table Component instance
- color vmath.vector4 Color for node
- set_alpha(self, alpha)
-
Set alpha
Parameters:
- self table Component instance
- alpha number Alpha for node
- set_scale(self, scale)
-
Set scale
Parameters:
- self table Component instance
- scale vmath.vector3 Scale for node
- set_pivot(self, pivot)
-
Set text pivot. Text will re-anchor inside
his text area
Parameters:
- self table Component instance
- pivot gui.pivot Gui pivot constant