mirror of https://github.com/axmolengine/axmol.git
Add that parse "color" in NodeReader
This commit is contained in:
parent
4b0654a34c
commit
69729bcd65
|
@ -334,6 +334,7 @@ namespace cocostudio
|
||||||
float w = options->size()->width();
|
float w = options->size()->width();
|
||||||
float h = options->size()->height();
|
float h = options->size()->height();
|
||||||
int alpha = options->alpha();
|
int alpha = options->alpha();
|
||||||
|
Color3B color(options->color()->r(), options->color()->g(), options->color()->b());
|
||||||
|
|
||||||
node->setName(name);
|
node->setName(name);
|
||||||
|
|
||||||
|
@ -360,6 +361,8 @@ namespace cocostudio
|
||||||
if (alpha != 255)
|
if (alpha != 255)
|
||||||
node->setOpacity(alpha);
|
node->setOpacity(alpha);
|
||||||
|
|
||||||
|
node->setColor(color);
|
||||||
|
|
||||||
node->setTag(tag);
|
node->setTag(tag);
|
||||||
node->setUserObject(timeline::ActionTimelineData::create(actionTag));
|
node->setUserObject(timeline::ActionTimelineData::create(actionTag));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue