CHANGED: #1471 Implemented property setting for CViewTextIDFormated.
This commit is contained in:
parent
9e0b16cd15
commit
067ed572a4
2 changed files with 13 additions and 0 deletions
|
@ -40,6 +40,7 @@ namespace NLGUI
|
|||
{}
|
||||
|
||||
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 void checkCoords();
|
||||
const ucstring &getFormatString() const { return _FormatString; }
|
||||
|
|
|
@ -36,6 +36,18 @@ namespace NLGUI
|
|||
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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue