DUXPLIMA Documentation

Menu files

The keys of a window file, the tile line, and every action and source the windows know.

Every window in menus/ is a file: move a slot, change a material, take a button out, and the plugin draws what you wrote. Nothing about a window is decided in the code.

KeyMeaning
title@menu.<window>.title, or your own words
rowsOne to six
open-actionsWhat runs when it opens: sound:ITEM_BOOK_PAGE_TURN 0.7 1.2
layout, layout-charRows of characters, and the character each item fills
slot, slotsWhere an item sits; a range is "10-16", a list mixes both
priorityWhich item wins a slot two ask for; the highest is drawn last
typeprevious or next turns the page of the list
clickleft, right, shift_left, shift_right
listsource and template for the squares the plugin fills
item-dragTurns a slot into one you drop an item into: rules, consume, actions
decor { hide-tooltip = true }A pane with no tooltip

lore = ["tile:<colour> @<block> <facts>"] draws a tile; see Menus.

Actions and sources

NameWindowDoes
enchants:fittingWikiList source: what fits the drop slot
enchants:inspectingWikiCondition: an item is in the drop slot
enchants:inspect, enchants:inspect-held, enchants:clearWikiRead the dropped item, read the held one, empty the slot
enchants:open-infoWikiThe clicked enchantment's page
enchants:open-groupedWikiThe grouped wiki
enchants:groupsGroupedList source: the groups
enchants:open-groupGroupedWhat is inside the clicked group
enchants:open-wikiGrouped, pageBack to the wiki
enchants:editor-listEditorList source: every enchantment
enchants:editor-propertiesEditorThe clicked enchantment's properties
enchants:editor-newEditorAsks for an id

Every window also knows close, open:<menu>, command:<line>, message:<line> and sound:<name> <volume> <pitch>.

The editor's property and list windows have files of their own shape; see Editor windows.

Related: Menus, Messages