Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Radiant on Tue 14/06/2011 13:58:34

Title: Gray box around GUI button
Post by: Radiant on Tue 14/06/2011 13:58:34
In AGS 2.72, I have a GUI with a transparent background (i.e. color 0), in the middle of which is a button with a sprite on it. Part of the sprite is also transparent, and all of this runs in 16-bit color mode.

If I fade in the GUI by gradually changing its transparency from 0% to 100%, then a gray box will appear around the sprite, as if its transparency doesn't work. On the other hand, if I simply fade out the entire screen, then it works normally.

Does this sound familiar to anyone? Is it a bug or am I doing something wrong? Is there a workaround?
Title: Re: Gray box around GUI button
Post by: Snarky on Tue 14/06/2011 15:05:42
It has to do with a setting to "gray out controls when disabled" or something like that. You can find it in the general settings; I don't remember if you can also set it programmatically.
Title: Re: Gray box around GUI button
Post by: monkey0506 on Tue 14/06/2011 21:38:13
If that is the problem you can set the option in the editor, or you can do it via the script with the SetGameOption function for OPT_WHENGUIDISABLED.
Title: Re: Gray box around GUI button
Post by: Radiant on Thu 16/06/2011 11:27:54
Yep, that was it, thanks :)