|
|
@ -2149,7 +2149,34 @@ namespace NLGUI
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
void CInterfaceGroup::dumpGroups()
|
|
|
|
int CInterfaceGroup::luaDumpSize(CLuaState &ls)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
const char *funcName = "dumpSize";
|
|
|
|
|
|
|
|
CLuaIHM::checkArgCount(ls, funcName, 0);
|
|
|
|
|
|
|
|
dumpSize();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
int CInterfaceGroup::luaDumpEltsOrder(CLuaState &ls)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
const char *funcName = "dumpEltsOrder";
|
|
|
|
|
|
|
|
CLuaIHM::checkArgCount(ls, funcName, 0);
|
|
|
|
|
|
|
|
dumpEltsOrder();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
int CInterfaceGroup::luaDumpGroups(CLuaState &ls)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
const char *funcName = "dumpGroups";
|
|
|
|
|
|
|
|
CLuaIHM::checkArgCount(ls, funcName, 0);
|
|
|
|
|
|
|
|
dumpGroups();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
void CInterfaceGroup::dumpGroups() const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
nlinfo("Num groups = %d", (int) _ChildrenGroups.size());
|
|
|
|
nlinfo("Num groups = %d", (int) _ChildrenGroups.size());
|
|
|
|
for(uint k = 0; k < _ChildrenGroups.size(); ++k)
|
|
|
|
for(uint k = 0; k < _ChildrenGroups.size(); ++k)
|
|
|
@ -2166,21 +2193,18 @@ namespace NLGUI
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
void CInterfaceGroup::dumpEltsOrder()
|
|
|
|
void CInterfaceGroup::dumpEltsOrder() const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
nlinfo("Num elements = %d", (int) _EltOrder.size());
|
|
|
|
nlinfo("Num elements = %d, num groups = %d", (int) _EltOrder.size(), _ChildrenGroups.size());
|
|
|
|
for(uint k = 0; k < _EltOrder.size(); ++k)
|
|
|
|
for(uint k = 0; k < _EltOrder.size(); ++k)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::string typeName = "???";
|
|
|
|
CInterfaceElement *el = _EltOrder[k];
|
|
|
|
if (_ChildrenGroups[k])
|
|
|
|
if (el)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
std::string typeName;
|
|
|
|
NLGUI::CViewBase *view = _EltOrder[k];
|
|
|
|
NLGUI::CViewBase *view = _EltOrder[k];
|
|
|
|
const type_info &ti = typeid(*view);
|
|
|
|
const type_info &ti = typeid(*view);
|
|
|
|
typeName = ti.name();
|
|
|
|
typeName = ti.name();
|
|
|
|
}
|
|
|
|
|
|
|
|
CInterfaceElement *el = _EltOrder[k];
|
|
|
|
|
|
|
|
if (el)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
nlinfo("Element %d, name = %s, type=%s, x=%d, y=%d, parent_name=%s parentposname=%s xreal=%d, yreal=%d, wreal=%d, hreal=%d",
|
|
|
|
nlinfo("Element %d, name = %s, type=%s, x=%d, y=%d, parent_name=%s parentposname=%s xreal=%d, yreal=%d, wreal=%d, hreal=%d",
|
|
|
|
k, el->getId().c_str(), typeName.c_str(), el->getX(), el->getY(), el->getParent() ? el->getParent()->getId().c_str() : "no parent",
|
|
|
|
k, el->getId().c_str(), typeName.c_str(), el->getX(), el->getY(), el->getParent() ? el->getParent()->getId().c_str() : "no parent",
|
|
|
|
el->getParentPos() ? el->getParentPos()->getId().c_str() : "parent",
|
|
|
|
el->getParentPos() ? el->getParentPos()->getId().c_str() : "parent",
|
|
|
|