diff --git a/code/nel/include/nel/gui/group_scrolltext.h b/code/nel/include/nel/gui/group_scrolltext.h index bee09a68d..7494121be 100644 --- a/code/nel/include/nel/gui/group_scrolltext.h +++ b/code/nel/include/nel/gui/group_scrolltext.h @@ -44,6 +44,7 @@ namespace NLGUI ~CGroupScrollText(); std::string getProperty( const std::string &name ) const; + void setProperty( const std::string &name, const std::string &value ); /// CInterfaceGroup Interface virtual bool parse (xmlNodePtr cur, CInterfaceGroup *parentGroup); diff --git a/code/nel/src/gui/group_scrolltext.cpp b/code/nel/src/gui/group_scrolltext.cpp index 07cb445b4..42f2c26d2 100644 --- a/code/nel/src/gui/group_scrolltext.cpp +++ b/code/nel/src/gui/group_scrolltext.cpp @@ -57,6 +57,19 @@ namespace NLGUI return CInterfaceGroup::getProperty( name ); } + void CGroupScrollText::setProperty( const std::string &name, const std::string &value ) + { + if( name == "invert_scroll_bar" ) + { + bool b; + if( NLMISC::fromString( value, b ) ) + _InvertScrollBar = b; + return; + } + else + CInterfaceGroup::setProperty( name, value ); + } + //======================================================================== bool CGroupScrollText::parse(xmlNodePtr cur,CInterfaceGroup *parentGroup) {