Game Development Community

Transparent buttons

by Tony Lamba · in Technical Issues · 07/06/2004 (4:05 pm) · 3 replies

Thanks guys I did some more testing and got it to work with pngs for now.

#1
07/06/2004 (4:05 pm)
"n" is normal, "h" is highlighted (ie. the mouse is over it) and "a" is active, I think

To make buttons with transparency, I have the most luck using Paint Shop Pro 8.0. Set the transparency how you want with masks, or whatever, then save it as a .png file and use the optimizer option when saving to preserve the transparency.
#2
07/07/2004 (7:54 am)
Ah buttons. For the most part you guys have got it. The four that you will generally encounter, at least with guiBitmapButtonCtrl follow. Rodney was right, but I thought I would just list them over again for completeness sake (though I'm unfamiliar with _a)

"_n" - Normal, what will usually be displayed.
"_h" - Highlight, this will appear when the mouse cursor is over the button.
"_d" - Down, will be displayed while clicking on the button.
"_i" - Inactive, will be displayed when the button is not able to be used.

Those are all that I'm aware of, but so far as I can tell they are probably all you will need as well.
#3
07/08/2004 (12:28 pm)
Ok another day, and im getting slighty better at figuring out how this all works now. Though I have yet to find out how to change the decault text color from black. I cant find anything in the F10 menu or my torque book on it. I heard it may have something to do with guiprofiles but I looked in the directories and didn't see much other things in there to play with.