Game Development Community

Translucent Gui Items

by Richard Bottoms · in General Discussion · 09/23/2004 (2:30 pm) · 6 replies

Anyone making translucent Gui items? I'd appreciate any help.



Thanks,
r.b.

#1
09/23/2004 (4:13 pm)
Make the buttons with alpha, then save them as PNGs.
#2
09/23/2004 (4:51 pm)
Here's a list of image editors that support the PNG format if you need one:
www.libpng.org/pub/png/pngaped.html

PNG supports 256 levels of transparency, so you can make them as transparent as you like. If you want a really detailed look at alpha channels, check here:
www.mediamacros.com/howto/arch/0035.shtml
#3
09/24/2004 (9:11 am)
Thanks, I do have Photoshop and I have been experimenting with the alpha channel for buttons. But in this case I want to make a dialog box semi-transparent.
#4
09/24/2004 (9:18 am)
Make the dialog box completly in Photoshop, and set the portions transparent that you want to have transparent. While not a true and complete dialogue box, it's really all in what the user sees... they don't care how it works. =)
#5
09/24/2004 (9:40 am)
You can specify an alpha value for any of the color components of the GuiControlProfile

ex:
fillColor = "255 255 255 255";    // no transparency

fillColor = "255 255 255 128";    // half transparency

fillColor = "255 255 255 0";        // full transparency
#6
09/24/2004 (10:33 am)
Does this work with GuiWindowCtrls as well? GUI windows that can be moved around the screen? I've tried setting pngs to the WindowCtrl but that never seemed to do anything.. haven't tried the fillColor thing yet, but may give it a shot when I get home.. just curious as to if it's been tested to see if you could make a mobile window that isn't the standard grey box with the black title bar.. but actual bitmapctrls that can be moved around.