Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: z64555 on February 06, 2016, 07:51:40 am

Title: Trouble with $Scale Gauges
Post by: z64555 on February 06, 2016, 07:51:40 am
A user by the name of Lira showed up on #scp last night stating that there was something wrong with the HUD being too large to their liking. We've managed to track this behavior down to Yarn's additions in January around the 25th, where he set a minimum scale size.

I noticed an issue when trying to add a simple no_scale-hdg.tbm in /data/tables:
Code: [Select]
$Scale Gauges: false
This doesn't seem to have any affect at all. The expected outcome would be of course to override the minimum hud scaling.
Title: Re: Trouble with $Scale Gauges
Post by: Yarn on February 06, 2016, 02:44:21 pm
I figured out what's causing $Scale Gauges to no longer work properly. I'll post a pull request soon.
Title: Re: Trouble with $Scale Gauges
Post by: Yarn on February 06, 2016, 03:53:59 pm
Here's the PR: https://github.com/scp-fs2open/fs2open.github.com/pull/533

Just so you know, my additions alone don't actually set a minimum size; rather, it just allows modders to set one. If one isn't set, then HUD scaling is supposed to work exactly as it did before my changes.
Title: Re: Trouble with $Scale Gauges
Post by: Bryan See on February 07, 2016, 12:33:21 pm
And what about HUD gauges being independent of $Base resolution?
Title: Re: Trouble with $Scale Gauges
Post by: z64555 on February 09, 2016, 08:02:00 pm
Thanks much, Yarn. :)

And what about HUD gauges being independent of $Base resolution?

Each #Gauge Config can have a $Scale Gauges: (http://www.hard-light.net/wiki/index.php/Hud_gauges.tbl#.24Scale_Gauges:_2) option defined that overrides the global option, and further down each gauge (of most guage types) can override both the gauge configuration and global options with Scale Gauge: (http://www.hard-light.net/wiki/index.php/Hud_gauges.tbl#Scale_Gauge:)

Please refer to the wiki for more info.