menu Clear
menu Clear removes every control from the menu window and puts the font settings
back to their defaults. The window itself, its size, title and colour stay as they are.
The menu window stays when a script stops, so start your menu code with menu Clear.
Example
Section titled “Example”menu Clearmenu Window Size 220 60menu Text old 10 10 This text goes in two seconds.menu Showwait 40menu Clearmenu Text new 10 10 A new menu in the same window.halt1.5 and 1.6
Section titled “1.5 and 1.6”- 1.5: removes every control. The window keeps its size, title, colour and position, and
#MenuButtonkeeps its value. - 1.6: removes every control and also every other window (
menu Form) and panel. The main window keeps its size, title, colour, position and whether it is shown. The defaults go back to their starting values, the default parent becomes the main window again, themenu PushDefcopies are dropped, and#MenuButtonis emptied. Aftermenu Delete form0the main window stays gone.
See also
Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.
The EasyUO 1.6 behaviour on this page was researched with help from the ScriptUO community: Gaderian's tutorial New Menu Code and how to adapt old scripts and the scripts its members share at scriptuo.com.