UFO-Scripts/Datatypes/V SHAPE SMALL

From UFO:AI
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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"
  • 5 wide and 1 high (starting at first row (0) first place (0))
  • 3 wide and 1 high (starting at second row (1) first place (0))
11111
111..

Links