mirror of https://github.com/axmolengine/axmol.git
Fix typos
This commit is contained in:
parent
d3076a1415
commit
940b0ffd56
|
@ -627,7 +627,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Sets the parent node
|
* Sets the parent node
|
||||||
*
|
*
|
||||||
* @param parent A pointer to the parnet node
|
* @param parent A pointer to the parent node
|
||||||
*/
|
*/
|
||||||
virtual void setParent(Node* parent);
|
virtual void setParent(Node* parent);
|
||||||
/**
|
/**
|
||||||
|
@ -635,7 +635,7 @@ public:
|
||||||
*
|
*
|
||||||
* @see `setParent(Node*)`
|
* @see `setParent(Node*)`
|
||||||
*
|
*
|
||||||
* @returns A pointer to the parnet node
|
* @returns A pointer to the parent node
|
||||||
*/
|
*/
|
||||||
virtual Node* getParent() { return _parent; }
|
virtual Node* getParent() { return _parent; }
|
||||||
virtual const Node* getParent() const { return _parent; }
|
virtual const Node* getParent() const { return _parent; }
|
||||||
|
|
|
@ -176,7 +176,7 @@ void ParticleBatchNode::addChild(Node * aChild, int zOrder, int tag)
|
||||||
setBlendFunc(child->getBlendFunc());
|
setBlendFunc(child->getBlendFunc());
|
||||||
}
|
}
|
||||||
|
|
||||||
CCASSERT( _blendFunc.src == child->getBlendFunc().src && _blendFunc.dst == child->getBlendFunc().dst, "Can't add a PaticleSystem that uses a different blending function");
|
CCASSERT( _blendFunc.src == child->getBlendFunc().src && _blendFunc.dst == child->getBlendFunc().dst, "Can't add a ParticleSystem that uses a different blending function");
|
||||||
|
|
||||||
//no lazy sorting, so don't call super addChild, call helper instead
|
//no lazy sorting, so don't call super addChild, call helper instead
|
||||||
unsigned int pos = addChildHelper(child,zOrder,tag);
|
unsigned int pos = addChildHelper(child,zOrder,tag);
|
||||||
|
|
|
@ -404,7 +404,7 @@ void TestPerformance::onDecrease(Object* pSender)
|
||||||
{
|
{
|
||||||
removeArmatureFromParent(ArmaturePerformanceTag + armatureCount);
|
removeArmatureFromParent(ArmaturePerformanceTag + armatureCount);
|
||||||
armatureCount --;
|
armatureCount --;
|
||||||
refreshTitile();
|
refreshTitle();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void TestPerformance::addArmature(int number)
|
void TestPerformance::addArmature(int number)
|
||||||
|
@ -423,7 +423,7 @@ void TestPerformance::addArmature(int number)
|
||||||
armature->release();
|
armature->release();
|
||||||
}
|
}
|
||||||
|
|
||||||
refreshTitile();
|
refreshTitle();
|
||||||
}
|
}
|
||||||
void TestPerformance::addArmatureToParent(cocostudio::Armature *armature)
|
void TestPerformance::addArmatureToParent(cocostudio::Armature *armature)
|
||||||
{
|
{
|
||||||
|
@ -433,7 +433,7 @@ void TestPerformance::removeArmatureFromParent(int tag)
|
||||||
{
|
{
|
||||||
removeChildByTag(ArmaturePerformanceTag + armatureCount);
|
removeChildByTag(ArmaturePerformanceTag + armatureCount);
|
||||||
}
|
}
|
||||||
void TestPerformance::refreshTitile()
|
void TestPerformance::refreshTitle()
|
||||||
{
|
{
|
||||||
char pszCount[255];
|
char pszCount[255];
|
||||||
sprintf(pszCount, "%s %i", subtitle().c_str(), armatureCount);
|
sprintf(pszCount, "%s %i", subtitle().c_str(), armatureCount);
|
||||||
|
|
|
@ -114,7 +114,7 @@ public:
|
||||||
virtual void addArmature(int number);
|
virtual void addArmature(int number);
|
||||||
virtual void addArmatureToParent(cocostudio::Armature *armature);
|
virtual void addArmatureToParent(cocostudio::Armature *armature);
|
||||||
virtual void removeArmatureFromParent(int tag);
|
virtual void removeArmatureFromParent(int tag);
|
||||||
virtual void refreshTitile();
|
virtual void refreshTitle();
|
||||||
|
|
||||||
int armatureCount;
|
int armatureCount;
|
||||||
|
|
||||||
|
|
|
@ -1110,7 +1110,7 @@ std::string ParticleDemo::title()
|
||||||
|
|
||||||
std::string ParticleDemo::subtitle()
|
std::string ParticleDemo::subtitle()
|
||||||
{
|
{
|
||||||
return "No titile";
|
return "No title";
|
||||||
}
|
}
|
||||||
|
|
||||||
void ParticleDemo::onTouchesBegan(const std::vector<Touch*>& touches, Event *event)
|
void ParticleDemo::onTouchesBegan(const std::vector<Touch*>& touches, Event *event)
|
||||||
|
@ -1238,7 +1238,7 @@ void ParticleBatchHybrid::switchRender(float dt)
|
||||||
|
|
||||||
std::string ParticleBatchHybrid::title()
|
std::string ParticleBatchHybrid::title()
|
||||||
{
|
{
|
||||||
return "Paticle Batch";
|
return "Particle Batch";
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ParticleBatchHybrid::subtitle()
|
std::string ParticleBatchHybrid::subtitle()
|
||||||
|
@ -1280,7 +1280,7 @@ void ParticleBatchMultipleEmitters::onEnter()
|
||||||
|
|
||||||
std::string ParticleBatchMultipleEmitters::title()
|
std::string ParticleBatchMultipleEmitters::title()
|
||||||
{
|
{
|
||||||
return "Paticle Batch";
|
return "Particle Batch";
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ParticleBatchMultipleEmitters::subtitle()
|
std::string ParticleBatchMultipleEmitters::subtitle()
|
||||||
|
|
|
@ -405,7 +405,7 @@ function TestPerformance.extend(target)
|
||||||
return target
|
return target
|
||||||
end
|
end
|
||||||
|
|
||||||
function TestPerformance:refreshTitile()
|
function TestPerformance:refreshTitle()
|
||||||
local subTitleInfo = ArmatureTestLayer.subTitle(5) .. self._armatureCount
|
local subTitleInfo = ArmatureTestLayer.subTitle(5) .. self._armatureCount
|
||||||
local label = tolua.cast(self:getChildByTag(10001),"LabelTTF")
|
local label = tolua.cast(self:getChildByTag(10001),"LabelTTF")
|
||||||
label:setString(subTitleInfo)
|
label:setString(subTitleInfo)
|
||||||
|
@ -429,7 +429,7 @@ function TestPerformance:addArmature(num)
|
||||||
self:addArmatureToParent(armature)
|
self:addArmatureToParent(armature)
|
||||||
end
|
end
|
||||||
|
|
||||||
self:refreshTitile()
|
self:refreshTitle()
|
||||||
end
|
end
|
||||||
|
|
||||||
function TestPerformance:onEnter()
|
function TestPerformance:onEnter()
|
||||||
|
@ -446,7 +446,7 @@ function TestPerformance:onEnter()
|
||||||
for i = 1, 20 do
|
for i = 1, 20 do
|
||||||
self:removeArmatureFromParent(armaturePerformanceTag + self._armatureCount)
|
self:removeArmatureFromParent(armaturePerformanceTag + self._armatureCount)
|
||||||
self._armatureCount = self._armatureCount - 1
|
self._armatureCount = self._armatureCount - 1
|
||||||
self:refreshTitile()
|
self:refreshTitle()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -523,7 +523,7 @@ function TestPerformanceBatchNode:onEnter()
|
||||||
for i = 1, 20 do
|
for i = 1, 20 do
|
||||||
self:removeArmatureFromParent(armaturePerformanceTag + self._armatureCount)
|
self:removeArmatureFromParent(armaturePerformanceTag + self._armatureCount)
|
||||||
self._armatureCount = self._armatureCount - 1
|
self._armatureCount = self._armatureCount - 1
|
||||||
self:refreshTitile()
|
self:refreshTitle()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -330,7 +330,7 @@ local function ParticleBatchHybrid()
|
||||||
|
|
||||||
layer:registerScriptHandler(ParticleBatchHybrid_onEnterOrExit)
|
layer:registerScriptHandler(ParticleBatchHybrid_onEnterOrExit)
|
||||||
|
|
||||||
titleLabel:setString("Paticle Batch")
|
titleLabel:setString("Particle Batch")
|
||||||
subtitleLabel:setString("Hybrid: batched and non batched every 2 seconds")
|
subtitleLabel:setString("Hybrid: batched and non batched every 2 seconds")
|
||||||
return layer
|
return layer
|
||||||
end
|
end
|
||||||
|
@ -364,7 +364,7 @@ local function ParticleBatchMultipleEmitters()
|
||||||
|
|
||||||
layer:addChild(batch, 10)
|
layer:addChild(batch, 10)
|
||||||
|
|
||||||
titleLabel:setString("Paticle Batch")
|
titleLabel:setString("Particle Batch")
|
||||||
subtitleLabel:setString("Multiple emitters. One Batch")
|
subtitleLabel:setString("Multiple emitters. One Batch")
|
||||||
return layer
|
return layer
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue