When setting the Id of the decorated edit box, set the Id of the text as well.

--HG--
branch : dfighter-tools
This commit is contained in:
dfighter1985 2014-10-20 18:51:53 +02:00
parent 67aa7a50d2
commit 2fe2077170
2 changed files with 8 additions and 0 deletions

View file

@ -33,6 +33,8 @@ namespace NLGUI
void moveBy( sint32 x, sint32 y ); void moveBy( sint32 x, sint32 y );
void setIdRecurse( const std::string &newID );
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 ); void setProperty( const std::string &name, const std::string &value );
xmlNodePtr serialize( xmlNodePtr parentNode, const char *type ) const; xmlNodePtr serialize( xmlNodePtr parentNode, const char *type ) const;

View file

@ -182,6 +182,12 @@ namespace NLGUI
_Pvt->updateCoords(); _Pvt->updateCoords();
} }
void CGroupEditBoxDecor::setIdRecurse( const std::string &newID )
{
CInterfaceElement::setIdRecurse( newID );
_ViewText->setIdRecurse( _ViewText->getShortId() );
}
std::string CGroupEditBoxDecor::getProperty( const std::string &name ) const std::string CGroupEditBoxDecor::getProperty( const std::string &name ) const
{ {
if( name == "tx_tl" ) if( name == "tx_tl" )