UFO-Scripts/Datatypes/V SHAPE SMALL
< UFO-Scripts | Datatypes(Redirected from V SHAPE SMALL)
Jump to navigation
Jump to search
V_SHAPE_SMALL
V_SHAPE_SMALL is the shape in equipment menu, that is how much space do we need to place this weapon (this value defines a rectangle given by the upper left corner (x, y) and dimensions (w, h))
shape "x y w h"
Several entries of a V_SHAPE_SMALL datatype can be grouped together to create more complex masks.
shape "x y w h" shape "x y w h" ...
To position the various shapes (width x height) you need to use the first two values (x and y position).
Currently the maximum size of a container is 8 width x 4 height, please keep that in mind when assembling shapes. This means that (x+w < 8) and (y+h < 4).
Examples
shape "0 0 2 1" |
2 wide and 1 high |
11 |
shape "0 0 1 2" |
1 wide and 2 high |
1 1 |
shape "0 0 5 2" |
5 wide and 2 high |
11111 11111 |
shape "0 0 5 1" shape "0 1 3 1" |
|
11111 111.. |