Question - Masking hud dials with png ?

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

Post Reply
dertien
---- E L I T E ----
---- E L I T E ----
Posts: 471
Joined: Sun Jan 23, 2011 9:27 pm
Location: Belgium, Monarchy, Feudal, Overtaxed system

Question - Masking hud dials with png ?

Post by dertien »

Hm puzzled ...

Is it possible to overlay a dial that is drawn as part of a hud (like for example; the speed bar, the shields and so on with a semi transparent .png file to mask part of that dial ?
I have seen some huds for download here with and underlay, but I would need to load an image over a couple of instruments. Can this be done or is it something for future versions of Oolite ?

And if it can be done, would someone point me to a working example please ?

thanks

Dertien
Alpha Backer of Elite Dangerous
With 250 GBP :D
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: Question - Masking hud dials with png ?

Post by cim »

This isn't possible as-is. The draw order of the HUD is legends, then dials, and images can only be added as legends, so the dials always get drawn on top.
dertien
---- E L I T E ----
---- E L I T E ----
Posts: 471
Joined: Sun Jan 23, 2011 9:27 pm
Location: Belgium, Monarchy, Feudal, Overtaxed system

Re: Question - Masking hud dials with png ?

Post by dertien »

That's a bummer

Thanks Cim
Alpha Backer of Elite Dangerous
With 250 GBP :D
User avatar
Keeper
---- E L I T E ----
---- E L I T E ----
Posts: 273
Joined: Fri Feb 01, 2013 7:44 am
Location: Indian Hills, Nevada, USA

Re: Question - Masking hud dials with png ?

Post by Keeper »

You might be able to get away with reducing the alpha of your HUD object, making it slightly transparent, so that you can see the PNG underneath.
dertien
---- E L I T E ----
---- E L I T E ----
Posts: 471
Joined: Sun Jan 23, 2011 9:27 pm
Location: Belgium, Monarchy, Feudal, Overtaxed system

Re: Question - Masking hud dials with png ?

Post by dertien »

Yeah, tried to do that, but the whole thing does look a bit unreal like that. Changed the hud altogether though, and now everything should be spiffy.

Thanks for all the suggestions.
Alpha Backer of Elite Dangerous
With 250 GBP :D
Post Reply