Update decorated edit box decoration coords while dragging.
--HG-- branch : dfighter-tools
This commit is contained in:
parent
274efe6798
commit
18866c88af
2 changed files with 9 additions and 1 deletions
|
@ -31,6 +31,8 @@ namespace NLGUI
|
||||||
CGroupEditBoxDecor( const TCtorParam ¶m );
|
CGroupEditBoxDecor( const TCtorParam ¶m );
|
||||||
~CGroupEditBoxDecor();
|
~CGroupEditBoxDecor();
|
||||||
|
|
||||||
|
void moveBy( sint32 x, sint32 y );
|
||||||
|
|
||||||
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;
|
||||||
|
|
|
@ -150,7 +150,6 @@ namespace NLGUI
|
||||||
_Textures[ BG ]->setParentPosRef( Hotspot_MM );
|
_Textures[ BG ]->setParentPosRef( Hotspot_MM );
|
||||||
_Textures[ BG ]->setScale( true );
|
_Textures[ BG ]->setScale( true );
|
||||||
_Textures[ BG ]->setSizeRef( "wh" );
|
_Textures[ BG ]->setSizeRef( "wh" );
|
||||||
_Textures[ BG ]->setRenderLayer( -1 );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector< CViewBitmap* > _Textures;
|
std::vector< CViewBitmap* > _Textures;
|
||||||
|
@ -171,6 +170,13 @@ namespace NLGUI
|
||||||
_Pvt = NULL;
|
_Pvt = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CGroupEditBoxDecor::moveBy( sint32 x, sint32 y )
|
||||||
|
{
|
||||||
|
CInterfaceElement::moveBy( x, y );
|
||||||
|
|
||||||
|
_Pvt->updateCoords();
|
||||||
|
}
|
||||||
|
|
||||||
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" )
|
||||||
|
|
Loading…
Reference in a new issue