Custom Menus
Guide to configure custom menus
You can create custom menus in the Aurora/gui/menus
folder. You can create subfolders as well inside this folder. Menu filenames must use lowercase english alphabet, numbers and underscore.
Every filename must be unique since that will be the ID of the menu.
Example configuration
Opening a menu
You can open a menu/gui either by the defined register-commands
or via the /aurora gui open <player> <menu> [...args]
command.
If you are trying to open the menu from another menu, you can use the [open-gui]
action.
Menu arguments
As you have seen above, you can pass arguments to menus. You can reference these arugments anywhere by using this syntax: {arg_key}
. So for the above example: {arg_test}
. You can also use these in requirements to control menu item visibility or click requirements.
Actions
For the possible click/open/close actions please see Command dispatcher.
Everywhere you see on-click
you can also define an on-left-click
and on-right-click
as well.
Requirements
You can view the available view/open/click requirements here: Requirements.
Everywhere you see click-requirements
you can define left-click-requirements
and right-click-requirements
as well.
Last updated