File tree Expand file tree Collapse file tree 3 files changed +18
-3
lines changed
Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "1" : " MenuLayer" ,
3+ "2" : " CreatorLayer" ,
4+ "3" : " LevelBrowserLayer" ,
5+ " 4"
6+ }
Original file line number Diff line number Diff line change @@ -101,11 +101,19 @@ bool GYSettingSelectLayer::init() {
101101
102102 leftMenu->updateLayout ();
103103
104+ auto testBtn = CCMenuItemSpriteExtra::create (
105+ CCSprite::createWithSpriteFrameName (
106+ " GJ_paintBtn_001.png"
107+ ),
108+ this ,
109+ menu_selector (GYSettingSelectLayer::popup)
110+ );
111+
112+ testBtn->setPosition (winSize.width * 0.5 , winSize.height * 0.5 );
113+ menu->addChild (testBtn);
114+
104115 this ->addChild (leftMenu);
105116 this ->addChild (menu);
106-
107- auto p = GYScreenshotPopup::create (" MenuLayer" );
108- p->show ();
109117
110118 return true ;
111119}
Original file line number Diff line number Diff line change @@ -12,4 +12,5 @@ class GYSettingSelectLayer : public CCLayer {
1212 bool init ();
1313 void settingsBtn (CCObject* sender);
1414 void backWrapper (CCObject* sender);
15+ void popup (CCObject* sender);
1516};
You can’t perform that action at this time.
0 commit comments