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 | |
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 |
Procs | |
set_timer | Set the timer. Does NOT automatically start counting down, but does update the display. |
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. |
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:
- seconds - return time in seconds it TRUE, else deciseconds.
timer_end
Stops the timer and resets the timer to 0, and opens the linked door. Arguments:
- forced - TRUE if it was forced to stop rather than timing out. Will skip radioing, etc.
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.