// // ToySettingsLayer.h // HalloweenSpaceInvaders // // Created by Katarzyna Kalinowska-Górska on 06/10/2019. // #ifndef ToySettingsLayer_h #define ToySettingsLayer_h #include "cocos2d.h" //#include "ToySimpleLevelPickerView.h" #include "ToyLevelPickerView.h" #include "ToyParentalGateShowInterface.h" class ToySettingsLayer : public cocos2d::LayerColor, public ToyParentalGateShowInterface { public: static ToySettingsLayer* create(float width, float height, std::function onLevelPickedCallback); void prepareForShowing(); protected: ToyLevelPickerView* _levelPickerView; std::function _onLevelPicked; bool init(float width, float height, std::function onLevelPickedCallback); virtual void aboutMenuButtonTapped(cocos2d::Ref* pSender); virtual void privacyPolicyMenuButtonTapped(cocos2d::Ref* pSender); }; #endif /* ToySettingsLayer_h */