change settings by id

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.
Post Reply
Arudil
Posts: 27
Joined: Sun Sep 28, 2003 7:59 am
Location: Germany
Contact:

change settings by id

Post by Arudil »

hm,, i think I've had posted this already.. but I can't find it.. *confused*

ehrm..okay

is there a way to change settings of something by id?

At the moment, I change the color of a StaticText like that:

Code: Select all

gui::IGUIStaticText* loadText;
loadText = guienv->addStaticText(L"Lade Map...",true, core::rect<s32>(5,450,300,470));
loadText->setOverrideColor(video::SColor(0,255,255,255));
now, I don't like many global variables ;)

I think that would be nice:

Code: Select all

setOverrideColor(color,ID);
do already exist a fast way to change color of an text?
Masdus
Posts: 186
Joined: Tue Aug 26, 2003 1:13 pm
Location: Australia

Post by Masdus »

you could change the font color of the skin, i think that changes most text colors
Post Reply