ID:169773
![]() May 2 2005, 9:26 am
|
|
I have stat panels for inv and stuff, how do i hide them, without deleting em?
|
![]() May 2 2005, 9:33 am
|
|
How do you hide statpanels?
|
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
|
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
|
I'm guessing something like this (not tested, and you might need to change some stuff)
mob/proc/Updatefatigue() Edited: Twice in succession |
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 :/ |
Bladeshifter wrote:
that didnt work, i took it out of the statpanel and i dont have a statpanel any more so i added..... You're supposed to indent the things after <code>while(1)</code> |