Module base.text
Component to handle all GUI texts Good working with localization system
Functions
translate(self, locale_id) | Translate the text by locale_id |
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 |
Functions
- translate(self, locale_id)
-
Translate the text by locale_id
Parameters:
- 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