mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
94 lines
2.1 KiB
Plaintext
94 lines
2.1 KiB
Plaintext
/obj/screen/ghost
|
|
icon = 'icons/mob/screen_ghost.dmi'
|
|
|
|
/obj/screen/ghost/MouseEntered()
|
|
flick(icon_state + "_anim", src)
|
|
|
|
/obj/screen/ghost/jumptomob
|
|
name = "Jump to mob"
|
|
icon_state = "jumptomob"
|
|
|
|
/obj/screen/ghost/jumptomob/Click()
|
|
var/mob/dead/observer/G = usr
|
|
G.jumptomob()
|
|
|
|
/obj/screen/ghost/orbit
|
|
name = "Orbit"
|
|
icon_state = "orbit"
|
|
|
|
/obj/screen/ghost/orbit/Click()
|
|
var/mob/dead/observer/G = usr
|
|
G.follow()
|
|
|
|
/obj/screen/ghost/reenter_corpse
|
|
name = "Reenter corpse"
|
|
icon_state = "reenter_corpse"
|
|
|
|
/obj/screen/ghost/reenter_corpse/Click()
|
|
var/mob/dead/observer/G = usr
|
|
G.reenter_corpse()
|
|
|
|
/obj/screen/ghost/teleport
|
|
name = "Teleport"
|
|
icon_state = "teleport"
|
|
|
|
/obj/screen/ghost/teleport/Click()
|
|
var/mob/dead/observer/G = usr
|
|
G.dead_tele()
|
|
|
|
/obj/screen/ghost/spawners
|
|
name = "Ghost role spawners"
|
|
icon_state = "spawners"
|
|
|
|
/obj/screen/ghost/spawners/Click()
|
|
var/mob/dead/observer/G = usr
|
|
G.open_spawners_menu()
|
|
|
|
/datum/hud/ghost/New(mob/owner)
|
|
..()
|
|
var/obj/screen/using
|
|
|
|
using = new /obj/screen/ghost/jumptomob()
|
|
using.screen_loc = ui_ghost_jumptomob
|
|
static_inventory += using
|
|
|
|
using = new /obj/screen/ghost/orbit()
|
|
using.screen_loc = ui_ghost_orbit
|
|
static_inventory += using
|
|
|
|
using = new /obj/screen/ghost/reenter_corpse()
|
|
using.screen_loc = ui_ghost_reenter_corpse
|
|
static_inventory += using
|
|
|
|
using = new /obj/screen/ghost/teleport()
|
|
using.screen_loc = ui_ghost_teleport
|
|
static_inventory += using
|
|
|
|
using = new /obj/screen/ghost/spawners()
|
|
using.screen_loc = ui_ghost_spawners
|
|
static_inventory += using
|
|
|
|
using = new /obj/screen/ghost/pai()
|
|
using.screen_loc = ui_ghost_pai
|
|
static_inventory += using
|
|
|
|
using = new /obj/screen/language_menu/ghost
|
|
using.icon = ui_style
|
|
static_inventory += using
|
|
|
|
/datum/hud/ghost/show_hud(version = 0, mob/viewmob)
|
|
// don't show this HUD if observing; show the HUD of the observee
|
|
var/mob/dead/observer/O = mymob
|
|
if (istype(O) && O.observetarget)
|
|
plane_masters_update()
|
|
return FALSE
|
|
|
|
. = ..()
|
|
if(!.)
|
|
return
|
|
var/mob/screenmob = viewmob || mymob
|
|
if(!screenmob.client.prefs.ghost_hud)
|
|
screenmob.client.screen -= static_inventory
|
|
else
|
|
screenmob.client.screen += static_inventory
|