Space Station 13 - Modules - TypesVar Details - Proc Details

closet

Vars

closed_door_spriteOverwrites icon_state for the closed door sprite. Only necessary if the closed door sprite has a different name than the icon_state.
door_anim_angleThe maximum angle the door will be drawn at
door_anim_squishVertical squish of the door
door_anim_timeAmount of time it takes for the door animation to play
door_hinge_xX position of the closet door hinge
door_objThe overlay for the closet's door
enable_door_overlayWhether this closet uses a door overlay at all. If FALSE, it'll switch to a system where the entire icon_state is replaced with [icon_state]_open instead.
has_closed_overlayWhether this closet uses a door overlay for when it is closed
has_opened_overlayWhether this closet uses a door overlay for when it is opened
is_animating_doorWhether or not this door is being animated
opened_door_spriteOverwrites icon_state for the opened door sprite. Only necessary if the opened door sprite has a different name than the icon_state.

Procs

animate_doorAnimates the closet door opening and closing
end_door_animationEnds the door animation and removes the animated overlay
get_door_transformCalculates the matrix to be applied to the animated door overlay

Var Details

closed_door_sprite

Overwrites icon_state for the closed door sprite. Only necessary if the closed door sprite has a different name than the icon_state.

door_anim_angle

The maximum angle the door will be drawn at

door_anim_squish

Vertical squish of the door

door_anim_time

Amount of time it takes for the door animation to play

door_hinge_x

X position of the closet door hinge

door_obj

The overlay for the closet's door

enable_door_overlay

Whether this closet uses a door overlay at all. If FALSE, it'll switch to a system where the entire icon_state is replaced with [icon_state]_open instead.

has_closed_overlay

Whether this closet uses a door overlay for when it is closed

has_opened_overlay

Whether this closet uses a door overlay for when it is opened

is_animating_door

Whether or not this door is being animated

opened_door_sprite

Overwrites icon_state for the opened door sprite. Only necessary if the opened door sprite has a different name than the icon_state.

Proc Details

animate_door

Animates the closet door opening and closing

end_door_animation

Ends the door animation and removes the animated overlay

get_door_transform

Calculates the matrix to be applied to the animated door overlay