Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: selmiak on Sat 20/08/2011 22:40:15

Title: Is it possible to make GUIs have alpha transparency on buttons
Post by: selmiak on Sat 20/08/2011 22:40:15
The pngs with alpha transparency I imported and use as background images for the buttons all look like gifs with sharp, pixely edges. But I like my Buttonbackgrounds smooth 8)
Title: Re: Is it possible to make GUIs have alpha transparency on buttons
Post by: Khris on Sun 21/08/2011 02:18:34
Did you change the game's color depth to 32bit, then (re)import the pngs?
Title: Re: Is it possible to make GUIs have alpha transparency on buttons
Post by: hedgefield on Sun 21/08/2011 02:37:50
This seems to be a problem when the background of the GUI itself is also transparent in some way. Unfortunately there is as of yet no fix for it I am told (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=43401.msg577180#msg577180).
Title: Re: Is it possible to make GUIs have alpha transparency on buttons
Post by: monkey0506 on Sun 21/08/2011 06:02:35
I believe that the GUI background image has to have an alpha channel for the GUI buttons' alpha to work. So even if you don't need partial transparency in the background image, just make sure that it has some transparency somewhere and tell AGS to import it using the alpha channel.
Title: Re: Is it possible to make GUIs have alpha transparency on buttons
Post by: selmiak on Sun 21/08/2011 15:00:55
thanks. Indeed adding a 1px x 1px transparent png as Background image for the complete guide made the GUI button background alphatransparent. But in the meantime I made the buttons even better and don't need this anymore. But good to know for future GUIs.