Module .druidtext

Component to handle all GUI texts Good working with localization system

Functions

text:set_to(self, set_to) Set text to text field
text:set_color(self, color) Set color
text:set_alpha(self, alpha) Set alpha
text:set_scale(self, scale) Set scale
text:set_pivot(self, pivot) Set text pivot.


Functions

text:set_to(self, set_to)
Set text to text field

Parameters:

  • self table Component instance
  • set_to string Text for node
text:set_color(self, color)
Set color

Parameters:

  • self table Component instance
  • color vmath.vector4 Color for node
text:set_alpha(self, alpha)
Set alpha

Parameters:

  • self table Component instance
  • alpha number Alpha for node
text:set_scale(self, scale)
Set scale

Parameters:

  • self table Component instance
  • scale vmath.vector3 Scale for node
text: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
generated by LDoc 1.4.6 Last updated 2020-02-04 23:48:07