Skip to content

menu Clear

menu Clear

Also searchable as: 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.

menu Clear
menu Window Size 220 60
menu Text old 10 10 This text goes in two seconds.
menu Show
wait 40
menu Clear
menu Text new 10 10 A new menu in the same window.
halt
  • 1.5: removes every control. The window keeps its size, title, colour and position, and #MenuButton keeps 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, the menu PushDef copies are dropped, and #MenuButton is emptied. After menu Delete form0 the 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.