Buttons to change Z level as a ghost

This commit is contained in:
quotefox
2022-09-09 00:54:18 +01:00
parent 9186412461
commit e960c5f3fa
3 changed files with 32 additions and 5 deletions
+7 -5
View File
@@ -154,8 +154,10 @@
//Ghosts
#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"
#define ui_ghost_teleport "SOUTH:6,CENTER+1:24"
#define ui_ghost_pai "SOUTH: 6, CENTER+2:24"
#define ui_ghost_jumptomob "SOUTH:6,CENTER-3:24"
#define ui_ghost_orbit "SOUTH:6,CENTER-2:24"
#define ui_ghost_reenter_corpse "SOUTH:6,CENTER-1:24"
#define ui_ghost_teleport "SOUTH:6,CENTER:24"
#define ui_ghost_pai "SOUTH: 6, CENTER+1:24"
#define ui_ghost_up "SOUTH: 6, CENTER+2:24"
#define ui_ghost_down "SOUTH: 6, CENTER+3:24"
+25
View File
@@ -4,6 +4,21 @@
/obj/screen/ghost/MouseEntered()
flick(icon_state + "_anim", src)
/obj/screen/ghost/moveup
name = "Ascend"
icon_state = "up"
/obj/screen/ghost/moveup/Click()
usr.zMove(UP, TRUE)
/obj/screen/ghost/movedown
name = "Descend"
icon_state = "down"
/obj/screen/ghost/movedown/Click()
usr.zMove(DOWN, TRUE)
/obj/screen/ghost/jumptomob
name = "Jump to mob"
icon_state = "jumptomob"
@@ -73,6 +88,16 @@
using.hud = src
static_inventory += using
using = new /obj/screen/ghost/moveup
using.screen_loc = ui_ghost_up
using.hud = src
static_inventory += using
using = new /obj/screen/ghost/movedown
using.screen_loc = ui_ghost_down
using.hud = src
static_inventory += using
using = new /obj/screen/language_menu
using.icon = ui_style
using.hud = src