Skip to content

luxe: ui/window.control


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

no docs found

var bring_to_front : Bool = true
var closable : Bool = true
var collapsible : Bool = true
var resizable : Bool = true
var draggable : Bool = true
var title_height : Num = 40
var text : String = ""
var align : WindowAlignH = WindowAlignH.left
var align_vertical : WindowAlignV = WindowAlignV.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/window.control" for Localization

no docs found

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

UIWindow is a Control with a title bar, close button, and can be moved around and resized like a windowed application on a desktop operating system. As you’d expect, you can attach other Controls to it that stay attached as you move it around.

var window = UIWindow.create(ui)
UIWindow.set_text(window, "I'm a window!")
UIWindow.set_title_size(window, 24)
UIWindow.set_text_size(window, 14)
UIWindow.set_resizable(window, true)
Control.set_bounds(window, 64, 64, 680, 360)

UIWindow.override(window : Control) : WindowInfo

no docs found

UIWindow.override_text(window : Control) : LabelInfo

no docs found

UIWindow.override_base(window : Control) : PanelInfo

no docs found

UIWindow.override_header(window : Control) : PanelInfo

no docs found

UIWindow.create(ui_entity : Entity) : UIWindow

Create a new UIWindow control for the given UI.

UIWindow.close(window : Control) : None

Make the given window disappear.

UIWindow.set_collapsed(window : Control, state : Bool) : None

Set whether the given window’s body is drawn (false, uncollapsed) or only the titlebar (true, collapsed).

UIWindow.get_collapsed(window : Control) : Bool

Get if the given window is collapsed.

UIWindow.set_text(window : Control, text : String) : None

Set the titlebar text of the given window.

UIWindow.get_text(window : Control) : String

Get the titlebar text of the given window.

UIWindow.set_text_size(window : Control, size : Num) : None

Set the size of the text on a window.

UIWindow.get_text_size(window : Control) : Num

Get the size of the text on a window.

UIWindow.set_text_color(window : Control, color : Color) : None

Set the color of the window text.

UIWindow.get_text_color(window : Control) : Color

Get the color of a window.

UIWindow.get_text_font(window : Control) : Font

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

UIWindow.set_text_font(window : Control, font : Font) : None

Set the font of the text on a window.

UIWindow.set_title_size(window : Control, size : Num) : None

Set the height of the titlebar of the given window.

UIWindow.set_resizable(window : Control, state : Bool) : None

Set if a window can be resized by dragging its bottom right corner.

UIWindow.set_bring_to_front(window : Control, state : Bool) : None

Set if a window will bring itself to the front of the UI when interacted with.

UIWindow.set_closable(window : Control, state : Bool) : None

Set if a window has a Close button the user can press.

UIWindow.set_collapsible(window : Control, state : Bool) : None

Set if a window has a Collapse button the user can press.

UIWindow.set_draggable(window : Control, state : Bool) : None

Set if a window can be dragged around with the mouse.

UIWindow.get_resizable(window : Control) : Bool

Get if a window can be resized by the user.

UIWindow.get_bring_to_front(window : Control) : unknown

Get if a window will bring itself to the front of the UI when interacted with.

UIWindow.get_closable(window : Control) : unknown

Get if a window has its Close button visible.

UIWindow.get_collapsible(window : Control) : unknown

Get if a window has its Collapse button visible.

UIWindow.get_draggable(window : Control) : unknown

Get if a window can be dragged around with the mouse.

UIWindow.set_align(window : Control, align : TextAlign) : None

Set the horizontal alignment of the text on a window.

UIWindow.get_align(window : Control) : TextAlign

Get the horizontal alignment of the text on a window.

UIWindow.set_align_vertical(window : Control, align : TextAlign) : None

Set the vertical alignment of the text on a window.

UIWindow.get_align_vertical(window : Control) : TextAlign

Get the vertical alignment of the text on a window.

UIWindow.set_loc(window : Control, space : String, key : String) : None

no docs found

UIWindow.set_loc(window : Control, key : String) : None

no docs found

UIWindow.set_loc_with_args(window : Control, space : String, key : String, args : List) : None

no docs found

UIWindow.set_loc_with_args(window : Control, key : String, args : List) : None

no docs found

UIWindow.get_render_text(window : Control) : RenderText

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

import "luxe: ui/window.control" for UIWindowChange

no docs found

UIWindowChange.close : unknown

no docs found

UIWindowChange.open : unknown

no docs found

UIWindowChange.collapse : unknown

no docs found

UIWindowChange.uncollapse : unknown

no docs found

UIWindowChange.move : unknown

no docs found

UIWindowChange.name(value : Any) : unknown

no docs found

import "luxe: ui/window.control" for WindowAlignH

no docs found

WindowAlignH.left : unknown

no docs found

WindowAlignH.center : unknown

no docs found

WindowAlignH.right : unknown

no docs found

import "luxe: ui/window.control" for WindowAlignV

no docs found

WindowAlignV.top : unknown

no docs found

WindowAlignV.center : unknown

no docs found

WindowAlignV.bottom : unknown

no docs found