예제 #1
0
파일: UILib.cpp 프로젝트: jijinlong/SyGame
/**
 * 设置父类
 */
int UILib::parent_p_label_set_value(UIStub* stub,script::tixmlCodeNode * node)
{
	if (stub && stub->base)
	{
		UIPanel *panel = stub->base->getPanel();
		if (panel)
		{
			panel->setUILabelvalue(node->getAttr("labelname"),node->getAttr("value"));
		}
	}
	return 1;
}
예제 #2
0
파일: UILib.cpp 프로젝트: jijinlong/SyGame
/**
 * 设置panel 上UILabel 的值
 */
int UILib::panel_label_set_value(UIStub* stub,script::tixmlCodeNode * node)
{
	if (stub && stub->base)
	{
		UIPanel *panel = stub->base->getPanel();
		if (panel)
		{
			UIWindow *window = panel->getWindow();
			if (window)
			{
				UIPanel *target = window->getPanel(node->getAttr("name"));
				if (target)
				{
					target->setUILabelvalue(node->getAttr("labelname"),node->getAttr("value"));
				}
			}	
		}
	}
	return 1;
}