closet
Vars | |
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. |
---|---|
custom_skin | Added to initial(icon_state) if not null. Used for IC customization, e.g. when painting cardboard boxes. |
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. |
Procs | |
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 |
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.
custom_skin
Added to initial(icon_state) if not null. Used for IC customization, e.g. when painting cardboard boxes.
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