Is it possible to make GUIs have alpha transparency on buttons

Started by selmiak, Sat 20/08/2011 22:40:15

Previous topic - Next topic

selmiak

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)

Khris

Did you change the game's color depth to 32bit, then (re)import the pngs?

hedgefield

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.

monkey0506

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.

selmiak

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.

SMF spam blocked by CleanTalk