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:

  • self table Component instance
  • locale_id string Locale id
set_to(self, set_to)
Set text to text field

Parameters:

  • self table Component instance
  • set_to string Text for node
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
generated by LDoc 1.4.6 Last updated 2019-12-05 22:04:11