How to round off corners of a widget?
How to round off corners of a widget?
Let there is a button. How to round off me its corners?
Re: How to round off corners of a widget?
For buttons you can also set bitmaps, enable alpha channel and disable border drawing.
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: How to round off corners of a widget?
@Seven: thanks! I will look at that addon for Irrlicht!
@CuteAlien: I don`t know how to set bitmaps, do you mean simple containers?
@CuteAlien: I don`t know how to set bitmaps, do you mean simple containers?
Re: How to round off corners of a widget?
IGUIButton has setImage and setPressedImage functions (and some more options if you use Irrlicht svn trunk version).
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