mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Add a "Return to Menu" ghost HUD button
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user