mob
verb
Toggle_HUD()
set category="Options"
if(show_meter)
client.screen -= src.HAPmeters
client.screen-=HAPmeters
show_meter = 0
else
client.screen += src.HAPmeters
client.screen+=HAPmeters
show_meter = 1
//for(var/obj/hud/I in src.client.screen)//Loops over all types in /obj/hud/items
// del(I)//deletes them
//client.screen += new/obj/hud/White_Square(src.client)
mob
var/tmp
obj/meters/HAPmeters
New()
HAPmeters = new
..()
obj
meters
icon = 'misc.dmi'
icon_state="thing"
layer = MOB_LAYER + 51
screen_loc = "SOUTH, WEST"
var
obj/meter/HP_meter/HPM
obj/meter/EP_meter/EPM
obj/meter/MP_meter/MPM
New()
..()
src.HPM = new
src.EPM = new
src.MPM = new
proc
Update()
src.HPM.Update()
overlays -= HPM
overlays += HPM
src.EPM.Update()
overlays -= EPM
overlays += EPM
src.MPM.Update()
overlays -= MPM
overlays += MPM
obj
meter
var
num = 0
width = 30
HP_meter
layer = MOB_LAYER + 51
icon = 'meter.dmi'
icon_state = "0" //that's zero, not ( ) or O
screen_loc="SOUTH, WEST"
EP_meter
layer = MOB_LAYER + 51
icon = 'meterb.dmi'
icon_state = "0" //that's zero, not ( ) or O
screen_loc="SOUTH, WEST"
MP_meter
layer = MOB_LAYER + 51
icon = 'meterc.dmi'
icon_state = "0" //that's zero, not ( ) or O
screen_loc="SOUTH, WEST"
proc
Update()
if(num < 0) //if the meter is negative
num = 0 //set it to zero
else if(num > width) //if the meter is over 100%
num = width //set it to 100%
src.icon_state = "[round(src.num)]"
mob
var
show_meter=0
show_ticks=0
Problem description: Well, when i go into my game, the only thing that appears when i click Toggle HUD is the little icon "thing". the meters won't appear... if anyone knows how to fix this plz tell me.
plz tell me what the problem is