BandaStation - Modules - TypesVar Details - Proc Details

evac

Evac display which shows shuttle timer or message set by Command.

Vars

active_emergenciesList of active emergency types - tracks what emergencies are currently happening
alert_display_timerTimer for switching back to normal after showing alerts
current_priorityHow important our current display is (bigger number = more important)
manual_display_stateKeeps track of what someone manually set so we can go back to it later
revert_modeWhat mode we should go back to when the alert timer runs out
revert_pictureWhat picture we should show when reverting back
revert_priorityWhat priority level we should go back to after alerts

Procs

get_highest_priority_displayFigures out what we should be showing based on what's happening on the station Returns a list with the mode, priority, and other details
on_sec_level_changeGets called when security changes the alert level - shows it for 30 seconds then goes back to normal
revert_from_alert_displayGoes back to showing whatever we were displaying before the alert level interrupt
set_display_with_priorityTries to change what the display is showing, but respects priority levels Returns TRUE if we actually changed it, FALSE if something more important was already showing
show_temporary_displayShows a temporary display for 30 seconds then reverts to previous display Can interrupt lower priority displays but respects higher priority temporary displays

Var Details

active_emergencies

List of active emergency types - tracks what emergencies are currently happening

alert_display_timer

Timer for switching back to normal after showing alerts

current_priority

How important our current display is (bigger number = more important)

manual_display_state

Keeps track of what someone manually set so we can go back to it later

revert_mode

What mode we should go back to when the alert timer runs out

revert_picture

What picture we should show when reverting back

revert_priority

What priority level we should go back to after alerts

Proc Details

get_highest_priority_display

Figures out what we should be showing based on what's happening on the station Returns a list with the mode, priority, and other details

on_sec_level_change

Gets called when security changes the alert level - shows it for 30 seconds then goes back to normal

revert_from_alert_display

Goes back to showing whatever we were displaying before the alert level interrupt

set_display_with_priority

Tries to change what the display is showing, but respects priority levels Returns TRUE if we actually changed it, FALSE if something more important was already showing

show_temporary_display

Shows a temporary display for 30 seconds then reverts to previous display Can interrupt lower priority displays but respects higher priority temporary displays