var/NPC_HUD/NH = new()
var/extended_text = ""
var/obj/extended_NPC
mob
var/tmp/list/hud_screen = list()
proc
add_screen(x)
src.hud_screen += x
src.update_screen()
remove_screen(x, all)
if (all)
for (x in src.hud_screen)
src.hud_screen -= x
else
src.hud_screen -= x
src.update_screen()
update_screen()
src.client.screen = null
for (var/obj/t in src.hud_screen)
src.client.screen.Add(t)
NPC_HUD
proc
Chat(obj/NPC, words)
if (istype(NPC, /obj/shops))
words = "test - 1234567891011121314151617181920218547456735673"
NH.Small_Box(NPC, words)
Shop()
Small_Box(obj/NPC, words)
if (length(extended_text))
extended_text = ""
usr.remove_screen(/obj/Hud_Face/face, 1)
usr.remove_screen(/obj/Hud_Controls/blank, 1)
usr.remove_screen(/obj/Hud_Boxes/Hud_Box_1, 1)
usr.remove_screen(/obj/Hud_Boxes/Hud_Box_2, 1)
usr.remove_screen(/obj/Hud_Boxes/Hud_Box_3, 1)
usr.remove_screen(/obj/Hud_Boxes/Hud_Box_4, 1)
usr.remove_screen(/obj/Hud_Boxes/Hud_Box_5, 1)
usr.remove_screen(/obj/Hud_Boxes/Hud_Box_6, 1)
usr.remove_screen(/obj/Hud_Boxes/Hud_Box_7, 1)
usr.remove_screen(/obj/Hud_Boxes/Hud_Box_8, 1)
usr.remove_screen(/obj/Hud_Boxes/Hud_Box_9, 1)
if (!words) return
var/new_words = copytext(words, 1, 35)
var/obj/Hud_Boxes/Hud_Box_1/H1 = new()
usr.add_screen(H1)
H1.screen_loc = "1,1"
for (var/a = 2, a < 11, a ++)
var/obj/Hud_Boxes/Hud_Box_2/H2 = new()
usr.add_screen(H2)
H2.screen_loc = "[a],1"
var/obj/Hud_Boxes/Hud_Box_3/H3 = new()
usr.add_screen(H3)
H3.screen_loc = "11,1"
var/obj/Hud_Boxes/Hud_Box_4/H4 = new()
usr.add_screen(H4)
H4.screen_loc = "1,2"
for (var/a = 2, a < 11, a ++)
var/obj/Hud_Boxes/Hud_Box_5/H5 = new()
usr.add_screen(H5)
H5.screen_loc = "[a],2"
var/obj/Hud_Boxes/Hud_Box_6/H6 = new()
usr.add_screen(H6)
H6.screen_loc = "11,2"
var/obj/Hud_Face/face/npc_face = new()
npc_face.screen_loc = "1,2"
npc_face.layer = MOB_LAYER + 30
npc_face.icon = 'Icons/faces.dmi'
npc_face.icon_state = "[NPC.name]"
usr.add_screen(npc_face)
var/obj/mt = new()
mt.screen_loc = "2,2"
mt.layer = MOB_LAYER + 16
mt.maptext = "<font color = white><font face = Comic Sans MS><b>[new_words]</b>"
usr.add_screen(mt)
if (length(words) > 35)
extended_text = copytext(words, 35, length(words) + 1)
extended_NPC = NPC
var/obj/Hud_Controls/blank/b = new()
var/obj/Hud_Controls/blank/t = new()
b.screen_loc = "11:-6,1:5"
t.screen_loc = "11,1:7"
b.layer = MOB_LAYER + 16
t.layer = MOB_LAYER + 16
t.icon_state = "nothing"
t.maptext = "<font size = \"1\"><font color = white><font face = Comic Sans MS>Next"
usr.add_screen(b)
usr.add_screen(t)
obj
Hud_Face
face
icon = 'Icons/faces.dmi'
Hud_Controls
blank
icon = 'Icons/textboxstuff.dmi'
icon_state ="blank"
Click()
NH.Small_Box(extended_NPC ,extended_text)
Hud_Boxes
Hud_Box_1
icon = 'Icons/textboxstuff.dmi'
icon_state = "1"
layer = MOB_LAYER + 15
Hud_Box_2
icon = 'Icons/textboxstuff.dmi'
icon_state = "2"
layer = MOB_LAYER + 15
Hud_Box_3
icon = 'Icons/textboxstuff.dmi'
icon_state = "3"
layer = MOB_LAYER + 15
Hud_Box_4
icon = 'Icons/textboxstuff.dmi'
icon_state = "4"
layer = MOB_LAYER + 15
Hud_Box_5
icon = 'Icons/textboxstuff.dmi'
icon_state = "5"
layer = MOB_LAYER + 15
Hud_Box_6
icon = 'Icons/textboxstuff.dmi'
icon_state = "6"
layer = MOB_LAYER + 15
Hud_Box_7
icon = 'Icons/textboxstuff.dmi'
icon_state = "7"
layer = MOB_LAYER + 15
Hud_Box_8
icon = 'Icons/textboxstuff.dmi'
icon_state = "8"
layer = MOB_LAYER + 15
Hud_Box_9
icon = 'Icons/textboxstuff.dmi'
icon_state = "9"
layer = MOB_LAYER + 15
Problem description:
For some reason /obj/overlays/HPGlobe, /obj/overlays/ManaGlobe, /obj/overlays/EXPGlobe are being removed from the hud_screen list.