menu PopDef
menu PopDef replaces the current defaults with a copy saved by
menu PushDef: the font, the colour and the parent. With no copy saved, it does
nothing. See menu PushDef for an example.
These are quirks of EasyUO 1.6, kept as they are:
- It takes the oldest saved copy, not the newest: after two
menu PushDef, the firstmenu PopDefbrings back what the first one saved. - The alignment becomes left, since
menu PushDefdoes not save it. menu Clearand starting the script throw away every saved copy.
See also
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.