Window Size affect's Health Bar HUD. in Developer Help
|
|
Code:
client/perspective=EYE_PERSPECTIVE mob var tmp infmana=0 fresh_login=0 player icon='icons/player/male.dmi' icon_state="walk" pixel_y=8
combat_flag=1 shadow_y=-3
var age=10
saved_x saved_y saved_z saved_dir
setting_autotarget=1 setting_targettracking=1 osay=1
Login() addPlayer(client) if(fresh_login) fresh_login=0
if(gender=="female")icon='icons/player/female.dmi'
client.eye=src
buildShadow() var/HUD/H=new HUD=H client.HUD=H H.build(client) H.display(client) H.Spells.setTalents(src) setHotbar()
for(var/obj/item/I in Bag) if(istype(I,/obj/item/gear))if(I.equip) I:Equip(src)
client.HUD.updateBag()
loadGuild() if(party)party.Login(src) else H.updatePartyMenu()
winset(src,"map.map","focus=true") winset(src,"main","macro=macros")
Punch=new/spell/LightPunch Kick=new/spell/LightKick Dash=new/spell/Dash for(var/x in typesof(/mob/player/hotbar_commands/verb))verbs+=x spawn()client.HUD.update_all(src)
SaveCharacter(ckey)
if(saved_x&&saved_y&&saved_z) Move(locate(saved_x,saved_y,saved_z)) dir=saved_dir if(loc==null)if(!SpawnLoc(faction))Move(locate(1,1,1)) else if(!SpawnLoc(faction))Move(locate(1,1,1))
spawn(-1)Command_Queue() spawn(-1)Movement_Loop() spawn(-1)Animate_Loop() spawn(-1)Regenerate_Mana() spawn(-1)Regenerate_Health() spawn(-1)AgeClock()
if(dead) DeathScreen.loadDisplay(src)
else client.eye=src
client.checkAdmin() client.checkMod()
client.HUD=HUD HUD.master=client HUD.hidden=1 HUD.add(client) setHotbar() if(dead)DeathScreen.loadDisplay(src)
loadGuild() if(party)party.Login(src) else HUD.updatePartyMenu() HUD.updateParty()
winset(src,"map.map","focus=true") winset(src,"main","macro=macros") for(var/x in typesof(/mob/player/hotbar_commands/verb))verbs+=x spawn()client.HUD.update_all(src)
if(saved_x&&saved_y&&saved_z) Move(locate(saved_x,saved_y,saved_z)) dir=saved_dir if(loc==null)if(!SpawnLoc(faction))Move(locate(1,1,1)) else if(!SpawnLoc(faction)) Move(locate(1,1,1))
spawn(-1)Command_Queue() spawn(-1)Movement_Loop() spawn(-1)Animate_Loop() spawn(-1)Regenerate_Mana() spawn(-1)Regenerate_Health() spawn(-1)AgeClock()
|
Problem description: I changed the window size of my interface and set the splitter for the child that holds my map and chat box to 65. Now when I login as an Exorcist everything is fine, but when logged in as a Occultist either new game or load game the health is less than the max health for some reason. The only thing I can think of is that something in the login code is affecting this. But i'm not sure.
|