rpg_profession_menu
RPG Core Profession Menu — action entry.
Entry Information
| Property | Value |
|---|---|
| Entry ID | rpg_profession_menu |
| Type | Action |
| Color | Dark_purple |
| Icon | fa6-solid:list |
Description
Action entry that opens an RPG Core profession menu using the GUI extension's layout pool system. Usage: - Define your layout in [layoutPool] with items that have buttonType values from [RpgButtonType]. - Set [professionId] to the active profession for correct detail highlighting. - The entry wraps the parsed layout with [RpgButtonResolverLayout] to resolve placeholders. Example layout pool item: - id: main_layout type: frame frames: - id: left x: 0, y: 0, width: 4, height: 6 layout_id: left_panel - id: right x: 5, y: 0, width: 4, height: 6 layout_id: right_panel - id: left_panel type: simple items: - x: 0, y: 0, buttonType: RPG_PROFESSION_HOME - x: 0, y: 1, buttonType: RPG_PROFESSION_NAV - x: 0, y: 2, buttonType: RPG_PROFESSION_NAV
Fields
| Field | Type | Description |
|---|---|---|
inventoryTitle | Var<String> | Title of the menu (supports placeholders and MiniMessage). |
inventoryRows | Int | Number of inventory rows (1-6). |
guiType | GuiType | GUI type (CUSTOM, BOOK, FURNACE, etc.). |
professionId | String? | Active profession ID for detail view highlighting. Empty = main menu. |
currentLevel | Int | Current player level for the active profession (for display). |
maxLevel | Int | Maximum level for the active profession. |
layoutPool | List<LayoutData> | Pool of layout definitions. Items with buttonType are resolved as RPG buttons. |
mainLayoutId | String? | ID of the main layout to display from the pool. |
audio | GuiAudioData | Audio configuration for the GUI. |
Usage Example
- entry: rpg_profession_menu
name: "RPG Core Profession Menu"
inventoryTitle: ""
inventoryRows: 0
guiType: ""
professionId: ""
currentLevel: 0
maxLevel: 0
layoutPool: []
mainLayoutId: ""
audio: ""