DUXPLIMA Documentation

Menu files

Every key a window file takes, the tile tokens, the lists, clicks and actions uxmCrates adds.

Every window is a file in menus/. Move a slot, change a material or a sound, and the plugin draws what you wrote. /uxmcrates reload reads the files again. A file that is missing is written back at the next start; a file that cannot be read is reported in the console. The windows are described under Menus.

The window

KeyMeaning
titleThe window title: @key for a line of the messages files, or your own words
rowsChest height, 1 to 6
layoutOptional: one string per row, a character per slot, matched by layout-char on a tile
open-actionsActions run when the window opens, such as its sound
placeholders { }Values the window reads, such as tile-colour

A tile

Each entry under items { } is one tile, keyed by a name you choose.

KeyMeaning
slot, slotsWhere it sits: a number, or a list mixing numbers and ranges such as "10-16"
layout-charThe character of layout this tile fills
priorityWhich tile wins a slot two of them ask for; the highest is drawn last
materialThe item: a material name, or a %token% the window fills in
name@key, your own words, or " " for a tile whose title is drawn by its lore
loreLines under the name, or one %tile_...% token
typeprevious or next turns the page of the window's list
click { }What each gesture does: left, right, shift_left, shift_right, middle and more
list { source, template }Fills the tile's slots from a list the plugin provides
decor { }amount, glow, model-data, item-model, hide-tooltip

Tile colours

A window's placeholders block names the colour of each kind of tile, so tiles of one kind look alike and tiles of another kind stand apart:

placeholders {
  tile-colour    = "5"
  keys-colour    = "2"
  pending-colour = "4"
}

A value is a place on the theme's colour wheel as a number, a gradient of theme.conf, or a role such as good or money. Without one, the title takes the theme's header gradient.

The tokens

A %tile_...% token in lore is a whole house tooltip drawn by the plugin. The words are in the menu block of the messages files.

WindowTokens
crates.conf%crate_icon%, %crate_keys%, %tile_crate%, %tile_keys_button%, %tile_pending_button%
preview.conf%reward_icon%, %reward_glow%, %tile_reward%
keys.conf%key_icon%, %tile_key%
pending.conf%pending_icon%, %tile_pending%
milestones.conf%milestone_at%, %tile_milestone%
cost.conf%tile_cost%
bulk.conf%result_icon%, %result_count%, %tile_result%
reroll.conf%reroll_icon%, %reroll_left%, %tile_reroll_look%, %tile_reroll_accept%, %tile_reroll_again%
log.conf%tile_log%

Window placeholders that pick an icon: icon-menu (the crate list icon of a menu crate), icon-command (a reward with no item), icon-reward (the reroll look button), gap-material (the pane that fills the rest of a group's page in the preview).

Lists

SourceWindowEntries
crates:cratescrates.confEvery crate
crates:rewardspreview.confThe rewards of the crate, a page per group
crates:keyskeys.confEvery key not hidden
crates:pendingpending.confThe player's waiting rewards
crates:milestonesmilestones.confThe rungs of the ladder
crates:costcost.confThe cost lines
crates:resultsbulk.confThe rewards of a bulk run
crates:loglog.confThe log rows that match
crates:editor-crates, crates:editor-keyseditor.conf, editor-keys.confCrates and keys in the editor

The number of slots is the size of a page.

Actions

Besides close, open:<window>, command:<line>, message:<line> and sound:<name> <volume> <pitch>:

ActionDoes
crates:openFrom a crate tile: opens it
crates:previewFrom a crate tile: its preview
crates:open-listThe crate list
crates:open-keysThe keys window
crates:open-pendingThe waiting rewards
crates:key-left, crates:key-rightFrom a key tile: runs the key's menu.click lines
crates:claimFrom a waiting reward: takes it
crates:milestone-claimFrom a rung: takes it
crates:reroll-look, crates:reroll-accept, crates:reroll-againThe reroll buttons
crates:editor-home, crates:editor-open, crates:editor-open-keysEditor navigation
crates:editor-properties, crates:editor-rewards, crates:editor-newFrom an editor crate tile, and the new crate button
crates:editor-key-properties, crates:editor-key-newFrom an editor key tile, and the new key button

The list and back buttons use crates:open-list rather than open:crates, because those windows read their rows off the server thread before they open.

The editor's property windows

editor-crate.conf, editor-reward.conf, editor-key.conf, editor-list.conf and editor-reward-list.conf take slot lists instead of tiles: property-slots, entry-slots or content-slots, and back-slot, delete-slot, add-slot, create-slot, previous-slot, next-slot. The buttons themselves are built by the plugin.

Notes

  • Keep a filler. The grey pane under every free slot is what makes a handful of icons read as a menu.
  • A slot past the window's last is dropped.
  • /uxmcrates doctor counts the windows that were read.

Related: Menus, Messages, theme.conf