Skip to main content

Label

Example

var label = new Label(0, 0, 100, 30);
with (label.state) {
text = "My Label";
halign = fa_center;
}

State reference

VariableDescriptionTypeDefault
textLabel displayed textString
halignLabel horizontal alignmentRealfa_left
valignLabel vertical alignmentRealfa_top
colorLabel colorRealui_variable_col_on_bg
alphaLabel alphaReal1
fontLabel fontRealui_variable_font
maxlengthCut the text if the length is greater than the specified valueReal
sepThe distance in pixels between lines of text (draw_text_ext)Real-1
maxwidthThe maximum width in pixels of the string before a line break (draw_text_ext)Real-1