Digital Paint Discussion Board

Development => Bugs, Feature Requests, and Feedback => Topic started by: Bono on March 30, 2010, 09:38:21 AM

Title: [Request]better "cl_hudscale"
Post by: Bono on March 30, 2010, 09:38:21 AM
Hi. I have a request! You can do a better version of "cl_hudscale"? Not only [1,2,3] but from 1 to 3 starting at 0.1, 0.2, 0.3, [...] 1.1, [...] 2.6, etc. or 0.01, 0.02, etc.

It is very important for me, because this improvement maybe make my MOD (http://dplogin.com/forums/index.php?topic=20345.0) better support for multiple screen resolutions. PCDPmod (http://dplogin.com/forums/index.php?topic=20345.0) officially only ideal supports 1024x768 resolution (cl_hudscale = 2) and 512x384 (cl_hudscale = 1) and little supports 1600x1200 (cl_hudscale = 3).
In other resolutions, all looks good, but some elements are in the wrong places. I have an old monitor, and I can't improve my menus well to other resolutions. I do not know how to solve it now, so maybe that cl_hudscale can little help me.

I got the idea to be programmed and designed these elements little differently, and maybe it should solve my problem, but that takes me a lot of time.


SORRY FOR MY BAD ENGLISH!

Title: Re: [Request]better "cl_hudscale"
Post by: abnormal on March 30, 2010, 09:49:31 AM
You can use it like 0.1, can't you?
Title: Re: [Request]better "cl_hudscale"
Post by: Bono on March 30, 2010, 10:00:44 AM
I can write in the console 0.1, 1.5, etc. but it does not work.. It works only when I entered 1, 2 or 3 and then the size of the menu changes.
Title: Re: [Request]better "cl_hudscale"
Post by: jitspoe on March 28, 2011, 05:15:26 PM
The problem with this is that if you have, say, a clean 1-pixel border on something, then scaling it by a non-integer value will make it blurry.  I could allow for floating point hudscales.  The performance difference would probably be negligible.  Making the menu and HUD independent is a little more involved, as they both use the same system.  I'd have to revamp the hud and/or menu system (both could stand to have some changes).

I'll try to give this a go tonight and see how it looks.  (Yeah, I know this topic is a year old - at least it's the right month, though. ;)  Still catching up on old posts).
Title: Re: [Request]better "cl_hudscale"
Post by: jitspoe on March 29, 2011, 12:47:05 AM
Ended up being a little more complicated than just changing an int to a float, but I got it working.  It doesn't look as bad as I thought it would.  The CO2 bar is a bit wonky, but I should probably replace that with a higher-res image, anyway.

This is with cl_hudscale 2.2:
Title: Re: [Request]better "cl_hudscale"
Post by: ic3y on March 29, 2011, 10:02:24 AM
Why float?

You cant make more steps ?

Instead of 1-3 maybe 1-10 ?
Title: Re: [Request]better "cl_hudscale"
Post by: payl on March 29, 2011, 11:58:08 AM
Yes, and then all existing scripts using that will be buggy, and there still will be limit. So, thats stupid idea...