Skip to main content

UI

Client Server

Methods

Panel AddPanel(Widget parent, string? name)

Button AddButton(Widget parent, string? name)

ButtonPanel AddButtonPanel(Widget parent, string? name)

Label AddLabel(Widget parent, string? name)

Header AddHeader(Widget parent, string? name)

Checkbox AddCheckbox(Widget parent, string? name)

Inputbox AddInputbox(Widget parent, string? name)

Vectorbox AddVectorbox(Widget parent, string? name)

Slider AddSlider(Widget parent, string? name)

Selectbox AddSelectbox(Widget parent, string? name)

Colorbox AddColorbox(Widget parent, string? name)

Separator AddSeparator(Widget parent, string? name)

Widget AddWidget(string type, Widget parent, boolean? putInside, boolean? front, boolean? save)

Widget CloneWidget(Widget widget)

nil DeleteWidget(Widget widget)

nil DeleteWidgets(Widget parent)

Widget SelectedWidget()

Widget HoveredWidget()

nil SelectWidget(Widget widget)

nil FocusWidget(Widget widget)

nil SetKeyboardFocus(Widget? widget)

boolean CanMoveWidgetInto(Widget widget, Widget target)

nil MoveWidgetInto(Widget widget, Widget target)

nil MoveWidgetBy(Widget widget, integer delta)

Window AddWindow(bool|Asset? saveOrLuaAsset)

nil DeleteWindow(Window window)

table GetWindows()

Window WindowByName(string name)

Window AddSubWindow(string name, Widget parent, boolean? open)

nil OpenWindow(Window|string window, boolean? focus, boolean? animate)

nil CloseWindow(Window window)

nil ToggleWindow(Window window)

nil CloseAllWindows(Window? except)

nil ClosePopups()

nil FocusWindow(Window window)

nil BringToFront(Window window)

nil PopupWindow(Window window, Widget anchor, Vec2? pos, Vec2? size)

any GetCfg(string name)

table GetCfgAll()

nil SetUserScale(number scale)

number GetUserScale()

number GetUIScale()

table GetUIStats()

table GetUIGlyphs()

nil SaveUI(string path)

nil LoadUI(string path)

nil ResetLua()

nil OpenLuaFile(string path)

nil OpenWindowLuaFile(Window window)

nil DebugWidgetInfo(Widget widget)

table DebugFrameInfo()

boolean GetDebugFrame()

nil SetDebugFrame(boolean enable)

nil OpenLuaFileAtWidgetFunction(Widget widget, string func, string eventType)

nil AutoCreateLuaFileForWindow(Window window)

nil OnColorPick(Color color)

bool|any IsNoValue(any value)

Properties

table<string,boolean> Key

table<string,boolean> KeyDown

table<string,boolean> KeyUp

boolean showUI

boolean alwaysRedraw

boolean useFrameBuffers

any NoValue

table WidgetTypes

table PropertyNames

table<string,int> PropertyMode

table<string,int> WidgetEvent

table<int,string> WidgetEventName

table<string,int> PosType

table PosTypeList

table<string,int> SizeType

table<string,int> TextAlign

table<string,int> InputType

table InputTypeList

table<string,int> ButtonType

table<int,string> ButtonTypeName

table ButtonTypeList

table<string,int> SliderType

table SliderTypeList

table<string,int> LabelType

table LabelTypeList

table TextureScaleModeList