1.6.X | Button Scripts
As of version 1.5, FancyMenu supports multiple button actions per button.
This is possible by creating a button script containing all button actions you want to run by clicking the button.
Creating a Script
renamefile:config/fancymenu/customization/layout.txt;layout.temp renamefile:config/fancymenu/customization/layout.disabled;layout.txt renamefile:config/fancymenu/customization/layout.temp;layout.disabled reloadmenu
The code above is all the script needs to work, nothing special. The part before the colon is the button action, everything after the colon is its value.
reloadmenu button action has no value, that's why there's no colon on this line.
When you're done writing your script, just save it to the
buttonscripts directory (mentioned above), with whatever name you like. Just be sure that it has the TXT file type.
After you've saved your button script, simply press the Reload button, to load the new button script into FancyMenu and you're done.
Using Button Scripts
NOTE: It's recommended to create layouts with the layout editor. You will then be guided through the whole process of creating objects, like a custom button that executes a button script.