66663a6f3ac65

66663a6f3b43d
1 Guest is here.
 

66663a6f3bac3RoSoDude

66663a6f3bb32
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?

66663a6f3bc8fvoodoo47

66663a6f3bce3
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.

66663a6f3bde2RoSoDude

66663a6f3be43
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.

66663a6f3bf21voodoo47

66663a6f3bf72
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

66663a6f3c09aZylonBane

66663a6f3c0ea
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.
Hmmmmm? What do you think we're trying to say here?
Contact SMF 2.0.19 | SMF © 2016, Simple Machines | Terms and Policies
FEEP
66663a6f3d082