TextRenderingInfo
Texture typessource
Constructors
function TextRenderingInfo.new(text: string, x: number, y: number, scale_x: number, scale_y: number, alignment: integer, fontstyle: integer)text:stringx:numbery:numberscale_x:numberscale_y:numberalignment:integerfontstyle:integer
function TextRenderingInfo.new(text: string, scale_x: number, scale_y: number, alignment: integer, fontstyle: integer)text:stringscale_x:numberscale_y:numberalignment:integerfontstyle:integer
Fields
special_texture_id
Used to draw buttons and stuff, default is -1 which uses the buttons texture
sourcetext_length
integerread only
You can also just use # operator on the whole TextRenderingInfo to get the text length
Methods
rotate
function TextRenderingInfo:rotate(angle: number, px?: number, py?: number)angle:numberpx?:numberoptionalpy?:numberoptional
set_text
function TextRenderingInfo:set_text(text: string, scale_x: number, scale_y: number, alignment: VANILLA_TEXT_ALIGNMENT, fontstyle: VANILLA_FONT_STYLE)text:stringscale_x:numberscale_y:numberalignment:VANILLA_TEXT_ALIGNMENTfontstyle:VANILLA_FONT_STYLE