Aller au contenu principal

category_menu

Category Menu Configuration — misc entry.

Entry Information

PropertyValue
Entry IDcategory_menu
TypeMisc
ColorBlue
Iconmdi:view-grid

Description

Defines how the sort button displays for a given sort mode. / data class SortDisplayConfig( @Help("Sort mode this display applies to.") val mode: SortModeConfig = SortModeConfig.ALL, @Help("Item shown when this sort mode is active.") val item: Item? = null, @Help("Label shown when this sort mode is active. Supports MiniMessage.") @Placeholder @Colored val label: String = "", @Help("Additional lore lines. Supports MiniMessage and PlaceholderAPI.") @Placeholder @Colored val lore: List<String> = emptyList(), ) enum class SortModeConfig { ALL, NOT_STARTED, ACTIVE, COMPLETED, } /** Configures the menu for a specific quest category via declarative layout pools. Place a "SORT_SLOT" placeholder in your layout pool to have the sort button automatically injected at that position with per-mode display customization.

Fields

FieldTypeDescription
categoryStringCategory this menu configuration applies to. Leave empty for main menu.
titleStringMenu title shown to the player. Supports MiniMessage and PlaceholderAPI.
rowsIntNumber of inventory rows (3-6).
guiTypeGuiTypeGUI type. Use CUSTOM for fully custom layouts.
audioGuiAudioDataAudio configuration overrides for this menu.
layoutPoolList<LayoutData>Layout pool for declarative menu design.
mainLayoutIdStringID of the main layout within the layout pool to display.
sortDisplayList<SortDisplayConfig>Per-mode display overrides for the sort button. Define one entry per sort mode.

Usage Example

- entry: category_menu
name: "Category Menu Configuration"
category: ""
title: ""
rows: 0
guiType: ""
audio: ""
layoutPool: []
mainLayoutId: ""
sortDisplay: []