665ac8dc05687

665ac8dc06011
1 Guest is here.
 

665ac8dc065c1RoSoDude

665ac8dc06622
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?

665ac8dc06763voodoo47

665ac8dc067cd
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.

665ac8dc068b1RoSoDude

665ac8dc0690c
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.

665ac8dc069cbvoodoo47

665ac8dc06a15
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

665ac8dc06b20ZylonBane

665ac8dc06b75
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.
My mom likes the cute animals while my dad can't get enough of auto racing.
Contact SMF 2.0.19 | SMF © 2016, Simple Machines | Terms and Policies
FEEP
665ac8dc07a69