Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
Minecraft's own dialog screens, written in YAML: text boxes, dropdowns, sliders, buttons and an API.
Your own items in a drawn dialog, and setting values from code
Nothing changes in your dialog files. This release is for plugins built on Dialog Engine.
For developers
- New:
registerContainer(plugin, name, container). A drawn dialog's grid of item slots set to a container "from a plugin" now shows the inventory your plugin hands it: a bank, a shop's stock, a quiver. Players move items between it and their own inventory, andmayTakeandmayPlacerefuse a move per slot. - New:
setSetting(player, name, value)sets a drawn dialog's switch, slider or dropdown for a player from code. A null value clears it back to the dialog's default. - New:
set(player, key, value)changes one value of the dialog a player has open. Set as many as you like, thenrefreshonce. - New:
isOpen(player), andDialogOpenEvent.getValues(), named like every other event's.
0.8.0: Events for closing a dialog, and for every click on a drawn one
For developers
- New:
DialogCloseEvent, fired once a dialog has left the screen, with why: the exit button or Escape, a button, another dialog, a chest or other screen, a plugin, or the player leaving. It carries the button, the dialog that replaced it, and the values and settings the dialog was left with. DialogClickEventnow fires for drawn dialogs too, and carries the player's settings (getSettings()) beside what they typed. Give a piece the command[event] buy_swordin the editor and one listener can answer a whole menu, with no command per button.- New:
DialogSettingChangeEvent, before a drawn dialog's switch, slider or dropdown changes a setting. Cancellable. - New:
DialogSlotMoveEvent, before a stack moves between a drawn dialog's item slots. Cancellable, for soulbound items or locked slots.
Dialogs
- New action:
[event] <id>names a button for your plugin and does nothing else. - A drawn dialog now says which features it uses, and when it needs one this version lacks, the console names it instead of the dialog showing up with pieces missing.
- The code that runs drawn dialogs is now shared with RP Engine, so a dialog behaves the same in both plugins.
Platforms
Paper
1.21.7–26.2