Add a "Return to Menu" ghost HUD button

This commit is contained in:
Aronai Sieyes
2020-05-26 13:51:48 -04:00
parent 211cf140b3
commit 74cfc23497
3 changed files with 16 additions and 0 deletions

View File

@@ -153,6 +153,7 @@
#define ui_genetic_master "EAST-1:16,NORTH-3:16"
// Ghost ones
#define ui_ghost_returntomenu "SOUTH:6,CENTER-3:24"
#define ui_ghost_jumptomob "SOUTH:6,CENTER-2:24"
#define ui_ghost_orbit "SOUTH:6,CENTER-1:24"
#define ui_ghost_reenter_corpse "SOUTH:6,CENTER:24"

View File

@@ -11,6 +11,16 @@
/obj/screen/ghost/Click()
closeToolTip(usr)
/obj/screen/ghost/returntomenu
name = "Return to menu"
desc = "Return to the title screen menu."
icon_state = "returntomenu"
/obj/screen/ghost/returntomenu/Click()
..()
var/mob/observer/dead/G = usr
G.abandon_mob()
/obj/screen/ghost/jumptomob
name = "Jump to mob"
desc = "Pick a mob from a list to jump to."
@@ -88,6 +98,11 @@
HUD.adding = adding
var/obj/screen/using
using = new /obj/screen/ghost/returntomenu()
using.screen_loc = ui_ghost_returntomenu
using.hud = src
adding += using
using = new /obj/screen/ghost/jumptomob()
using.screen_loc = ui_ghost_jumptomob
using.hud = src