665c10a29f729

665c10a2a01ed
1 Guest is here.
 

665c10a2a07c3RoSoDude

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

665c10a2a095dvoodoo47

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

665c10a2a0a95RoSoDude

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

665c10a2a0bdbvoodoo47

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

665c10a2a0dadZylonBane

665c10a2a0e08
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.
Roads? Where we’re going, we don’t need roads.
Contact SMF 2.0.19 | SMF © 2016, Simple Machines | Terms and Policies
FEEP
665c10a2a0eeb