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)​

Graph AddGraph(Widget parent, string? name)​

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

Widget? CloneWidget(Widget widget)​

nil DeleteWidget(Widget widget)​

nil DeleteWidgets(Widget parent)​

Widget SelectedWidget()​

Widget HoveredWidget()​

nil SelectWidget(Widget widget)​

nil FocusWidget(Widget? widget)​

boolean ClickWidget(Widget widget)​

boolean CanMoveWidgetInto(Widget widget, Widget target)​

nil MoveWidgetInto(Widget widget, Widget target)​

nil MoveWidgetBy(Widget widget, integer delta)​

Window AddWindow(string|Asset? nameOrLuaAsset)​

nil DeleteWindow(Window window)​

table GetWindows()​

nil ExternalDragBegin(table mimes)​

nil ExternalDragMove(number x, number y)​

nil ExternalDragEnd()​

nil SetDragLabel(string name, string? type)​

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 SetCfg(string name, number|Vec2|Color value)​

nil ResetCfg()​

nil SetUserScale(number scale)​

number GetUserScale()​

number GetUIScale()​

nil SetUseDisplayScale(boolean enable)​

boolean GetUseDisplayScale()​

number left, number top, number right, number bottom GetSafeAreaInsets()​

table GetUIStats()​

table GetUIGlyphs()​

nil LoadUI()​

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)​

boolean|any IsNoValue(any value)​

Properties​

table<string,boolean> Key​

table<string,boolean> KeyDown​

table<string,boolean> KeyUp​

boolean alwaysRedraw​

boolean useFrameBuffers​

any NoValue​

table WidgetTypes​

table PropertyNames​

table<string,integer> PropertyMode​

table<string,integer> WidgetEvent​

table<integer,string> WidgetEventName​

table<string,integer> PosType​

table PosTypeList​

table<string,integer> SizeType​

table<string,integer> TextAlign​

table<string,integer> InputType​

table InputTypeList​

table<string,integer> ButtonType​

table<integer,string> ButtonTypeName​

table ButtonTypeList​

table<string,integer> SliderType​

table SliderTypeList​

table<string,integer> LabelType​

table LabelTypeList​

table TextureScaleModeList​