AniSettingsLayer.h
1.06 KB
//
// AniSettingsLayer.h
// HalloweenSpaceInvaders
//
// Created by Katarzyna Kalinowska-Górska on 06/10/2019.
//
#ifndef AniSettingsLayer_h
#define AniSettingsLayer_h
#include "cocos2d.h"
//#include "AniSimpleLevelPickerView.h"
#include "AniLevelPickerView.h"
#include "AniParentalGateShowInterface.h"
class AniSettingsLayer : public cocos2d::LayerColor, public AniParentalGateShowInterface {
public:
static AniSettingsLayer* create(float width, float height, std::function<void(int)> onLevelPickedCallback, std::function<void()> onTutorialResetPickedCallback);
void prepareForShowing();
protected:
AniLevelPickerView* _AniLevelPickerView;
std::function<void(int)> _onLevelPicked;
std::function<void()> _onTutorialReset;
bool init(float width, float height, std::function<void(int)> onLevelPickedCallback, std::function<void()> onTutorialResetPickedCallback);
virtual void aboutMenuButtonTapped(cocos2d::Ref* pSender);
virtual void privacyPolicyMenuButtonTapped(cocos2d::Ref* pSender);
};
#endif /* AniSettingsLayer_h */