mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 11:13:16 +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"
|
#define ui_genetic_master "EAST-1:16,NORTH-3:16"
|
||||||
|
|
||||||
// Ghost ones
|
// Ghost ones
|
||||||
|
#define ui_ghost_returntomenu "SOUTH:6,CENTER-3:24"
|
||||||
#define ui_ghost_jumptomob "SOUTH:6,CENTER-2:24"
|
#define ui_ghost_jumptomob "SOUTH:6,CENTER-2:24"
|
||||||
#define ui_ghost_orbit "SOUTH:6,CENTER-1:24"
|
#define ui_ghost_orbit "SOUTH:6,CENTER-1:24"
|
||||||
#define ui_ghost_reenter_corpse "SOUTH:6,CENTER:24"
|
#define ui_ghost_reenter_corpse "SOUTH:6,CENTER:24"
|
||||||
|
|||||||
@@ -11,6 +11,16 @@
|
|||||||
/obj/screen/ghost/Click()
|
/obj/screen/ghost/Click()
|
||||||
closeToolTip(usr)
|
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
|
/obj/screen/ghost/jumptomob
|
||||||
name = "Jump to mob"
|
name = "Jump to mob"
|
||||||
desc = "Pick a mob from a list to jump to."
|
desc = "Pick a mob from a list to jump to."
|
||||||
@@ -88,6 +98,11 @@
|
|||||||
HUD.adding = adding
|
HUD.adding = adding
|
||||||
|
|
||||||
var/obj/screen/using
|
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 = new /obj/screen/ghost/jumptomob()
|
||||||
using.screen_loc = ui_ghost_jumptomob
|
using.screen_loc = ui_ghost_jumptomob
|
||||||
using.hud = src
|
using.hud = src
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 24 KiB |
Reference in New Issue
Block a user