Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicRPG MythicRPG
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 43
    • Issues 43
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicRPGMythicRPG
  • Wiki
  • Custom Menus

Custom Menus · Changes

Page history
Update Custom Menus authored Aug 04, 2024 by Lxlp's avatar Lxlp
Show whitespace changes
Inline Side-by-side
Showing with 19 additions and 2 deletions
+19 -2
  • Custom-Menus.md Custom-Menus.md +19 -2
  • No files found.
Custom-Menus.md
View page @ 5084fa95
......@@ -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
Clone repository

MythicRPG

  • Home
  • Changelogs
  • Commands / Permissions
  • FAQ / Common Issues
Usage
  • Installation
  • Spells
    • Learning
    • Casting
    • Reagents
  • Archetypes
    • Leveling
    • Talents
    • Professions
    • Boosters
  • Currencies
  • Custom Commands
  • Custom Menus
  • Waypoints
Mechanics
  • Mechanics
  • Targeters
  • Triggers
  • Conditions
Placeholders
  • Placeholders