Add that parse "color" in NodeReader

This commit is contained in:
pipu 2014-12-01 16:27:21 +08:00
parent 4b0654a34c
commit 69729bcd65
1 changed files with 3 additions and 0 deletions

View File

@ -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));