跳到主要内容

Machine Menu

Machine Menu

字段

字段类型默认值描述
inventoryTitleVar<String><dark_gray>Machine MenuTitle of the menu.占位符颜色
inventoryRowsInt6Number of inventory rows (1-6).
guiTypeGuiTypeCUSTOMGUI type.
layoutPoolList<LayoutData>emptyPool of layout definitions. Items with `buttonType` are resolved dynamically.
mainLayoutIdString?—ID of the main layout from the pool.
audioGuiAudioData—Audio configuration.
TypeWriter 通用字段(criteria, modifiers, triggers)
字段类型默认值描述
criteriaList<Criteria>empty—
modifiersList<Modifier>empty—
triggersList<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.