Tabs

Group
ui
Methods
2
Fields
None

Getting one

ui:tabs()

Methods

MethodReturnsDescription
current()Tab?The open side-panel tab's name.
open(Tab)booleanOpen a side-panel tab, by its key or a click on its stone. Does nothing when it is open.

Returned by

MethodReturnsDescription
Ui.tabsTabsThe interface tabs.

Method details

current

current: (Tabs) -> Tab?

The open side-panel tab's name.

Returns
nil when none is, or it could not be read.

open

open: (Tabs, Tab) -> boolean

Open a side-panel tab, by its key or a click on its stone. Does nothing when it is open.

tab
Which one, e.g. Tab.INVENTORY.