Skip to content

menu Edit

menu Edit {name} {x} {y} {width} {text}

Also searchable as: menu Edit · text field · input

menu Edit places a one-line text field the user can type in. Its height follows the font size. For more than one line, use menu Memo.

Parameter Meaning
name The control’s name, used later by menu Get, menu Set and menu Delete. Case does not matter.
x, y Position of the top-left corner.
width Width in pixels.
text The starting text.

It uses the current font settings. Read what the user typed with menu Get or, for a number, menu GetNum.

menu Clear
menu Window Size 180 80
menu Edit pet 10 10 150 Fluffy
menu Button ok 10 45 60 25 OK
menu Show
set #MenuButton N/A
while #MenuButton = N/A
wait 1
menu Get pet
display ok Your pet is called #MenuRes
halt
  • 1.6: the field goes into the current default parent, and its name must be free: a second field with a taken name appears but cannot be read or changed. $ stays as written in both.

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.