664a12c669cf5
1 Hour
1 Day
1 Week
1 Month
Forever
Forgotten Password
Sign up
28 Guests, 2 Members
bombum, JDoran
Home
Sign up
About
MOTHER
Search
Mobile
Home
»
Community
»
Engineering
»
Transparency issues with inventory ObjIcon
664a12c66a4ed
1 Guest is here.
New topic
Topic:
Transparency issues with inventory ObjIcon
Read 791 times
664a12c66acdb
RoSoDude
#0
Report
28. November 2021, 20:50:27
664a12c66ad67
I'm trying to create edited inventory icons for weapons and am running up against some odd transparency issues in NewDark. I followed the
standard procedure
in GIMP to create a png with alpha, and it works... kinda. When the object becomes a mouse cursor during click & drag, everything works properly. However, when the object is sitting in the inventory grid, the transparent part gets filled in black like the grid behind it, and the translucent green in the arrow I added gets indexed to pure green (
screenshots
). I could fix the black fill by exporting as an indexed color pcx instead, but then I lose my semi-transparent arrow.
Is there any way to make (semi-)transparent png images work as ObjIcons?
664a12c66af74
voodoo47
#1
Report
28. November 2021, 20:53:03
664a12c66afe2
the gimp shenanigans are only needed if you
cannot
use a regular png with alpha for some reason (oldDark compatibility). so just do a normal png with regular alpha and it should be good.
664a12c66b10d
RoSoDude
#2
Report
28. November 2021, 21:02:58
664a12c66b1ba
That's what I've done. The problem is, a regular png with alpha results in the above behavior when the object is sitting in the inventory grid (not when acting as a mouse cursor).
Here's the png in question
.
664a12c66b2bb
voodoo47
#3
Report
28. November 2021, 21:12:04
664a12c66b30d
checked the Secmod objicons which we were redoing awhile ago, looks like they are oldschool gifs - I'm guessing this is the reason. so yeah, DO the oldDark shenanigans and save (export) the result as a gif.
and yeah, this will probably not work for the semi transparency.
«
Last Edit: 28. November 2021, 21:34:57 by voodoo47
»
Acknowledged by:
RoSoDude
664a12c66b447
ZylonBane
#4
Report
28. November 2021, 22:11:58
664a12c66b4a2
I'd be more surprised if a full alpha channel on object icons actually worked. All the UI code was pretty obviously written with only 1-bit transparency in mind.
1 Guest is here.
New topic
It is absurdly, impossibly cool.
Home
»
Community
»
Engineering
»
Transparency issues with inventory ObjIcon
Contact
SMF 2.0.19
|
SMF © 2016
,
Simple Machines
|
Terms and Policies
Green theme
Brown theme
Bright theme
Match OS theme
FEEP
Loading...
664a12c66b5a2