Skip to content

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.

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.

menu Clear
menu Window Size 180 80
menu Check loot 10 10 120 20 #false Loot corpses
menu Button ok 10 45 60 25 OK
menu Show
set #MenuButton N/A
while #MenuButton = N/A
wait 1
menu Get loot
if #MenuRes = #true
display ok Looting.
else
display ok Not looting.
halt
  • 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 GetProp and menu SetProp. menu Radio makes 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.