menu Check
menu Check {name} {x} {y} {width} {height} {checked} {text}Also searchable as: menu Check · checkbox
menu Check places a check box with a caption.
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, height |
Size of the box and caption together. A caption that does not fit is cut off. |
checked |
#true (or any number other than 0) to start checked, #false (0) to start unchecked. |
text |
The caption, to the right of the box; with menu Font Align right, to the left. |
It uses the current font settings. menu Get returns #true (-1) when it is checked and #false (0) when it
is not; menu Set with #true or #false changes it.
Example
Section titled “Example”menu Clearmenu Window Size 180 80menu Check loot 10 10 120 20 #false Loot corpsesmenu Button ok 10 45 60 25 OKmenu Showset #MenuButton N/Awhile #MenuButton = N/A wait 1menu Get lootif #MenuRes = #true display ok Looting.else display ok Not looting.halt1.5 and 1.6
Section titled “1.5 and 1.6”- 1.6: the check box goes into the current default parent, and its name must be
free: a second one with a taken name appears but cannot be read or changed. Its properties can be read and
changed with
menu GetPropandmenu SetProp.menu Radiomakes radio buttons.
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.