CHANGED: #1471 Implemented property setting for CViewTextIDFormated.

This commit is contained in:
dfighter1985 2012-08-04 08:06:09 +02:00
parent fe1721f00f
commit 15440c0553
2 changed files with 13 additions and 0 deletions

View file

@ -40,6 +40,7 @@ namespace NLGUI
{} {}
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 );
virtual bool parse(xmlNodePtr cur, CInterfaceGroup * parentGroup); virtual bool parse(xmlNodePtr cur, CInterfaceGroup * parentGroup);
virtual void checkCoords(); virtual void checkCoords();
const ucstring &getFormatString() const { return _FormatString; } const ucstring &getFormatString() const { return _FormatString; }

View file

@ -36,6 +36,18 @@ namespace NLGUI
return CViewTextID::getProperty( name ); return CViewTextID::getProperty( name );
} }
void CViewTextIDFormated::setProperty( const std::string &name, const std::string &value )
{
if( name == "format" )
{
setFormatString( value );
return;
}
else
CViewTextID::setProperty( name, value );
}
// ********************************************************************************* // *********************************************************************************
bool CViewTextIDFormated::parse(xmlNodePtr cur,CInterfaceGroup * parentGroup) bool CViewTextIDFormated::parse(xmlNodePtr cur,CInterfaceGroup * parentGroup)
{ {