Window

This type represents a window control.

circle-info

This type inherits Control type. All of its base methods and fields are also available in this type.

Retrieve

This type doesn't have a constructor and there's only one window, which can be retrieved like this:

local wnd = gui.GetMainWindow()

If you wish to create new windows, look into LuaPopupControl instead.


AddTab

Method

Adds a new tab to the menu.

circle-info

Tabs usually have a layout that supports only three group columns. You may use a custom Layout with tab layout mode NONE to bypass this restriction.

Arguments

Name

Type

Description

id

ControlID|string

ID.

icon

Tab icon.

title

string

Tab name.

layoutMode

Tab layout mode.

Returns

Type

Description

The new tab container, or subtab container if layoutMode is SUBTABS

Example (subtabs)

Example (no subtabs)

Last updated