Update decorated edit box decoration coords while dragging.

--HG--
branch : dfighter-tools
This commit is contained in:
dfighter1985 2014-10-16 20:58:47 +02:00
parent 274efe6798
commit 18866c88af
2 changed files with 9 additions and 1 deletions

View file

@ -31,6 +31,8 @@ namespace NLGUI
CGroupEditBoxDecor( const TCtorParam &param );
~CGroupEditBoxDecor();
void moveBy( sint32 x, sint32 y );
std::string getProperty( const std::string &name ) const;
void setProperty( const std::string &name, const std::string &value );
xmlNodePtr serialize( xmlNodePtr parentNode, const char *type ) const;

View file

@ -150,7 +150,6 @@ namespace NLGUI
_Textures[ BG ]->setParentPosRef( Hotspot_MM );
_Textures[ BG ]->setScale( true );
_Textures[ BG ]->setSizeRef( "wh" );
_Textures[ BG ]->setRenderLayer( -1 );
}
std::vector< CViewBitmap* > _Textures;
@ -171,6 +170,13 @@ namespace NLGUI
_Pvt = NULL;
}
void CGroupEditBoxDecor::moveBy( sint32 x, sint32 y )
{
CInterfaceElement::moveBy( x, y );
_Pvt->updateCoords();
}
std::string CGroupEditBoxDecor::getProperty( const std::string &name ) const
{
if( name == "tx_tl" )