InOutFader is killing my application

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
Guest

InOutFader is killing my application

Post by Guest »

hi
i have simply gui application with a lot of buttons, tabs, static text and one image in background.

When I add inFader before creating gui elements, it works and looks great.
When I add inFader after creating gui elements , it works also and even looks better, but... the application does not work. The buttons and tabs are dead.

I want to use that fader between switching tabs, so i need to set it after creating gui.

the code of my fader is:

Code: Select all

gui::IGUIInOutFader* fader = device->getGUIEnvironment()->addInOutFader();
        fader->setColor(video::SColor(0,0,0,255));
        fader->fadeIn(1000);
		
thanks for help
eXodus
Posts: 320
Joined: Tue Jan 04, 2005 10:07 am
Location: Canada
Contact:

Post by eXodus »

I don't think that the other elements become irresponsive. I tried the fader in the past and found it to take focus when being the topmost element. You should try to delete the fader when its effect is done.
Akiko
Posts: 7
Joined: Sun Mar 13, 2005 10:26 pm

Post by Akiko »

Hi,

I've solved my problem and registered :)

The steps are:

1. add fader
2. set fader color
3. create other gui elements
4. call fadeIn() function

Anyway, thanks for answer.
eXodus
Posts: 320
Joined: Tue Jan 04, 2005 10:07 am
Location: Canada
Contact:

Post by eXodus »

But he other GUI elements won't get faded in right? Thus not losing their focus to the fader.
Akiko
Posts: 7
Joined: Sun Mar 13, 2005 10:26 pm

Post by Akiko »

You are right.

I have’t noticed that because most of my gui elements are transparent.

Removing fader when isReady() helps. THX
eXodus
Posts: 320
Joined: Tue Jan 04, 2005 10:07 am
Location: Canada
Contact:

Post by eXodus »

No problem, I like to be human once in a while...
Post Reply