Changing rendering.

1 view
Skip to first unread message

EagleEye

unread,
Oct 26, 2008, 2:01:53 AM10/26/08
to EEGUI
I am making a small but important change to the way rendering is done
in EEGUI.

As it is right now, when you have a texture and color enabled on a
control, the texture is rendered in lieu of the color. I don't
exactly remember why I set it up this way in the first place... it had
something to do with when I didn't have all textures and colors set up
as disabled by default.

The reason I'm doing this is to make things easier for people when it
comes to art design and development.

As it stands right now, to have something like a button show 5
different states, you have to have 5 different images loading as
textures, and you have to set up each state to show each specific
texture.

The way I'm changing it, you could theoretically set up one texture
for the base, and use alpha colors as an overlay for the different
states. This means 1 texture, and colors for the other states
(mouseover, mousedown, selected, etc)... Or maybe have a base and
disabled texture, and just use the colors as overlays for mouseover,
mousedown, and selected.

EagleEye

unread,
Oct 26, 2008, 3:37:08 AM10/26/08
to EEGUI
Okay, scratch that.

I had this nifty little thing in GUITexture called "OverlayColor". It
is its own GUIColor object that you can define, which is already
defaulted to RGBA 1,1,1,1.

Just change that... keep alpha at 1, but reduce the RGB values
slightly to tinge your controls on different states. :)

*sigh*... forgotten code... been 2 years since I even wrote that.
Reply all
Reply to author
Forward
0 new messages