/tg/ Station 13 - Modules - TypesVar Details - Proc Details

door_timer

Brig Door control displays.

This is a controls the timer for the brig doors, displays the timer on itself and has a popup window when used, allowing to set the timer.

Vars

closetsList of weakrefs to nearby closets
doorsList of weakrefs to nearby doors
flashersList of weakrefs to nearby flashers
sec_radioneeded to send messages to sec radio

Procs

set_timerSet the timer. Does NOT automatically start counting down, but does update the display.
time_leftReturn time left. Arguments:
timer_endStops the timer and resets the timer to 0, and opens the linked door. Arguments:
timer_startStarts counting down the timer and closes linked the door. The timer is expected to have already been set by set_timer()
update_contentUpdate the display content.

Var Details

closets

List of weakrefs to nearby closets

doors

List of weakrefs to nearby doors

flashers

List of weakrefs to nearby flashers

sec_radio

needed to send messages to sec radio

Proc Details

set_timer

Set the timer. Does NOT automatically start counting down, but does update the display.

returns TRUE if no change occurred

Arguments: value - time in deciseconds to set the timer for.

time_left

Return time left. Arguments:

timer_end

Stops the timer and resets the timer to 0, and opens the linked door. Arguments:

timer_start

Starts counting down the timer and closes linked the door. The timer is expected to have already been set by set_timer()

update_content

Update the display content.