How to use 'enableOverrideColor'?

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
Error1312
Posts: 23
Joined: Fri Dec 26, 2003 8:32 pm
Location: Belgium

How to use 'enableOverrideColor'?

Post by Error1312 »

Hello everybody.

How do you use the 'enableOverrideColor' function? I'm always getting some errors. This is my code:

skin->enableOverrrideColor(true);

The compiler says it's not a member of IGUISkin.
Could somebody please give me an example of how to use it?

Thanks in advance.
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

It's not a member of IGUISkin.

Code: Select all

virtual void irr::gui::IGUIStaticText::enableOverrrideColor  (  bool    enable  )  [pure virtual] 
 
It's a member of IGUIStaticText. You use it in conjuction with IStaticText->setOverrideColor(SColor).

You need to apply an override for each element. If you want to apply a color to all Skin items, you want to use IGUISkin->setColor();
Crud, how do I do this again?
Error1312
Posts: 23
Joined: Fri Dec 26, 2003 8:32 pm
Location: Belgium

Post by Error1312 »

Thanks for the answer Saigumi :D

I have another question. How can you delete the objects you've created?
I mean, if I put a button on the window , then how do I delete it if I don't need it anymore?

Sorry if this is a stupid question, but I'm a complete newbie to this.

Thanks again.
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Error1312 wrote:How can you delete the objects you've created?
I mean, if I put a button on the window , then how do I delete it if I don't need it anymore?
use
theButtonYouHaveCreated->remove();
Error1312
Posts: 23
Joined: Fri Dec 26, 2003 8:32 pm
Location: Belgium

Post by Error1312 »

Ok, thanks for the help guys. :D
Post Reply