[no bug]addInOutFader & addListBox

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
agnas
Posts: 20
Joined: Tue Mar 27, 2007 6:16 pm
Location: Venezuela
Contact:

[no bug]addInOutFader & addListBox

Post 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.
/\+++/\
< agnas >
\/+++\/
micronosis.com
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post 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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
agnas
Posts: 20
Joined: Tue Mar 27, 2007 6:16 pm
Location: Venezuela
Contact:

Post 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!
/\+++/\
< agnas >
\/+++\/
micronosis.com
Post Reply