Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Title Position in PlaceValue Game #241

Open
wants to merge 1 commit into
base: newmaster
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions pehlaschool/Classes/Games/PlaceValue/PlaceValueScene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ void PlaceValueScene::createBoard(int index)
auto tank100_title = Label::createWithSystemFont(tank100_title_text, arialFont, 30);
tank100_title->setColor(Color3B(26, 26, 26));
tank100_title->setAnchorPoint(Vec2::ANCHOR_MIDDLE_TOP);
tank100_title->setPosition(Vec2(tank100->getPosition().x, gameSize.height - 491 + 30));
tank100_title->setPosition(Vec2(tank100->getPosition().x, gameSize.height - 491));
tank100_title->setName("tank100Title");
_gameNode->addChild(tank100_title, 100);

Expand Down Expand Up @@ -372,7 +372,7 @@ void PlaceValueScene::createBoard(int index)
auto tank10_title = Label::createWithSystemFont(tank10_title_text, arialFont, 30);
tank10_title->setColor(Color3B(26, 26, 26));
tank10_title->setAnchorPoint(Vec2::ANCHOR_MIDDLE_TOP);
tank10_title->setPosition(Vec2(tank10->getPosition().x, gameSize.height - 491 + 30));
tank10_title->setPosition(Vec2(tank10->getPosition().x, gameSize.height - 491));
tank10_title->setName("tank10Title");
_gameNode->addChild(tank10_title, 100);

Expand Down Expand Up @@ -422,7 +422,7 @@ void PlaceValueScene::createBoard(int index)
auto tank1_title = Label::createWithSystemFont(tank1_title_text, arialFont, 30);
tank1_title->setColor(Color3B(26, 26, 26));
tank1_title->setAnchorPoint(Vec2::ANCHOR_MIDDLE_TOP);
tank1_title->setPosition(Vec2(tank1->getPosition().x, gameSize.height - 491 + 30));
tank1_title->setPosition(Vec2(tank1->getPosition().x, gameSize.height - 491));
tank1_title->setName("tank1Title");
_gameNode->addChild(tank1_title, 100);

Expand Down Expand Up @@ -535,7 +535,7 @@ void PlaceValueScene::createBoard(int index)
auto nextTank100_title = Label::createWithSystemFont(tank100_title_text, arialFont, 30);
nextTank100_title->setColor(Color3B(26, 26, 26));
nextTank100_title->setAnchorPoint(Vec2::ANCHOR_MIDDLE_TOP);
nextTank100_title->setPosition(Vec2(nextTank100->getPosition().x, gameSize.height - 491 + 30));
nextTank100_title->setPosition(Vec2(nextTank100->getPosition().x, gameSize.height - 491));
nextTank100_title->setName("nextTank100Title");
_gameNode->addChild(nextTank100_title, 100);

Expand All @@ -555,7 +555,7 @@ void PlaceValueScene::createBoard(int index)
auto nextTank10_title = Label::createWithSystemFont(tank10_title_text, arialFont, 30);
nextTank10_title->setColor(Color3B(26, 26, 26));
nextTank10_title->setAnchorPoint(Vec2::ANCHOR_MIDDLE_TOP);
nextTank10_title->setPosition(Vec2(nextTank10->getPosition().x, gameSize.height - 491 + 30));
nextTank10_title->setPosition(Vec2(nextTank10->getPosition().x, gameSize.height - 491));
nextTank10_title->setName("nextTank10Title");
_gameNode->addChild(nextTank10_title, 100);

Expand All @@ -575,7 +575,7 @@ void PlaceValueScene::createBoard(int index)
auto nextTank1_title = Label::createWithSystemFont(tank1_title_text, arialFont, 30);
nextTank1_title->setColor(Color3B(26, 26, 26));
nextTank1_title->setAnchorPoint(Vec2::ANCHOR_MIDDLE_TOP);
nextTank1_title->setPosition(Vec2(nextTank1->getPosition().x, gameSize.height - 491 + 30));
nextTank1_title->setPosition(Vec2(nextTank1->getPosition().x, gameSize.height - 491));
nextTank1_title->setName("nextTank1Title");
_gameNode->addChild(nextTank1_title, 100);

Expand Down