Make setOverrideFont() a member of IGUIElement?

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
Virror
Posts: 191
Joined: Mon May 02, 2011 3:15 pm

Make setOverrideFont() a member of IGUIElement?

Post by Virror »

Any plans to make setOverrideFont() a member of IGUIElement so we can change the font for all the GUI elements?
Its very limiting as it is now to only be able to change a few GUIElements.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Make setOverrideFont() a member of IGUIElement?

Post by CuteAlien »

Well, not all elements need that, so no. It should rather be added to those where it is still missing (just adding it in the interface wouldn't change a thing anyway without corresponding implementations). Only problem with that right now is that a) we have no serialization for fonts right now (which will either be added or a workaround hacked in before 1.8) and b) the "override" stuff in general is just a workaround for not being able to overload skin-features per guielement (but we have used it for fonts already a few times, so adding a few more doesn't hurt too much).

For which element would you need that right now?
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
Virror
Posts: 191
Joined: Mon May 02, 2011 3:15 pm

Re: Make setOverrideFont() a member of IGUIElement?

Post by Virror »

Ofcourse i meant that it should not only be moved, but implemented as well ; )
No major panic with this, i can manage without it, no problem. But since you asked, its mainly for window and tabs caption right now.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Make setOverrideFont() a member of IGUIElement?

Post by CuteAlien »

OK, those 2 could indeed use that.
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
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Re: Make setOverrideFont() a member of IGUIElement?

Post by christianclavet »

Menus and submenus for me (Allowing at the same time an overide color would be nice)
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Make setOverrideFont() a member of IGUIElement?

Post by CuteAlien »

You want to have different-colored menus? You can still use skin-colors. But yeah, menus also might need that, although I'm not sure if per menu or per menu-entry is better.
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
Post Reply