@@ -9,7 +9,7 @@ You can create menus by placing them in any `.yml` file inside a `menus` folder
...
@@ -9,7 +9,7 @@ You can create menus by placing them in any `.yml` file inside a `menus` folder
For example, you can create a new `.yml` file at `plugins/MythicMobs/menus/custom_menus.yml`.
For example, you can create a new `.yml` file at `plugins/MythicMobs/menus/custom_menus.yml`.
Any top-level node will be loaded as a menu using the standard Mythic menu format. For example, to create a menu named `MyCustomMenu` you'd place this in the file:
Any top-level node will be loaded as a menu using the standard Mythic menu format. For example, to create a menu named `MyCustomMenu` you'd place this in the file:
```
```yaml
MyCustomMenu:
MyCustomMenu:
Display:"MyCustomMenu"
Display:"MyCustomMenu"
Size:27
Size:27
...
@@ -42,7 +42,7 @@ This example includes many of the features of the custom menu system.
...
@@ -42,7 +42,7 @@ This example includes many of the features of the custom menu system.
The `Schema` defines how the menu looks - it's basically a `9 x height` grid representing the menu's icons. Each letter/number is mapped to one of the icons defined under the `Icons` section.
The `Schema` defines how the menu looks - it's basically a `9 x height` grid representing the menu's icons. Each letter/number is mapped to one of the icons defined under the `Icons` section.
For example, any slot in the Schema with 1 is mapped to FILLER:
For example, any slot in the Schema with 1 is mapped to FILLER:
```
```yaml
FILLER:
FILLER:
Mapping:1
Mapping:1
```
```
...
@@ -62,3 +62,20 @@ You can modify an open menu using the `setcustommenubutton{slot=11;icon=ICON}` m
...
@@ -62,3 +62,20 @@ You can modify an open menu using the `setcustommenubutton{slot=11;icon=ICON}` m
To open a custom menu you've created, you can use one of the following:
To open a custom menu you've created, you can use one of the following:
-**`Command`** - `/mythicrpg menus open [menu] <player>`
-**`Command`** - `/mythicrpg menus open [menu] <player>`
-**`Mechanic`** - the `openCustomMenu{menu=name}` mechanic
-**`Mechanic`** - the `openCustomMenu{menu=name}` mechanic
# Button Skills
As shown above, each button in the menu can have a set of skills associated with it. Once the button is clicked, the skills are executed.