修复批量节点的移动
This commit is contained in:
parent
054b8183cb
commit
a872428496
|
|
@ -132,7 +132,7 @@ void BatchNode::setY(int y)
|
||||||
{
|
{
|
||||||
child->move(0, var);
|
child->move(0, var);
|
||||||
}
|
}
|
||||||
Node::setX(y);
|
Node::setY(y);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BatchNode::setPos(int x, int y)
|
void BatchNode::setPos(int x, int y)
|
||||||
|
|
@ -166,7 +166,7 @@ void BatchNode::move(int x, int y)
|
||||||
{
|
{
|
||||||
child->move(x, y);
|
child->move(x, y);
|
||||||
}
|
}
|
||||||
Node::setPos(x, y);
|
Node::move(x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BatchNode::move(CVector v)
|
void BatchNode::move(CVector v)
|
||||||
|
|
@ -176,5 +176,5 @@ void BatchNode::move(CVector v)
|
||||||
{
|
{
|
||||||
child->move(v);
|
child->move(v);
|
||||||
}
|
}
|
||||||
Node::setPos(v);
|
Node::move(v);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -202,7 +202,7 @@ void BatchSprite::setY(int y)
|
||||||
{
|
{
|
||||||
s->move(0, var);
|
s->move(0, var);
|
||||||
}
|
}
|
||||||
RectNode::setX(y);
|
RectNode::setY(y);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BatchSprite::setPos(int x, int y)
|
void BatchSprite::setPos(int x, int y)
|
||||||
|
|
@ -236,7 +236,7 @@ void BatchSprite::move(int x, int y)
|
||||||
{
|
{
|
||||||
s->move(x, y);
|
s->move(x, y);
|
||||||
}
|
}
|
||||||
RectNode::setPos(x, y);
|
RectNode::move(x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BatchSprite::move(CVector v)
|
void BatchSprite::move(CVector v)
|
||||||
|
|
@ -246,5 +246,5 @@ void BatchSprite::move(CVector v)
|
||||||
{
|
{
|
||||||
s->move(v);
|
s->move(v);
|
||||||
}
|
}
|
||||||
RectNode::setPos(v);
|
RectNode::move(v);
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue