If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Aelis440
Posts: 52 Joined: Sun Oct 05, 2008 8:45 pm
Post
by Aelis440 » Tue Dec 30, 2008 10:56 pm
I looked at the source in CGUITabControl.cpp and it looks like the color comes from the following line of code:
color = skin->getColor(EGDC_WINDOW_SYMBOL);
But when I do something like this...
Code: Select all
IGUISkin* skin = GUIEnv->getSkin();
skin->setColor(EGDC_WINDOW_SYMBOL, MENU_COLOR_TEXT);
the color does not change! Am I not looking at the wrong part of the code or is this a bug?
Thanks
Last edited by
Aelis440 on Wed Dec 31, 2008 1:05 am, edited 1 time in total.
vitek
Bug Slayer
Posts: 3919 Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR
Post
by vitek » Wed Dec 31, 2008 12:49 am
What on Earth makes you think that
EGDC_WINDOW_SYMBOL controls the color of the tab button? The
version of the source that I'm looking at uses
skin->draw3DTabButton() to draw the tab buttons, and
skin->draw3DTabBody() to draw the tab body. Neither of these calls use the
EGDC_WINDOW_SYMBOL color.
Travis
Aelis440
Posts: 52 Joined: Sun Oct 05, 2008 8:45 pm
Post
by Aelis440 » Wed Dec 31, 2008 1:04 am
To help those who may be searching for the same answer, all i had to do was change EGDC_WINDOW_SYMBOL in my code to EGDC_3D_FACE.