xhookLua
Game

ui.Tab

A script's menu tab from ui.tab(), holding cards in columns.

Methods

tab:card

tab:card(name [, options]) -> ui.Card
NameTypeDescription
namestringCard title.
optionsoptionaltable{column = k, full = bool}. Default auto column, not full.

Adds a titled group box, by default in the shortest column.

  • Same-named cards share save keys and bind ids.
  • Raises an error on a stale (reloaded) tab handle.

tab:columns

tab:columns(n) -> ui.Tab
NameTypeDescription
nintegerClamped to 1 to 3.

Sets the column count; default 2.

Returns Same tab (chainable).

Does nothing on a stale handle.

ui.Tab ยท Lua API ยท xhook