fillable box

Deployable box with fancy visuals of its contents Visual content defined in the icon_state_mini var in /obj/item All other visuals that do not have a icon_state_mini defined are in var/assoc_overlay
Vars | |
amt_horizontal | Amount of columns in the overlay grid. |
---|---|
amt_vertical | Amount of rows in the overlay grid. |
closed_overlay | Overlay icon_state to display on the box when it is closed |
contents_weight | Assoc list of how much weight every item type takes. Used to determine how many overlays to make. |
deployed | Whether or not the box is deployed on the ground |
max_overlays | Total max amount of overlay spaces |
open_overlay | Overlay icon_state to display on the box when it is open |
overlay_pixel_x | Initial pixel_x offset of the overlays. |
overlay_pixel_y | Initial pixel_y offset of the overlays. |
overlay_w_class | Amount of weight a single overlay can cover. |
shift_x | Amount of pixels to shift each overlay for each column. |
shift_y | Amount of pixels to shift each overlay for each row. |
variety | Amount of different items in the box. |
Procs | |
update_stats | Updates certain vars used primarily (but not exclusively) for the creation of the overlays. |
Var Details
amt_horizontal

Amount of columns in the overlay grid.
amt_vertical

Amount of rows in the overlay grid.
closed_overlay

Overlay icon_state to display on the box when it is closed
contents_weight

Assoc list of how much weight every item type takes. Used to determine how many overlays to make.
deployed

Whether or not the box is deployed on the ground
max_overlays

Total max amount of overlay spaces
open_overlay

Overlay icon_state to display on the box when it is open
overlay_pixel_x

Initial pixel_x offset of the overlays.
overlay_pixel_y

Initial pixel_y offset of the overlays.
overlay_w_class

Amount of weight a single overlay can cover.
shift_x

Amount of pixels to shift each overlay for each column.
shift_y

Amount of pixels to shift each overlay for each row.
variety

Amount of different items in the box.
Proc Details
update_stats
Updates certain vars used primarily (but not exclusively) for the creation of the overlays.