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
|
@ -454,6 +454,9 @@ cocos2d::Node* NodeReader::loadWidget(const rapidjson::Value& json)
|
|||
|
||||
_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