SBARINFO Hud Scaling
SBARINFO Hud Scaling
I have a hud made with SBARINFO for a mod. In some resolutions it looks too small and in some too big. Is there a way to normalize it? (Without using ACS to create the entire hud...)
- SwordGrunt
- Forum Regular
- Posts: 377
- Joined: Thu Jun 07, 2012 8:43 pm
Re: SBARINFO Hud Scaling
Set the resolution's width and height before any HUD definitions. Then, use the 'forcescaled' property on the statusbar declaration.
An example is Outcast's HUD, where both the fullscreen and statusbar HUDs are the same, and have their resolution set to 1024x768 no matter the user's own resolution:
I don't think you can use the resolution property multiple times to set a different size for each statusbar, but I'm not sure so it's worth trying in case you need that.
An example is Outcast's HUD, where both the fullscreen and statusbar HUDs are the same, and have their resolution set to 1024x768 no matter the user's own resolution:
Code: Select all
interpolatehealth true;
completeborder true;
Height 0;
resolution 1024, 768; // width and height
statusbar normal, forcescaled, fullscreenoffsets
{ [...] }
statusbar fullscreen, forcescaled, fullscreenoffsets
{ [...] }
Re: SBARINFO Hud Scaling
I didn't know of that forcescaled property, that's exactly what I need. Thanks!
Re: SBARINFO Hud Scaling
Somebody really needs to update the wiki with this kind of stuff. SBARINFO has a lot of potential but so little is known.
Re: SBARINFO Hud Scaling
There's very little (if any) example code as well. Most of the explanations are also kind of vague and not very precise sometimes. Would really help if someone did correct/add information there.Fused wrote:Somebody really needs to update the wiki with this kind of stuff. SBARINFO has a lot of potential but so little is known.
-
- Retired Staff / Community Team Member
- Posts: 2569
- Joined: Sat Jun 02, 2012 2:44 am
Re: SBARINFO Hud Scaling
Should probably ask on ZDoom since most of the modders there have been frequently using the new features provided by SBARINFO