Transparency support for spell icons
- JohnBeavers
- Posts: 27
- Joined: Sun Jul 21, 2019 5:20 pm
Transparency support for spell icons
Hello everyone,
Do you think it would be possible to enable transparency support for spell icons ?
If yes, we would be able to create much less invasive enchantement and spell icons for the hud.
I tried on the custom icon sheet provided with DFU and all it gives when I shrink an icon is black borders instead of transparency.
What do you think ?
(Thinking about it, it might also help with ghosts and such^^)
Do you think it would be possible to enable transparency support for spell icons ?
If yes, we would be able to create much less invasive enchantement and spell icons for the hud.
I tried on the custom icon sheet provided with DFU and all it gives when I shrink an icon is black borders instead of transparency.
What do you think ?
(Thinking about it, it might also help with ghosts and such^^)
Here is my Youtube channel if you are ever interested (FR): https://www.youtube.com/user/JohnBeaversYT/
- pango
- Posts: 3359
- Joined: Wed Jul 18, 2018 6:14 pm
- Location: France
- Contact:
Re: Transparency support for spell icons
It's just a matter of removing the black backdrop behind icons, the icon textures handle transparency already...
At first I was thinking about removing the backdrop for modded icons only, but classic icons are okay (at least, not worse ) without backdrop too, maybe black backdrop could just be removed unconditionally?
Unless purist absolutely want black backdrop behind their icons, or they're cases where it's actually useful (say, a purely blue icon while you're swimming underwater...)
At first I was thinking about removing the backdrop for modded icons only, but classic icons are okay (at least, not worse ) without backdrop too, maybe black backdrop could just be removed unconditionally?
Unless purist absolutely want black backdrop behind their icons, or they're cases where it's actually useful (say, a purely blue icon while you're swimming underwater...)
That's a different topic, and I think TheLacus has been working on that but the first version only worked in Unity Editor, I'm not sure if there's a fully working version nowJohnBeavers wrote: ↑Wed Oct 16, 2019 9:57 am (Thinking about it, it might also help with ghosts and such^^)
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
- JohnBeavers
- Posts: 27
- Joined: Sun Jul 21, 2019 5:20 pm
Re: Transparency support for spell icons
Here is what I get on my side:
I use png format on paint.net, a software that can deal with transparency.
What do you think ?
Here is my Youtube channel if you are ever interested (FR): https://www.youtube.com/user/JohnBeaversYT/
- pango
- Posts: 3359
- Joined: Wed Jul 18, 2018 6:14 pm
- Location: France
- Contact:
Re: Transparency support for spell icons
Sorry if I've not been clear, I'm talking of the backdrop added dynamically in the code behind the icons, not something in the icons themselves:
https://github.com/Interkarma/daggerfal ... ls.cs#L185
But yeah, new icons having a background color will also be an issue once this is removed
https://github.com/Interkarma/daggerfal ... ls.cs#L185
But yeah, new icons having a background color will also be an issue once this is removed
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
- JohnBeavers
- Posts: 27
- Joined: Sun Jul 21, 2019 5:20 pm
Re: Transparency support for spell icons
I see,
So is there a way to turn:
iconPool.BackgroundColor = Color.black;
into
iconPool.BackgroundColor = none;
or
iconPool.BackgroundColor = null;
?
I'm just throwing ideas around.
If it goes nowhere, I understand.
So is there a way to turn:
iconPool.BackgroundColor = Color.black;
into
iconPool.BackgroundColor = none;
or
iconPool.BackgroundColor = null;
?
I'm just throwing ideas around.
If it goes nowhere, I understand.
Here is my Youtube channel if you are ever interested (FR): https://www.youtube.com/user/JohnBeaversYT/
- pango
- Posts: 3359
- Joined: Wed Jul 18, 2018 6:14 pm
- Location: France
- Contact:
Re: Transparency support for spell icons
Yup,
is all it takes:
Code: Select all
iconPool[i].BackgroundColor = Color.clear,
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
- JohnBeavers
- Posts: 27
- Joined: Sun Jul 21, 2019 5:20 pm
Re: Transparency support for spell icons
Wow !!
Can you make a mod out of that ?
Can you make a mod out of that ?
Here is my Youtube channel if you are ever interested (FR): https://www.youtube.com/user/JohnBeaversYT/
- pango
- Posts: 3359
- Joined: Wed Jul 18, 2018 6:14 pm
- Location: France
- Contact:
Re: Transparency support for spell icons
I don't think something that simple deserves a mod; Either this should be the default for all icons, or just for modded icons; That's why I asked earlier if anybody really cared about black background behind classic icons...
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
- King of Worms
- Posts: 4755
- Joined: Mon Oct 17, 2016 11:18 pm
- Location: Scourg Barrow (CZ)
- Contact:
Re: Transparency support for spell icons
I care would be nice to have this transparency as shown in the last screen
DREAM Nexus https://www.nexusmods.com/users/73250038?tab=user+files
DREAM Forums viewtopic.php?f=27&t=1168
DISCORD: king_of_worms_cz
DREAM Forums viewtopic.php?f=27&t=1168
DISCORD: king_of_worms_cz
- JohnBeavers
- Posts: 27
- Joined: Sun Jul 21, 2019 5:20 pm
Re: Transparency support for spell icons
To me it would just be a way to build much more little echantment icons. A workaround for how large they are.King of Worms wrote: ↑Wed Oct 16, 2019 5:38 pm I care would be nice to have this transparency as shown in the last screen
For people with artistic talent it would allow many things we can't think of. Even the result you show in your example is already nice.
Here is my Youtube channel if you are ever interested (FR): https://www.youtube.com/user/JohnBeaversYT/