Machine Menu
Machine Menu
Поля
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
inventoryTitle | Var<String> | <dark_gray>Machine Menu | Title of the menu.ПлейсхолдерыЦвета |
inventoryRows | Int | 6 | Number of inventory rows (1-6). |
guiType | GuiType | CUSTOM | GUI type. |
layoutPool | List<LayoutData> | empty | Pool of layout definitions. Items with `buttonType` are resolved dynamically. |
mainLayoutId | String? | — | ID of the main layout from the pool. |
audio | GuiAudioData | — | Audio configuration. |
Общие поля TypeWriter (criteria, modifiers, triggers)
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
criteria | List<Criteria> | empty | — |
modifiers | List<Modifier> | empty | — |
triggers | List<Ref<TriggerableEntry>> | empty | — |
How to use it
Build the layout like any GUI menu: add layouts to layoutPool and set mainLayoutId to the id of the one to open. Give an item a Machine buttonType (see the Menus section of the extension page) to make it live. inventoryRows is limited to 1–6. If mainLayoutId matches no layout, the menu opens empty and the log lists the available ids.
Open it from any trigger. To open it from a stabilisation crystal, name it in the dashboardMenuId of a Machine Dashboard Command.