mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-24 09:48:46 +00:00
CHANGED: Implemented property setting for CGroupScrollText.
This commit is contained in:
parent
fc5443d9f1
commit
df1644b001
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