Hey there, I'm using the Irrlicht Gui Environment and I want to know how you can create some kind of box with a scrollbar at the bottom, and images inside the box( a lot of images, so with the horizontal scrollbar you can browse through the images in the box). And how do you scale images?
Thanks.
Scrolling box with images
Re: Scrolling box with images
Not sure if one of the existing elements can be used easily for this. I suspect the best way to do it is to create your own gui-element (lets call it ImageScroller). That ImageScroller has a subelement IGUIScrollBar and an array of IGUIImage. Maybe it's also useful to have some empty IGUIStaticText as background to put your IGUIImage's on it. And then you can enable clipping for that and move it's position in scroll-events. IGUIImage has a function setScaleImage which might do the scaling you need.
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Scrolling box with images
thanks, I'll try to create something that works.