mirror of https://github.com/axmolengine/axmol.git
Merge pull request #4975 from chengstory/fix_UIAction_play_error
fixed UIAction play error.
This commit is contained in:
commit
e90f35daa6
|
@ -101,7 +101,7 @@ void ActionNode::initWithDictionary(const rapidjson::Value& dic,Object* root)
|
||||||
actionFrame->setFrameIndex(frameInex);
|
actionFrame->setFrameIndex(frameInex);
|
||||||
actionFrame->setScaleX(scaleX);
|
actionFrame->setScaleX(scaleX);
|
||||||
actionFrame->setScaleY(scaleY);
|
actionFrame->setScaleY(scaleY);
|
||||||
auto cActionArray = _frameArray.at((int)kKeyframeMove);
|
auto cActionArray = _frameArray.at((int)kKeyframeScale);
|
||||||
cActionArray->pushBack(actionFrame);
|
cActionArray->pushBack(actionFrame);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ void ActionNode::initWithDictionary(const rapidjson::Value& dic,Object* root)
|
||||||
actionFrame->autorelease();
|
actionFrame->autorelease();
|
||||||
actionFrame->setFrameIndex(frameInex);
|
actionFrame->setFrameIndex(frameInex);
|
||||||
actionFrame->setRotation(rotation);
|
actionFrame->setRotation(rotation);
|
||||||
auto cActionArray = _frameArray.at((int)kKeyframeMove);
|
auto cActionArray = _frameArray.at((int)kKeyframeRotate);
|
||||||
cActionArray->pushBack(actionFrame);
|
cActionArray->pushBack(actionFrame);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -125,7 +125,7 @@ void ActionNode::initWithDictionary(const rapidjson::Value& dic,Object* root)
|
||||||
actionFrame->autorelease();
|
actionFrame->autorelease();
|
||||||
actionFrame->setFrameIndex(frameInex);
|
actionFrame->setFrameIndex(frameInex);
|
||||||
actionFrame->setOpacity(opacity);
|
actionFrame->setOpacity(opacity);
|
||||||
auto cActionArray = _frameArray.at((int)kKeyframeMove);
|
auto cActionArray = _frameArray.at((int)kKeyframeTint);
|
||||||
cActionArray->pushBack(actionFrame);
|
cActionArray->pushBack(actionFrame);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -139,7 +139,7 @@ void ActionNode::initWithDictionary(const rapidjson::Value& dic,Object* root)
|
||||||
actionFrame->autorelease();
|
actionFrame->autorelease();
|
||||||
actionFrame->setFrameIndex(frameInex);
|
actionFrame->setFrameIndex(frameInex);
|
||||||
actionFrame->setColor(Color3B(colorR,colorG,colorB));
|
actionFrame->setColor(Color3B(colorR,colorG,colorB));
|
||||||
auto cActionArray = _frameArray.at((int)kKeyframeMove);
|
auto cActionArray = _frameArray.at((int)kKeyframeFade);
|
||||||
cActionArray->pushBack(actionFrame);
|
cActionArray->pushBack(actionFrame);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue