mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
[MIRROR] ATC Refactor (#10422)
Co-authored-by: Cameron Lennox <killer65311@gmail.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
1ad7827d9d
commit
f543fd71e2
@@ -33,13 +33,12 @@
|
||||
|
||||
var/datum/announcement/priority/crew_announcement
|
||||
|
||||
var/datum/lore/atc_controller/ATC
|
||||
var/datum/weakref/ATC
|
||||
|
||||
var/list/req_access = list()
|
||||
|
||||
/datum/tgui_module/communications/New(host)
|
||||
. = ..()
|
||||
ATC = atc
|
||||
crew_announcement = new()
|
||||
crew_announcement.newscast = TRUE
|
||||
|
||||
@@ -94,7 +93,7 @@
|
||||
data["emagged"] = emagged
|
||||
data["authenticated"] = is_authenticated(user, 0)
|
||||
data["authmax"] = data["authenticated"] == COMM_AUTHENTICATION_MAX ? TRUE : FALSE
|
||||
data["atcsquelch"] = ATC.squelched
|
||||
data["atcsquelch"] = SSatc.is_squelched()
|
||||
data["boss_short"] = using_map.boss_short
|
||||
|
||||
data["stat_display"] = list(
|
||||
@@ -298,7 +297,7 @@
|
||||
setMenuState(ui.user, COMM_SCREEN_MESSAGES)
|
||||
|
||||
if("toggleatc")
|
||||
ATC.squelched = !ATC.squelched
|
||||
SSatc.reroute_traffic(yes = !SSatc.is_squelched(), silent = TRUE)
|
||||
|
||||
if("delmessage")
|
||||
var/datum/comm_message_listener/l = obtain_message_listener()
|
||||
|
||||
Reference in New Issue
Block a user