Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Ionias on Tue 16/03/2004 02:07:23

Title: GUI button doesn't display alpha channel.
Post by: Ionias on Tue 16/03/2004 02:07:23
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.

(http://www.socko-entertainment.com/temp/gui.gif)

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.
Title: Re:GUI button doesn't display alpha channel.
Post by: Ben on Tue 16/03/2004 21:06:51
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.
Title: Re:GUI button doesn't display alpha channel.
Post by: Ionias on Tue 16/03/2004 21:40:53
Good idea Ben, thanks.
Title: Re:GUI button doesn't display alpha channel.
Post by: Pumaman on Wed 17/03/2004 21:05:18
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.
Title: Re:GUI button doesn't display alpha channel.
Post by: Ionias on Wed 17/03/2004 22:19:58
Thanks for the reply. Ben gave me a good work-around so no problem.
Title: Re: GUI button doesn't display alpha channel.
Post by: beaver on Tue 04/05/2004 15:46:50
hm most weird. it seems to be working fine now, i didnt change anything. thanks anyway.