Skip to content

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.

menu Clear
menu Font BGColor white
menu List Create lst 10 10 180 120
menu List Add lst This is a simple example
menu List Add lst showing how to use
menu List Add lst a list box.
menu List Select lst 2
menu Window Title List example
menu Window Size 200 140
menu Show
halt
  • 1.5: Add, Select and Clear act 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.