Blame view

ios/Runner/Wowgame/Classes/game_halloween/KKGLabelOnlyButton.hpp 715 Bytes
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
  //
  //  KKGLabelOnlyButton.hpp
  //  SteveAndMaggieWorld
  //
  //  Created by Katarzyna Kalinowska-Górska on 11/11/2022.
  //
  
  #ifndef KKGLabelOnlyButton_hpp
  #define KKGLabelOnlyButton_hpp
  
  #include "cocos2d.h"
  
  class KKGLabelOnlyButton : public cocos2d::Node {
  public:
      
      static KKGLabelOnlyButton* create(const std::string& text, cocos2d::Color4B& textColor, const std::string& font, float fontSize, std::function<void(KKGLabelOnlyButton*)> onPress);
      virtual bool init(const std::string& text, cocos2d::Color4B& textColor, const std::string& font, float fontSize, std::function<void(KKGLabelOnlyButton*)> onPress);
      
  private:
      cocos2d::Label* m_label { nullptr };
  };
  
  #endif /* KKGLabelOnlyButton_hpp */