... | ... | @@ -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`.
|
|
|
|
|
|
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:
|
|
|
Display: "My Custom Menu"
|
|
|
Size: 27
|
... | ... | @@ -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.
|
|
|
|
|
|
For example, any slot in the Schema with 1 is mapped to FILLER:
|
|
|
```
|
|
|
```yaml
|
|
|
FILLER:
|
|
|
Mapping: 1
|
|
|
```
|
... | ... | @@ -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:
|
|
|
- **`Command`** - `/mythicrpg menus open [menu] <player>`
|
|
|
- **`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.
|
|
|
|
|
|
| [Implemented Placeholders] |
|
|
|
|--------------------------------|
|
|
|
| `<skill.var.click-type>` |
|
|
|
|
|
|
```yaml
|
|
|
Skills:
|
|
|
- sound{s=entity.chicken.egg}
|
|
|
- message{m="<skill.var.click-type>"} @self
|
|
|
```
|
|
|
|
|
|
|
|
|
<!-- LINKS -->
|
|
|
[Implemented Placeholders]: /Placeholders#variable-placeholders |
|
|
\ No newline at end of file |