Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: EnterTheStory (aka tolworthy) on Wed 23/04/2008 08:58:52

Title: colored GUI buttons?
Post by: EnterTheStory (aka tolworthy) on Wed 23/04/2008 08:58:52
Is there some way to get GUI buttons in a different color than grey/gray? If I use a custom graphic then the entire image is shown, and I need three images per button. But all I want is buttons that aren't grey. Any ideas?
Title: Re: colored GUI buttons?
Post by: Khris on Wed 23/04/2008 12:08:57
You could put the button text and button color on the image for the GUI, then clear the button's text (which'll turn it transparent).
Title: Re: colored GUI buttons?
Post by: EnterTheStory (aka tolworthy) on Wed 23/04/2008 14:31:25
Quote from: KhrisMUC on Wed 23/04/2008 12:08:57
You could put the button text and button color on the image for the GUI, then clear the button's text (which'll turn it transparent).

Thanks. I've done that on the more important buttons, but it means making three graphics for every button (pushed, not pushed, etc.). It just seems like a lot of work for a simple plain button. Is there no other way?
Title: Re: colored GUI buttons?
Post by: Khris on Wed 23/04/2008 14:42:49
You misunderstood me: Draw the button graphic as part of the GUI's background image, in a graphics prog.
Then put a transparent button at its position.
Title: Re: colored GUI buttons?
Post by: FSi++ on Wed 23/04/2008 17:34:24
Quote from: KhrisMUC on Wed 23/04/2008 14:42:49
You misunderstood me: Draw the button graphic as part of the GUI's background image, in a graphics prog.
Then put a transparent button at its position.

Then it won't push!