ID:169773
 
I have stat panels for inv and stuff, how do i hide them, without deleting em?
How do you hide statpanels?
In response to CaptFalcon33035
ya how u hide a stat panel? i need the stat panel so i can have hp. but i have the hp on the screen HUD and dont want any thing to the right where stat panels are
In response to Bladeshifter
You don't need the statpanel to show HP on the HUD.
In response to Mega fart cannon
ok maybe that was the wrong question.... what my problem is, is that i have to include src.Updatefatigue(src)in my stat panel thing so when the numbers change it updates the HUD, where could i put this instead of in the statpanel code? i tried various places but it messes it up and the HUD disapears
In response to Bladeshifter
I'm guessing something like this (not tested, and you might need to change some stuff)
mob/proc/Updatefatigue()
set background = 1
while(1)
//Rest of your Updatefatigue code here

mob/Login()
src.Updatefatigue()


Edited: Twice in succession
In response to Sgeo
that didnt work, i took it out of the statpanel and i dont have a statpanel any more so i added.....
mob/Login()
src.Updatefatigue()


mob
proc/Updatefatigue()
set background = 1
while(1)
for(var/obj/HUD/fatiguebar/O in src.client.screen) // src's health with the range of
O.num = round((src.Fatigue/src.maxfatigue)*O.width)// each objects, then sets icon
if(usr.Fatigue >= 95)
O.icon_state = "13"
if(usr.Fatigue <= 90)
O.icon_state = "12"
if(usr.Fatigue <= 80)
O.icon_state = "11"
if(usr.Fatigue <= 70)
O.icon_state = "10"
if(usr.Fatigue <= 60)
O.icon_state = "9"
if(usr.Fatigue <= 55)
O.icon_state = "8"
if(usr.Fatigue <= 45)
O.icon_state = "7"
if(usr.Fatigue <= 35)
O.icon_state = "6"
if(usr.Fatigue <= 30)
O.icon_state = "5"
if(usr.Fatigue <= 20)
O.icon_state = "4"
if(usr.Fatigue <= 15)
O.icon_state = "3"
if(usr.Fatigue <= 10)
O.icon_state = "2"
if(usr.Fatigue <= 5)
O.icon_state = "1"
if(usr.Fatigue == 0)
O.icon_state = "0"



and nothing happens, no HUD or anything :/
In response to Bladeshifter
Bladeshifter wrote:
that didnt work, i took it out of the statpanel and i dont have a statpanel any more so i added.....
mob/Login()
src.Updatefatigue()


mob
proc/Updatefatigue()
set background = 1
while(1)
for(var/obj/HUD/fatiguebar/O in src.client.screen) // src's health with the range of
O.num = round((src.Fatigue/src.maxfatigue)*O.width)// each objects, then sets icon
if(usr.Fatigue >= 95)
O.icon_state = "13"
if(usr.Fatigue <= 90)
O.icon_state = "12"
if(usr.Fatigue <= 80)
O.icon_state = "11"
if(usr.Fatigue <= 70)
O.icon_state = "10"
if(usr.Fatigue <= 60)
O.icon_state = "9"
if(usr.Fatigue <= 55)
O.icon_state = "8"
if(usr.Fatigue <= 45)
O.icon_state = "7"
if(usr.Fatigue <= 35)
O.icon_state = "6"
if(usr.Fatigue <= 30)
O.icon_state = "5"
if(usr.Fatigue <= 20)
O.icon_state = "4"
if(usr.Fatigue <= 15)
O.icon_state = "3"
if(usr.Fatigue <= 10)
O.icon_state = "2"
if(usr.Fatigue <= 5)
O.icon_state = "1"
if(usr.Fatigue == 0)
O.icon_state = "0"



and nothing happens, no HUD or anything :/

You're supposed to indent the things after <code>while(1)</code>