/** * 设置父类 */ 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; }
/** * 设置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; }