From 29ef4c547d2958c2c05e677c44a3fd735623290f Mon Sep 17 00:00:00 2001 From: silencer-pl <103842328+silencer-pl@users.noreply.github.com> Date: Thu, 22 Aug 2024 14:21:18 -0400 Subject: [PATCH] backdrop removing option :U --- .../admin/mission_control/mission_control.dm | 13 +++++++++---- code/modules/mob/mob.dm | 4 ++-- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/code/modules/admin/mission_control/mission_control.dm b/code/modules/admin/mission_control/mission_control.dm index 80d3adc034..fd02b1baa4 100644 --- a/code/modules/admin/mission_control/mission_control.dm +++ b/code/modules/admin/mission_control/mission_control.dm @@ -1007,20 +1007,25 @@ if(!check_rights(R_ADMIN)) return - var/new_location = tgui_input_list(usr, "Current backdrop: [GLOB.backdrop_type]","LOCATION",list("space","space_cat")) + var/new_location = tgui_input_list(usr, "Current backdrop: [GLOB.backdrop_type]","LOCATION",list("OV-PST","test_site","space_cat")) switch(new_location) - if("space") + if("OV-PST") GLOB.ingame_current_system = "Tau-Gamma 331, Neroid Sector" show_blurb(GLOB.player_list, duration = 10 SECONDS, message = "NOW ARRIVING:\n[GLOB.ingame_current_system]", screen_position = "CENTER,BOTTOM+1.5:16", text_alignment = "center", text_color = "#ffffff", blurb_key = "now_arriving", ignore_key = TRUE, speed = 1) GLOB.backdrop_type = "space" for(var/mob/mob in GLOB.mob_list) - mob.update_backdrop() + mob.update_backdrop(1) + if("test_site") + GLOB.ingame_current_system = "Tau-Lambda 937, Neroid Sector" + show_blurb(GLOB.player_list, duration = 10 SECONDS, message = "NOW ARRIVING:\n[GLOB.ingame_current_system]", screen_position = "CENTER,BOTTOM+1.5:16", text_alignment = "center", text_color = "#ffffff", blurb_key = "now_arriving", ignore_key = TRUE, speed = 1) + for(var/mob/mob in GLOB.mob_list) + mob.update_backdrop(0) if("space_cat") GLOB.ingame_current_system = "Mew-Orionis 420, Nyaoid Sewctow" show_blurb(GLOB.player_list, duration = 10 SECONDS, message = "NOW ARRIVING:\n[GLOB.ingame_current_system]", screen_position = "CENTER,BOTTOM+1.5:16", text_alignment = "center", text_color = "#ffffff", blurb_key = "now_arriving", ignore_key = TRUE, speed = 1) GLOB.backdrop_type = "space_cat" for(var/mob/mob in GLOB.mob_list) - mob.update_backdrop() + mob.update_backdrop(1) else return diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index f79d9891e7..f0287658ff 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -1032,6 +1032,6 @@ note dizziness decrements automatically in the mob's Life() proc. qdel(src) -/mob/proc/update_backdrop() +/mob/proc/update_backdrop(remove = 1) src.clear_fullscreen("space", 0) - src.overlay_fullscreen("space", text2path("/atom/movable/screen/fullscreen/[GLOB.backdrop_type]")) + if(remove == 1)src.overlay_fullscreen("space", text2path("/atom/movable/screen/fullscreen/[GLOB.backdrop_type]"))