Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: KeldorKatarn on June 02, 2009, 02:59:08 am

Title: Custom gauges color
Post by: KeldorKatarn on June 02, 2009, 02:59:08 am
Would it be possible to integrate a feature "+inherit color from:" or something to the hud_gauges.tbl to enable
custom gauges to inherit the color of any of the main gauges?

Right now the problem with custom gauges is, that they can't change color. You can specify it, but it can't be changed ingame.
Linking it to another HUD element would at least give this some flexibility.

Also there's a slight bug right now. It seems custom gauges show up in external view. I've reported this to Mantis.
Title: Re: Custom gauges color
Post by: chief1983 on June 02, 2009, 04:05:39 pm
That would be a good option.  Not sure if there's already a way to do it, but it would definitely be nice.
Title: Re: Custom gauges color
Post by: Dragon on June 03, 2009, 08:40:40 am
You can disable HUD in external view (and anywhere else) using Shift+O ,I like having HUD active in external view.
Title: Re: Custom gauges color
Post by: KeldorKatarn on June 03, 2009, 08:46:33 am
I don't think you understood.. I'm not talking about the external view where you see your fighter from behind, I'm talking about external camera. There a HUD makes no sense and the standard HUD is correctly not displayed, but custom gauges are. So that's a bug.
Title: Re: Custom gauges color
Post by: portej05 on June 03, 2009, 09:11:15 am
chief: I'm pretty sure that the HUD custom gauges are drawn from hud.cpp:1890.
Adding code similar to that which protects the actual hud
Code: [Select]
if (!(Viewer_mode & (VM_EXTERNAL | VM_DEAD_VIEW | VM_WARP_CHASE | VM_PADLOCK_ANY )))

Would probably help here.

Can someone please Mantis this one (I haven't actually seen the bug)
Title: Re: Custom gauges color
Post by: Dragon on June 03, 2009, 09:32:23 am
I don't think you understood.. I'm not talking about the external view where you see your fighter from behind, I'm talking about external camera. There a HUD makes no sense and the standard HUD is correctly not displayed, but custom gauges are. So that's a bug.
That's new ,it's of course a bug if it's displaying custom gauges in external camera.
Title: Re: Custom gauges color
Post by: KeldorKatarn on June 03, 2009, 10:41:59 am
I already put this into mantis:

http://scp.indiegames.us/mantis/view.php?id=1933

Apparently there's several issues with the gauges.
In 3d-person view some gauges shift position, some don't and a tester of ours recently reported this about custom gauges:

2) In external mode the gunsight elements (custom gauge) don't shift around with the rest of the elements while in a turn.

3) In pan view mode the gunsight (custom gauge) remains on the screen while the rest of the HUD is hidden.  Should be hidden here as well.
Title: Re: Custom gauges color
Post by: Zacam on June 03, 2009, 02:31:46 pm
There is a script some one did to change the escort reticule. Don't know how applicable that is to the current scenario, but I thought I'd put that there.

http://www.hard-light.net/wiki/index.php/Script_-_Escort_Reticle