Skip to content

Commit

Permalink
Merge pull request #21 from silencer-pl/dev
Browse files Browse the repository at this point in the history
STS hotfix: Backdrop shenanigans
  • Loading branch information
silencer-pl committed Aug 22, 2024
2 parents 3822ecb + 29ef4c5 commit 4f0ecfc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
13 changes: 9 additions & 4 deletions code/modules/admin/mission_control/mission_control.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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<b>[GLOB.ingame_current_system]</b>", 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<b>[GLOB.ingame_current_system]</b>", 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<b>[GLOB.ingame_current_system]</b>", 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

Expand Down
4 changes: 2 additions & 2 deletions code/modules/mob/mob.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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]"))

0 comments on commit 4f0ecfc

Please sign in to comment.