/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

activation_timeThe time at which the timer started.
closetsList of weakrefs to nearby closets
doorsList of weakrefs to nearby doors
flashersList of weakrefs to nearby flashers
idID of linked machinery/lockers.
sec_radioneeded to send messages to sec radio
timer_durationThe time offset from the activation time before releasing.
timingIs the timer on?

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

activation_time

The time at which the timer started.

closets

List of weakrefs to nearby closets

doors

List of weakrefs to nearby doors

flashers

List of weakrefs to nearby flashers

id

ID of linked machinery/lockers.

sec_radio

needed to send messages to sec radio

timer_duration

The time offset from the activation time before releasing.

timing

Is the timer on?

Proc Details

set_timer

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

returns FALSE 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.