mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
Merge branch 'master' of https://github.com/tgstation/tgstation into upstream-sync
This commit is contained in:
@@ -368,15 +368,17 @@ ADMIN_VERB(combo_hud, R_ADMIN, "Toggle Combo HUD", "Toggles the Admin Combo HUD.
|
||||
log_admin("[key_name(user)] toggled their admin combo HUD [user.combo_hud_enabled ? "ON" : "OFF"].")
|
||||
SSblackbox.record_feedback("nested tally", "admin_toggle", 1, list("Toggle Combo HUD", "[user.combo_hud_enabled ? "Enabled" : "Disabled"]")) // If you are copy-pasting this, ensure the 4th parameter is unique to the new proc!
|
||||
|
||||
/// List of hud traits in the admin combo hud
|
||||
#define ADMIN_HUDS list(TRAIT_SECURITY_HUD, TRAIT_MEDICAL_HUD, TRAIT_DIAGNOSTIC_HUD, TRAIT_BOT_PATH_HUD)
|
||||
|
||||
/client/proc/enable_combo_hud()
|
||||
if (combo_hud_enabled)
|
||||
return
|
||||
|
||||
combo_hud_enabled = TRUE
|
||||
|
||||
for (var/hudtype in list(DATA_HUD_SECURITY_ADVANCED, DATA_HUD_MEDICAL_ADVANCED, DATA_HUD_DIAGNOSTIC, DATA_HUD_BOT_PATH))
|
||||
var/datum/atom_hud/atom_hud = GLOB.huds[hudtype]
|
||||
atom_hud.show_to(mob)
|
||||
for (var/hudtrait in ADMIN_HUDS)
|
||||
ADD_TRAIT(mob, hudtrait, ADMIN_TRAIT)
|
||||
|
||||
for (var/datum/atom_hud/alternate_appearance/basic/antagonist_hud/antag_hud in GLOB.active_alternate_appearances)
|
||||
antag_hud.show_to(mob)
|
||||
@@ -390,9 +392,8 @@ ADMIN_VERB(combo_hud, R_ADMIN, "Toggle Combo HUD", "Toggles the Admin Combo HUD.
|
||||
|
||||
combo_hud_enabled = FALSE
|
||||
|
||||
for (var/hudtype in list(DATA_HUD_SECURITY_ADVANCED, DATA_HUD_MEDICAL_ADVANCED, DATA_HUD_DIAGNOSTIC, DATA_HUD_BOT_PATH))
|
||||
var/datum/atom_hud/atom_hud = GLOB.huds[hudtype]
|
||||
atom_hud.hide_from(mob)
|
||||
for (var/hudtrait in ADMIN_HUDS)
|
||||
REMOVE_TRAIT(mob, hudtrait, ADMIN_TRAIT)
|
||||
|
||||
for (var/datum/atom_hud/alternate_appearance/basic/antagonist_hud/antag_hud in GLOB.active_alternate_appearances)
|
||||
antag_hud.hide_from(mob)
|
||||
@@ -400,6 +401,8 @@ ADMIN_VERB(combo_hud, R_ADMIN, "Toggle Combo HUD", "Toggles the Admin Combo HUD.
|
||||
mob.lighting_cutoff = mob.default_lighting_cutoff()
|
||||
mob.update_sight()
|
||||
|
||||
#undef ADMIN_HUDS
|
||||
|
||||
ADMIN_VERB(show_traitor_panel, R_ADMIN, "Show Traitor Panel", "Edit mobs's memory and role", ADMIN_CATEGORY_GAME, mob/target_mob)
|
||||
var/datum/mind/target_mind = target_mob.mind
|
||||
if(!target_mind)
|
||||
|
||||
@@ -154,14 +154,12 @@
|
||||
this_relay["blend_mode"] = GLOB.blend_names["[relay.blend_mode]"]
|
||||
relays += list(this_relay)
|
||||
|
||||
for (var/filter_id in plane.filter_data)
|
||||
var/list/filter = plane.filter_data[filter_id]
|
||||
for (var/list/filter in plane.filter_data)
|
||||
if(!filter["render_source"])
|
||||
continue
|
||||
|
||||
var/list/filter_info = filter.Copy()
|
||||
filter_info["name"] = filter_id
|
||||
filter_info["our_ref"] = "[plane.plane]-[filter_id]"
|
||||
filter_info["our_ref"] = "[plane.plane]-[filter_info["name"]]"
|
||||
filters += list(filter_info)
|
||||
|
||||
this_plane["relays"] = relays
|
||||
|
||||
Reference in New Issue
Block a user