mirror of https://github.com/axmolengine/axmol.git
add parse actionTag in loadWidget method of CCNodeReader
This commit is contained in:
parent
f09b1863a9
commit
65c2a5e3e1
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue