menu Image Create
menu Image Create {name} {x} {y} {width} {height}Also searchable as: menu Image Create · picture · canvas
menu Image Create places an image in the menu window: a rectangle you can draw in or load a picture into
with the other menu Image commands. It starts completely transparent.
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 in the window. |
width, height |
Size in pixels. |
$FEEEED is the transparent colour of images: painting with it makes those pixels see-through.
Example
Section titled “Example”menu Clearmenu Window Size 84 84menu Image Create pic 10 10 64 64menu Image Rectangle pic 0 0 64 64 navy 1menu Image Ellipse pic 8 8 56 56 yellow 1menu Showhalt1.5 and 1.6
Section titled “1.5 and 1.6”- 1.6: a negative width or height is refused. The image 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.