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_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? |
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
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:
- seconds - Return the time in seconds if 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.