KKGLabelOnlyButton.hpp 715 Bytes
//
//  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 */