Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: tiagocorreia on Wed 12/07/2006 14:54:22

Title: GUIs, 32bit and transparency
Post by: tiagocorreia on Wed 12/07/2006 14:54:22
Hi,

This happens when making a game in 32bits mode.

If I've a GUI with a background with transparent areas (smooth transparent), and then add button that also have transparent areas (smooth), then the parts of the buttons that are over parts of the background that are not transparent, then the transparency of the buttons is not used. See screenshot below to have an ideia. Only the wood stick is part of the background, the rest on top of t, are buttons.
(http://www.cnotinfor.pt/ags/bug02.jpg)
Title: Re: BUG: Gui 32bit and transparent
Post by: Ashen on Wed 12/07/2006 15:06:50
I take it the problem is that the black bits on the buttons shouldn't be there? Have you tried the workaround that worked for Alkis in this thread (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=26847.0) (different GUIs for the background and the buttons)?
It would be nice to know why this happens, and what to do about it, though.

EDIT: Meant to include the backpack too, but the buttons are the most obvious, IMO - there's also 'bleeding' around the edges.
Title: Re: BUG: Gui 32bit and transparent
Post by: Kweepa on Wed 12/07/2006 15:16:02
I think the problem pictured is the backpack's yellow aura, which is solid over the buttons.
Title: Re: BUG: Gui 32bit and transparent
Post by: tiagocorreia on Wed 12/07/2006 16:38:03
Thanks for the tip. I guess that will work. But there is a bug there still.
Title: Re: BUG: Gui 32bit and transparent
Post by: Play_Pretend on Thu 13/07/2006 01:14:56
I had to work out this same problem, what I did was just draw the buttons straight onto the GUI background, then make the GUI buttons over those areas with no border, background image, etc, just invisible selection areas.
Title: Re: BUG: Gui 32bit and transparent
Post by: subspark on Thu 13/07/2006 10:13:20
Thats a minimal solution at best but what about button rollovers and glows? They would have to be disgarded for a static interface!?
Title: Re: BUG: Gui 32bit and transparent
Post by: SSH on Thu 13/07/2006 11:52:42
You could have a set of sprites with these effects on and chnage them onto the gui background when the mouse is over a button
Title: Re: BUG: Gui 32bit and transparent
Post by: tiagocorreia on Thu 13/07/2006 13:59:22
Yes i could add the effect with the background, but I was trying to reuse images already done. I've managed to solve by problem. I do use 3 gui, one for he background (I use a button also, so it disspears, during dialogs and cutscenes), one for the buttons and another for the backpack. That last gui is needed so I don't have a large transparent area where I can't interact.
Title: Re: BUG: Gui 32bit and transparent
Post by: Pumaman on Thu 13/07/2006 22:02:16
This is a known issue, currently GUI Buttons cannot be alpha transparent. It's on the tracker to add this functionality, I believe.
Title: Re: BUG: Gui 32bit and transparent
Post by: tiagocorreia on Fri 14/07/2006 10:31:33
Well, the GUI buttons can have alpha transparency. They just need to be on a GUI with an image as backgroudn completly transparent. just a small trick.