Blame view

ios/Runner/Wowgame/Classes/game_animal/AniSettingsLayer.h 1.06 KB
5daad4bc   xiaoyu   游戏源码添加编译(现存问题:游戏内...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  //
  //  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 */