GUI button doesn't display alpha channel.

Started by Ionias, Tue 16/03/2004 02:07:23

Previous topic - Next topic

Ionias

I love the new 32bit support CJ! My sprites look so good. All except for one small issue. I need to know if this is a bug or as you say a "feature" :)

When I display a sprite with the alpha channel all is good. When I display a mouse with the alpha channel all is good. The trouble is when I display a GUI.

The GUI background image with the alpha channel is displayed correctly. However, when I display a GUI button over this GUI background image it is displayed without the alpha channel. This cropped screenshot should shed some light on what I mean.



The eyeball icon on the left is the GUI button. The eyeball icon on the right is a room object. Both are the same imported graphic. The bubbles are the GUI background image.

Ben

Doesn't look like a bug.. Just something that hasn't been implemented yet. You can work around this by opening your button graphic in your paint program and putting it over a blue background, then flattening the layers and importing it as a 24-bit sprite. That won't always work, but in this case, your button doesn't need an alpha channel.

Ionias


Pumaman

Yeah, this is a feature - due to the way GUIs are drawn, it's not really viable to implement alpha blending on the GUI Buttons as well as the background, I'm afraid.

Ionias

Thanks for the reply. Ben gave me a good work-around so no problem.

beaver

hm most weird. it seems to be working fine now, i didnt change anything. thanks anyway.

SMF spam blocked by CleanTalk