menu List
menu List Create {name} {x} {y} {width} {height}menu List Add {name} {text}menu List Select {name} {number}menu List Clear {name}Also searchable as: menu List · listbox
menu List places a list box, which shows several entries at once, and manages its entries.
| Form | What it does |
|---|---|
Create {name} {x} {y} {width} {height} |
Places an empty list box. It uses the current font settings. |
Add {name} {text} |
Adds an entry at the end. Without text, adds an empty line. |
Select {name} {number} |
Selects entry number, counting from 1. 0 selects nothing. |
Clear {name} |
Removes every entry. |
menu Get returns the number of the selected entry, counting from 1, or 0 when
nothing is selected.
Example
Section titled “Example”menu Clearmenu Font BGColor whitemenu List Create lst 10 10 180 120menu List Add lst This is a simple examplemenu List Add lst showing how to usemenu List Add lst a list box.menu List Select lst 2menu Window Title List examplemenu Window Size 200 140menu Showhalt1.5 and 1.6
Section titled “1.5 and 1.6”- 1.5:
Add,SelectandClearact on every list with that name. - 1.6: they act on the one list the name belongs to; a second one created with the same name is out of reach. The list goes into the current default parent.
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.