Im currently working on my HUD and loading the controls settings from a
keyvalues resource file (HudLayout.res). I've replaced most of the HL2 HUD
panels by my own ones that use vgui::labels to display text (ammo count,
etc) instead of the HudNumericDisplay class (which directly draws text on
the panel surface).

Im having an annoying bug where the font used by these labels almost doubles
in size after I execute a hud_reloadscheme command to reload the
HudLayout.res ingame. Several other elements of the UI also get messed up
(half of the HL2 weapon selection menu is outside of the screen, the player
id text also doubles/triples in size, etc). This forces me to restart my
client to get the fonts back to normal size, and defeats the purpose of
command (which is to reload the hud layout without having to restart the
client).

Im curious as to what is causing this and was wondering if there a
workaround/fix is available for this before I try fixing this by myself,
provided it's possible at all. I think this has something to do with VGUI
confusing screen resolution and/or not applying proportional values
correctly at some point. I've noticed this also happens when I change my
client's screen resolution.

My apologizes if this has already been answered in a previous post, but I
couldnt find any message relating to my problem.

Thanks!
- Spk



_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to