Game Development Community

Dialog box transparency

by Travis Vroman · in General Discussion · 07/19/2003 (3:33 pm) · 1 replies

I was wondering how to make dialog boxes transparent and how to change the color from grey to like a bluish color. I made darkwindow.png and darkscroll.png have an aplha channel, and they are transparent. The main window, however, isnt. How do I do this?

-B

#1
07/19/2003 (6:06 pm)
Use the profile. By default those dialog boxes in the demo use GuiWindowProfile defined in common/ui/defaultProfiles.cs. If you want to change all the dialog boxes you can just edit that profile. If you want just one dialog transparent, make a new profile and use that one. For a transparent dialog set opaque = false. For slightly translucent, leave opaque true and add a fourth color component (alpha) to the fillColor attribute of the profile.

Hope this helps,
- Eric