add parse actionTag in loadWidget method of CCNodeReader

This commit is contained in:
pipu 2014-06-13 10:49:57 +08:00
parent f09b1863a9
commit 65c2a5e3e1
1 changed files with 4 additions and 1 deletions

View File

@ -453,7 +453,10 @@ cocos2d::Node* NodeReader::loadWidget(const rapidjson::Value& json)
WidgetReaderProtocol* reader = dynamic_cast<WidgetReaderProtocol*>(ObjectFactory::getInstance()->createObject(readerName));
_guiReader->setPropsForAllWidgetFromJsonDictionary(reader, widget, json);
int actionTag = DICTOOL->getIntValue_json(json, ACTION_TAG);
widget->setUserObject(TimelineActionData::create(actionTag));
return widget;
}