Beispiel #1
0
int UILib::hideparentpanel(UIStub* stub,script::tixmlCodeNode * node)
{
	if (stub && stub->base)
	{
		UIPanel *panel = stub->base->getPanel();
		if (panel)
		{
			if (panel)
			{
				panel->hide();
			}
		}
	}
	return 1;
}
Beispiel #2
0
/**
* 隐藏Panel
*/
int UILib::hidepanel(UIStub* stub,script::tixmlCodeNode * node)
{
	if (stub && stub->base)
	{
		UIWindow *window = stub->base->getDepthWindow();
		if (window)
		{
			UIPanel *target = window->getPanel(node->getAttr("name"));
			if (target)
			{
				target->hide();
			}
		}
	}
	return 1;
}
Beispiel #3
0
	void callback(UIBase *base)
	{
		if (window)
		{
			UIPanel *panel = base->getPanel();
			if (panel)
			{
				// 获取各个字段的值
				std::string fileName = panel->getUILablevalue("filename");
				UIPanel * target = window->showPanel(fileName.c_str());
				if (target)
				{
					target->setEditable(true);
				}
				gloabFileName = fileName;
				panel->hide();
			}
		}
	}