关于同时出现两个界面后底层界面不可点击的问题

我用UI编辑器做了两个界面,第一个界面上有个帮助按钮,点击帮助按钮弹出第二个界面,我想要实现当第二个界面出现是第一个界面不可点,我设置了settouchenable(false)后是不可点了,但是当我关闭第二个界面是他还是不可点的,设置完以后就没法点击了,求帮助

自己看下代码吧
bool UIInputManager::checkTouchEvent(UIWidget root, const CCPoint &touchPoint)
{
ccArray
arrayRootChildren = root->getChildren()->data;
int length = arrayRootChildren->num;
for (int i=length-1; i >= 0; i–)
{
UIWidget* widget = (UIWidget*)(arrayRootChildren->arr*);
if (checkTouchEvent(widget, touchPoint))
{
return true;
}
}
if (root->isEnabled() && root->isTouchEnabled() && root->hitTest(touchPoint) && root->clippingParentAreaContainPoint(touchPoint))
{
m_pSelectedWidgets->addObject(root);
root->onTouchBegan(touchPoint);
return true;
}
return false;
}

先判断的子控件 然后才判断是否touchenable 这样你即使设置了 也是不可点的*