6648f9da9d595

6648f9da9db36
1 Guest is here.
 

6648f9da9e17eRoSoDude

6648f9da9e1f3
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?

6648f9da9e383voodoo47

6648f9da9e3d8
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.

6648f9da9e4c4RoSoDude

6648f9da9e51a
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.

6648f9da9e604voodoo47

6648f9da9e64f
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

6648f9da9e75fZylonBane

6648f9da9e7b5
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.
Actually I was logged out! Why was I logged out? I have done nothing! What had this hacker done to my account???
Contact SMF 2.0.19 | SMF © 2016, Simple Machines | Terms and Policies
FEEP
6648f9da9e8a4