Author Topic: [Request]better "cl_hudscale"  (Read 1972 times)

Bono

  • VM-68
  • Posts: 193
[Request]better "cl_hudscale"
« on: March 30, 2010, 07: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 better support for multiple screen resolutions. PCDPmod 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!

« Last Edit: March 30, 2010, 08:01:10 AM by Bono »

abnormal

  • Autococker
  • Posts: 649
Re: [Request]better "cl_hudscale"
« Reply #1 on: March 30, 2010, 07:49:31 AM »
You can use it like 0.1, can't you?

Bono

  • VM-68
  • Posts: 193
Re: [Request]better "cl_hudscale"
« Reply #2 on: March 30, 2010, 08: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.
« Last Edit: March 30, 2010, 08:28:32 AM by Bono »

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: [Request]better "cl_hudscale"
« Reply #3 on: March 28, 2011, 03: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).

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: [Request]better "cl_hudscale"
« Reply #4 on: March 28, 2011, 10:47:05 PM »
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:

ic3y

  • Committee Member
  • Autococker
  • Posts: 1398
Re: [Request]better "cl_hudscale"
« Reply #5 on: March 29, 2011, 08:02:24 AM »
Why float?

You cant make more steps ?

Instead of 1-3 maybe 1-10 ?

payl

  • 68 Carbine
  • Posts: 365
Re: [Request]better "cl_hudscale"
« Reply #6 on: March 29, 2011, 09:58:08 AM »
Yes, and then all existing scripts using that will be buggy, and there still will be limit. So, thats stupid idea...