menu Image Pos
menu Image Pos {name} {x} {y} [width height]Also searchable as: menu Image Pos
menu Image Pos moves an image to x, y in the menu window. With width and height, it also resizes
it, and what is drawn in it is stretched to fit.
Parameters
Section titled “Parameters”| Parameter | Meaning |
|---|---|
name |
Name of an image created with menu Image Create. |
x, y |
New position of the top-left corner in the window. |
width, height |
Optional new size. |
Example
Section titled “Example”menu Clearmenu Window Size 250 150menu Image Create pic 10 10 64 64menu Image Ellipse pic 8 8 56 56 yellow #truemenu Showwait 40menu Image Pos pic 100 10 128 128 ; moved and stretched to twice the sizehalt1.5 and 1.6
Section titled “1.5 and 1.6”- 1.5: moves an image, and turns on stretching even when only
xandyare given. - 1.6: moves any control, not only images, and stretches an image only when
widthandheightare given; a negative size is refused.
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.