Page 1 of 1

[no bug]addInOutFader & addListBox

Posted: Tue Feb 16, 2010 6:00 pm
by agnas
Irrlicht version 1.6
Operating system Windows Xp
Compiler Visual Studio 2005

Bug description:

If you add an effect in-out effect, ie. addInOutFader () after create a listbox the list box scroll bar doesnt works. You can add items using addItem () though.

If you add the effect BEFORE the listbox declaration, it works pecfectly.

How to reproduce the error?

Use the UserInterfase example. Look for the declaration of the list box.

Code: Select all

IGUIListBox * listbox = env->addListBox(rect<s32>(50, 140, 250, 210));
Put inmediately after this the following code

Code: Select all

IGUIInOutFader* fader;
fader = device->getGUIEnvironment()->addInOutFader();
fader->setColor(video::SColor(0,255,255,255));
fader->fadeIn(900);
I´ll wait for comments about this before use the bug tracker.

Posted: Tue Feb 16, 2010 8:38 pm
by CuteAlien
Fader is just a gui-element, so works like all other gui-elements. If you have it on top of other elements then it gets the input.
You usually just use it for a fade-effect and then remove it again.

Posted: Tue Feb 16, 2010 9:15 pm
by agnas
Correct. The thing is my game has tens of buttons and for bad luck the fade effect was exactly between the addlistbox and the others buttons, so only the listbox was affected. The behaviour was strange enough. :cry:

Thanks!