Zum Hauptinhalt springen

rpg_profession_menu

RPG Core Profession Menu — action entry.

Entry Information

PropertyValue
Entry IDrpg_profession_menu
TypeAction
ColorDark_purple
Iconfa6-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

FieldTypeDescription
inventoryTitleVar<String>Title of the menu (supports placeholders and MiniMessage).
inventoryRowsIntNumber of inventory rows (1-6).
guiTypeGuiTypeGUI type (CUSTOM, BOOK, FURNACE, etc.).
professionIdString?Active profession ID for detail view highlighting. Empty = main menu.
currentLevelIntCurrent player level for the active profession (for display).
maxLevelIntMaximum level for the active profession.
layoutPoolList<LayoutData>Pool of layout definitions. Items with buttonType are resolved as RPG buttons.
mainLayoutIdString?ID of the main layout to display from the pool.
audioGuiAudioDataAudio 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: ""