incident_display ![code/game/machinery/incident_display.dm 36](git.png)
Vars | |
active_advert | Timer for sign currently showing an advert |
---|---|
advert_cooldown | Cooldown until next advert |
advert_frequency | How often to show an advert |
configured_advert | The default advert to show on this display |
configured_advert_duration | Duration of the advert set on this display |
delam_display_color | Delam digits color |
delam_record | Delam record high-score |
hit_count | Tram hits |
hit_threshold | Tram hits before hazard warning |
last_delam | Shifts without delam |
live_display | If the display is currently running live updated content |
sign_features | What statistics we want the sign to display |
tram_display_color | Tram hits digits color |
Procs | |
show_advert | Run an animated advert on the display |
update_delam_count | Update the delamination count on the display |
update_tram_count | Update the tram hit count on the display |
Var Details
active_advert ![code/game/machinery/incident_display.dm 72](git.png)
Timer for sign currently showing an advert
advert_cooldown ![code/game/machinery/incident_display.dm 74](git.png)
Cooldown until next advert
advert_frequency ![code/game/machinery/incident_display.dm 70](git.png)
How often to show an advert
configured_advert ![code/game/machinery/incident_display.dm 66](git.png)
The default advert to show on this display
configured_advert_duration ![code/game/machinery/incident_display.dm 68](git.png)
Duration of the advert set on this display
delam_display_color ![code/game/machinery/incident_display.dm 52](git.png)
Delam digits color
delam_record ![code/game/machinery/incident_display.dm 62](git.png)
Delam record high-score
hit_count ![code/game/machinery/incident_display.dm 58](git.png)
Tram hits
hit_threshold ![code/game/machinery/incident_display.dm 56](git.png)
Tram hits before hazard warning
last_delam ![code/game/machinery/incident_display.dm 60](git.png)
Shifts without delam
live_display ![code/game/machinery/incident_display.dm 64](git.png)
If the display is currently running live updated content
sign_features ![code/game/machinery/incident_display.dm 50](git.png)
What statistics we want the sign to display
tram_display_color ![code/game/machinery/incident_display.dm 54](git.png)
Tram hits digits color
Proc Details
show_advert
Run an animated advert on the display
Arguments:
- advert - icon state to flick to
- duration - length of the advert animation
update_delam_count
Update the delamination count on the display
Use the provided args to update the incident display when in delam mode. Arguments:
- new_count - number of shifts without a delam
- record - current high score for the delam count
update_tram_count
Update the tram hit count on the display
Sign receives a signal from SStransport that the tram has hit someone, and updates the count. Arguments:
- source - hopefully is the transport subsystem
- tram_collisions - current number of tram hits