diff --git a/code/nel/include/nel/gui/group_tab.h b/code/nel/include/nel/gui/group_tab.h index 06cfdb437..f294e65d4 100644 --- a/code/nel/include/nel/gui/group_tab.h +++ b/code/nel/include/nel/gui/group_tab.h @@ -48,6 +48,7 @@ namespace NLGUI CGroupTab(const TCtorParam ¶m); std::string getProperty( const std::string &name ) const; + void setProperty( const std::string &name, const std::string &value ); virtual bool parse (xmlNodePtr cur, CInterfaceGroup *parentGroup); virtual void updateCoords (); diff --git a/code/nel/src/gui/group_tab.cpp b/code/nel/src/gui/group_tab.cpp index 6f7c35c17..bf08857c4 100644 --- a/code/nel/src/gui/group_tab.cpp +++ b/code/nel/src/gui/group_tab.cpp @@ -62,6 +62,32 @@ namespace NLGUI return CInterfaceGroup::getProperty( name ); } + + void CGroupTab::setProperty( const std::string &name, const std::string &value ) + { + if( name == "hide_out_tabs" ) + { + bool b; + if( fromString( value, b ) ) + _HideOutTabs = b; + return; + } + else + if( name == "onchange" ) + { + _AHOnChange = value; + return; + } + else + if( name == "onchange_params" ) + { + _ParamsOnChange = value; + return; + } + else + CInterfaceGroup::setProperty( name, value ); + } + // *************************************************************************** bool CGroupTab::parse (xmlNodePtr cur, CInterfaceGroup *parentGroup) {