CHANGED: Implemented property setting for CGroupScrollText.

This commit is contained in:
dfighter1985 2012-08-07 01:18:42 +02:00
parent fc5443d9f1
commit df1644b001
2 changed files with 14 additions and 0 deletions

View file

@ -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);

View file

@ -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)
{