Request: Serializing GUI element tool tip text

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
chronologicaldot
Competition winner
Posts: 685
Joined: Mon Sep 10, 2012 8:51 am

Request: Serializing GUI element tool tip text

Post by chronologicaldot »

Currently, IGUIElement doesn't serialize the tool tip for some reason. Maybe the tool tip was added sometime after serialization was implemented?

Here's a quick little diff to add it:

Code: Select all

 
789a793
>       out->addString("ToolTip", getToolTipText().c_str());
820a828
>       setToolTipText(in->getAttributeAsStringW("ToolTip").c_str());
 
It came up because I wanted to use a scripting language to set the tool tip.
CuteAlien
Admin
Posts: 9643
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Request: Serializing GUI element tool tip text

Post by CuteAlien »

Thanks, I've added it to svn trunk r5642.
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