Skip to content

Commit

Permalink
I've made the png for Back button by myself. Reset, Undo button later.
Browse files Browse the repository at this point in the history
  • Loading branch information
kerlw committed Aug 13, 2015
1 parent d80db9f commit 0cd410b
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/cocos2d/
/bin/
/linux-build/
/proj.android/.settings/
2 changes: 1 addition & 1 deletion Classes/CampaignScene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ bool CampaignScene::init() {
this->addChild(m_pTableStages);

//back menu item
auto backItem = MenuItemImage::create("back.png", "back.png",
auto backItem = MenuItemImage::create("back0.png", "back1.png",
CC_CALLBACK_1(CampaignScene::menuBackCallback, this));

backItem->setPosition(Vec2(origin.x + backItem->getContentSize().width/2 + 10,
Expand Down
2 changes: 1 addition & 1 deletion Classes/RandomStageScene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ bool RandomStageScene::init() {


//back menu item
auto backItem = MenuItemImage::create("back.png", "back.png",
auto backItem = MenuItemImage::create("back0.png", "back1.png",
CC_CALLBACK_1(RandomStageScene::menuBackCallback, this));

backItem->setPosition(Vec2(origin.x + backItem->getContentSize().width/2 + 10,
Expand Down
2 changes: 1 addition & 1 deletion Classes/StageScene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ bool StageScene::init() {
this->addChild(m_pBox);

//back menu item
auto backItem = MenuItemImage::create("back.png", "back.png",
auto backItem = MenuItemImage::create("back0.png", "back1.png",
CC_CALLBACK_1(StageScene::menuBackCallback, this));

backItem->setPosition(Vec2(origin.x + 10 + backItem->getContentSize().width/2 ,
Expand Down
Binary file removed Resources/back.png
Binary file not shown.
Binary file added Resources/back0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/back1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0cd410b

Please sign in to comment.