When moving a group draw it's children too.
--HG-- branch : dfighter-tools
This commit is contained in:
parent
5d5bf860d4
commit
64571abd47
2 changed files with 13 additions and 0 deletions
|
@ -328,6 +328,8 @@ namespace NLGUI
|
||||||
|
|
||||||
void onWidgetDeleted( CInterfaceElement *e );
|
void onWidgetDeleted( CInterfaceElement *e );
|
||||||
|
|
||||||
|
void moveBy( sint32 x, sint32 y );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
void makeNewClip (sint32 &oldClipX, sint32 &oldClipY, sint32 &oldClipW, sint32 &oldClipH);
|
void makeNewClip (sint32 &oldClipX, sint32 &oldClipY, sint32 &oldClipW, sint32 &oldClipH);
|
||||||
|
|
|
@ -2544,5 +2544,16 @@ namespace NLGUI
|
||||||
for( std::vector< CInterfaceGroup* >::iterator itr = _ChildrenGroups.begin(); itr != _ChildrenGroups.end(); ++itr )
|
for( std::vector< CInterfaceGroup* >::iterator itr = _ChildrenGroups.begin(); itr != _ChildrenGroups.end(); ++itr )
|
||||||
(*itr)->onWidgetDeleted( e );
|
(*itr)->onWidgetDeleted( e );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CInterfaceGroup::moveBy( sint32 x, sint32 y )
|
||||||
|
{
|
||||||
|
CInterfaceElement::moveBy( x, y );
|
||||||
|
|
||||||
|
for( int i = 0; i < _EltOrder.size(); i++ )
|
||||||
|
{
|
||||||
|
CViewBase *v = _EltOrder[ i ];
|
||||||
|
v->updateCoords();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue