mirror of https://github.com/axmolengine/axmol.git
Label:Fixed letter can be flipped.
This commit is contained in:
parent
c65f09f63e
commit
eeb4a38715
|
@ -79,6 +79,15 @@ public:
|
|||
float y1 = _offsetPosition.y;
|
||||
float x2 = x1 + size.width;
|
||||
float y2 = y1 + size.height;
|
||||
if (_flippedX)
|
||||
{
|
||||
std::swap(x1, x2);
|
||||
}
|
||||
if (_flippedY)
|
||||
{
|
||||
std::swap(y1, y2);
|
||||
}
|
||||
|
||||
float x = _transformToBatch.m[12];
|
||||
float y = _transformToBatch.m[13];
|
||||
|
||||
|
|
|
@ -414,7 +414,7 @@ void GameControllerTest::createControllerSprite(ControllerHolder& holder)
|
|||
holder._holderNode->addChild(buttonL2);
|
||||
|
||||
auto buttonR2 = Sprite::create("R2.png");
|
||||
buttonR2->setPosition(98-220,910);
|
||||
buttonR2->setPosition(998-220,910);
|
||||
holder._holderNode->addChild(buttonR2);
|
||||
|
||||
holder._buttonL2 = Sprite::create("L2.png");
|
||||
|
|
Loading…
Reference in New Issue