colored GUI buttons?

Started by EnterTheStory (aka tolworthy), Wed 23/04/2008 08:58:52

Previous topic - Next topic

EnterTheStory (aka tolworthy)

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?

Khris

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).

EnterTheStory (aka tolworthy)

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?

Khris

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.

FSi++

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!

SMF spam blocked by CleanTalk