Space Station 13 - Modules - TypesVar Details - Proc Details

shelver

Vars

allowed_typesA list of types which are are valid to place on this shelf.
default_rotationThe default rotation transformation for objects placed on the shelf.
default_scaleThe default scale transformation for objects placed on the shelf.
placement_zonesA list whose keys are a 4-tuple of (left, bottom, right, top) bounding boxes to position details. Position details include "x" and "y" as pixel offsets, and "layer" as appearance layer for a placed object.
random_pickup_locationsWhether objects auto-shelved by the component are placed in random order on the shelf.
used_placesA list of slots, one per placement zone. Either empty, or containing the UID of the object in that place.

Procs

add_itemAdd an item to the shelf.

Var Details

allowed_types

A list of types which are are valid to place on this shelf.

default_rotation

The default rotation transformation for objects placed on the shelf.

default_scale

The default scale transformation for objects placed on the shelf.

placement_zones

A list whose keys are a 4-tuple of (left, bottom, right, top) bounding boxes to position details. Position details include "x" and "y" as pixel offsets, and "layer" as appearance layer for a placed object.

random_pickup_locations

Whether objects auto-shelved by the component are placed in random order on the shelf.

used_places

A list of slots, one per placement zone. Either empty, or containing the UID of the object in that place.

Proc Details

add_item

Add an item to the shelf.

Arguments: