Files
2020-02-16 19:40:21 -08:00

30 lines
724 B
Plaintext

/datum/hud/nukewires
var/obj/screen/hud
boxes
close
var/obj/machinery/nuclearbomb/master
New(master)
src.master = master
src.boxes = create_screen("boxes", "Wiring Panel", 'icons/mob/screen1.dmi', "block", "6, 6 to 10, 10")
src.close = create_screen("close", "Close Panel", 'icons/mob/screen1.dmi', "x", "10, 11", HUD_LAYER+1)
update()
clicked(id, mob/user)
switch (id)
if ("close")
user.detach_hud(src)
user.s_active = null
clear_master()
master = null
..()
proc/update()
if (!boxes)
return
boxes.screen_loc = "6, 6 to 10, 10"
if (!close)
src.close = create_screen("close", "Close Panel", 'icons/mob/screen1.dmi', "x", "10, 11", HUD_LAYER+1)
close.screen_loc = "11, 10"