CHANGED: Implemented property setting for CGroupScrollText.
This commit is contained in:
parent
983ba90181
commit
cd8bf6396c
2 changed files with 14 additions and 0 deletions
|
@ -44,6 +44,7 @@ namespace NLGUI
|
||||||
~CGroupScrollText();
|
~CGroupScrollText();
|
||||||
|
|
||||||
std::string getProperty( const std::string &name ) const;
|
std::string getProperty( const std::string &name ) const;
|
||||||
|
void setProperty( const std::string &name, const std::string &value );
|
||||||
|
|
||||||
/// CInterfaceGroup Interface
|
/// CInterfaceGroup Interface
|
||||||
virtual bool parse (xmlNodePtr cur, CInterfaceGroup *parentGroup);
|
virtual bool parse (xmlNodePtr cur, CInterfaceGroup *parentGroup);
|
||||||
|
|
|
@ -57,6 +57,19 @@ namespace NLGUI
|
||||||
return CInterfaceGroup::getProperty( name );
|
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)
|
bool CGroupScrollText::parse(xmlNodePtr cur,CInterfaceGroup *parentGroup)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue