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.
Parameters
Section titled “Parameters”| 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.
Example
Section titled “Example”menu Clearmenu Window Size 180 80menu Edit pet 10 10 150 Fluffymenu Button ok 10 45 60 25 OKmenu Showset #MenuButton N/Awhile #MenuButton = N/A wait 1menu Get petdisplay ok Your pet is called #MenuReshalt1.5 and 1.6
Section titled “1.5 and 1.6”- 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.