Skip to content

luxe: ui/button.control


import "luxe: ui/button.control" for ButtonAlignH

no docs found

ButtonAlignH.left : unknown

no docs found

ButtonAlignH.center : unknown

no docs found

ButtonAlignH.right : unknown

no docs found

import "luxe: ui/button.control" for ButtonAlignV

no docs found

ButtonAlignV.top : unknown

no docs found

ButtonAlignV.center : unknown

no docs found

ButtonAlignV.bottom : unknown

no docs found

import "luxe: ui/button.control" for Data

no docs found

var text : String = ""
var align : ButtonAlignH = ButtonAlignH.center
var align_vertical : ButtonAlignV = ButtonAlignV.center
var localization : Localization = Object
var max_visible : Num = -1
var text_margin : Float4 = [8, 0, 8, 0]
var override : Object = Object
import "luxe: ui/button.control" for Localization

no docs found

var key : String = null
var space : String = "game"
var args : List = []
import "luxe: ui/button.control" for UIButton

no docs found

UIButton.override(button : Control) : ButtonInfo

no docs found

UIButton.override_text(button : Control) : LabelInfo

no docs found

UIButton.override_base(button : Control) : PanelInfo

no docs found

UIButton.create(ui : Entity) : Control

Create a new button control.

UIButton.set_text(button : Control, text : String) : None

Set the text displayed on a button.

UIButton.get_text(button : Control) : String

Get the text displayed on a button.

UIButton.get_font(button : Control) : Font

Get the font asset id of the text on the button. The asset id is returned as the string hash, to get the string use Strings.get.

UIButton.set_font(button : Control, font : Font) : None

Set the font of the text on a button.

UIButton.set_color(button : Control, color : Color) : None

Set the color of the button text.

UIButton.get_color(button : Control) : Color

Get the color of a button.

UIButton.set_text_size(button : Control, size : Num) : None

Set the size of the text on a button.

UIButton.get_text_size(button : Control) : Num

Get the size of the text on a button.

UIButton.set_align(button : Control, align : TextAlign) : None

Set the horizontal alignment of the text on a button.

UIButton.get_align(button : Control) : TextAlign

Get the horizontal alignment of the text on a button.

UIButton.set_align_vertical(button : Control, align : TextAlign) : None

Set the vertical alignment of the text on a button.

UIButton.get_align_vertical(button : Control) : TextAlign

Get the vertical alignment of the text on a button.

UIButton.set_loc(button : Control, space : String, key : String) : None

no docs found

UIButton.set_loc(button : Control, key : String) : None

no docs found

UIButton.set_loc_with_args(button : Control, space : String, key : String, args : List) : None

no docs found

UIButton.set_loc_with_args(button : Control, key : String, args : List) : None

no docs found

UIButton.get_render_text(button : Control) : RenderText

Get the underlying lowlevel text render object. Usable with the Render.text_* API.

UIButton.set_colors(button : UIButton, bg : Color, bg_hover : Color, border : Color, border_hover : Color) : None

no docs found