We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6484983 commit fbd373bCopy full SHA for fbd373b
src/ZenGardenShopLayer.cpp
@@ -506,6 +506,10 @@ bool ZenGardenShopLayer::init() {
506
return true;
507
}
508
509
+void ZenGardenShopLayer::keyBackClicked() {
510
+ this->onBack(nullptr);
511
+}
512
+
513
void ZenGardenShopLayer::updateIconsLabel(float dt) {
514
// Get the local time
515
std::time_t currentTime = std::time(nullptr);
src/ZenGardenShopLayer.hpp
@@ -12,6 +12,7 @@ class ZenGardenShopLayer : public cocos2d::CCLayer {
12
public:
13
static ZenGardenShopLayer* create();
14
bool init() override;
15
+ void keyBackClicked() override;
16
void onBack(CCObject* sender);
17
void onBuyStars(CCObject* sender);
18
void onBuyMoons(CCObject* sender);
0 commit comments