Make setOverrideFont() a member of IGUIElement?

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.

Make setOverrideFont() a member of IGUIElement?

Postby Virror » Tue Sep 27, 2011 12:56 pm

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.
Virror
 
Posts: 191
Joined: Mon May 02, 2011 3:15 pm

Re: Make setOverrideFont() a member of IGUIElement?

Postby CuteAlien » Tue Sep 27, 2011 1:09 pm

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.freenode.net
My patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Games with Irrlicht: http://www.irrgheist.com/
News: http://www.reddit.com/r/irrlicht/
User avatar
CuteAlien
Admin
 
Posts: 5349
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Re: Make setOverrideFont() a member of IGUIElement?

Postby Virror » Tue Sep 27, 2011 1:17 pm

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.
Virror
 
Posts: 191
Joined: Mon May 02, 2011 3:15 pm

Re: Make setOverrideFont() a member of IGUIElement?

Postby CuteAlien » Tue Sep 27, 2011 1:42 pm

OK, those 2 could indeed use that.
IRC: #irrlicht on irc.freenode.net
My patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Games with Irrlicht: http://www.irrgheist.com/
News: http://www.reddit.com/r/irrlicht/
User avatar
CuteAlien
Admin
 
Posts: 5349
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Re: Make setOverrideFont() a member of IGUIElement?

Postby christianclavet » Tue Sep 27, 2011 5:21 pm

Menus and submenus for me (Allowing at the same time an overide color would be nice)
User avatar
christianclavet
 
Posts: 1382
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA

Re: Make setOverrideFont() a member of IGUIElement?

Postby CuteAlien » Tue Sep 27, 2011 5:30 pm

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.freenode.net
My patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Games with Irrlicht: http://www.irrgheist.com/
News: http://www.reddit.com/r/irrlicht/
User avatar
CuteAlien
Admin
 
Posts: 5349
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany


Return to Open Discussion and Dev Announcements

Who is online

Users browsing this forum: No registered users and 1 guest