Atmos Alarm Control computer program search fix and UI refactor (#21056)

Scope creeped PR. Fixes a breaking bug in the Atmos Alarm Control
application introduced after areas-cleanup PR, but also refactors it
into a grid-based interface that actually allows you to reliably search
alarms by name, department, and deck # (possible now with all the area
metadata we have to play with).

Also does behind-the-scenes cleanup of alarm panel code in general, a
few area def problems, and some manually defined air alarm names on the
map.

---------

Signed-off-by: Batrachophreno <Batrochophreno@gmail.com>
This commit is contained in:
Batrachophreno
2025-08-01 18:41:34 -04:00
committed by GitHub
parent 56b6c59a0e
commit f096b206a0
15 changed files with 182 additions and 93 deletions
@@ -60,7 +60,11 @@
var/alarms = list()
for(var/obj/machinery/alarm/alarm in monitored_alarms)
alarms += list(list(
"name" = sanitize(alarm.name),
"deck" = alarm.alarm_area.horizon_deck,
"dept" = alarm.alarm_area.department,
"subdept" = alarm.alarm_area.subdepartment,
"name" = alarm.alarm_area_name,
"searchname" = alarm.alarm_area_name_full,
"ref"= "[REF(alarm)]",
"danger" = max(alarm.danger_level, alarm.alarm_area.atmosalm)
))