From cae68df39397bb373c3c9e03d235c8890270562e Mon Sep 17 00:00:00 2001 From: dfighter1985 Date: Wed, 15 Aug 2012 18:20:54 +0200 Subject: [PATCH] CHANGED: #1471 CGroupMenu's previously unnamed children will now be named properly. --HG-- branch : gsoc2012-gui-editor --- code/nel/src/gui/group_menu.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/nel/src/gui/group_menu.cpp b/code/nel/src/gui/group_menu.cpp index a8f0075a2..efb03a591 100644 --- a/code/nel/src/gui/group_menu.cpp +++ b/code/nel/src/gui/group_menu.cpp @@ -214,6 +214,7 @@ namespace NLGUI _SelectionView = new CViewBitmap(CViewBase::TCtorParam()); // CInterfaceManager *pIM = CInterfaceManager::getInstance(); // CViewRenderer &rVR = *CViewRenderer::getInstance(); + _SelectionView->setId( getId() + ":selection" ); _SelectionView->setParent (this); _SelectionView->setActive (false); _SelectionView->setTexture ("blank.tga"); @@ -228,6 +229,7 @@ namespace NLGUI if (_GroupList == NULL) { _GroupList = new CGroupList(CViewBase::TCtorParam()); + _GroupList->setId( getId() + ":list" ); _GroupList->setParent (this); _GroupList->setParentPos (this); _GroupList->setX (4); @@ -2273,6 +2275,7 @@ namespace NLGUI cur = in->children; if (_RootMenu != NULL) delete _RootMenu; _RootMenu = new CGroupSubMenu(CViewText::TCtorParam()); + _RootMenu->setId( getId() + ":header" ); _RootMenu->setSerializable( false ); _RootMenu->_GroupMenu = this; _RootMenu->parse (cur);