From 69729bcd656181c13b5c752410a513b0eb7a2d5b Mon Sep 17 00:00:00 2001 From: pipu Date: Mon, 1 Dec 2014 16:27:21 +0800 Subject: [PATCH] Add that parse "color" in NodeReader --- .../cocostudio/WidgetReader/NodeReader/NodeReader.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cocos/editor-support/cocostudio/WidgetReader/NodeReader/NodeReader.cpp b/cocos/editor-support/cocostudio/WidgetReader/NodeReader/NodeReader.cpp index 2764026e8f..897d5dfa03 100644 --- a/cocos/editor-support/cocostudio/WidgetReader/NodeReader/NodeReader.cpp +++ b/cocos/editor-support/cocostudio/WidgetReader/NodeReader/NodeReader.cpp @@ -334,6 +334,7 @@ namespace cocostudio float w = options->size()->width(); float h = options->size()->height(); int alpha = options->alpha(); + Color3B color(options->color()->r(), options->color()->g(), options->color()->b()); node->setName(name); @@ -360,6 +361,8 @@ namespace cocostudio if (alpha != 255) node->setOpacity(alpha); + node->setColor(color); + node->setTag(tag); node->setUserObject(timeline::ActionTimelineData::create(actionTag));