axmol/extensions/fairygui/gears/GearText.h

33 lines
542 B
C
Raw Normal View History

2020-08-04 12:31:33 +08:00
#ifndef __GEARTEXT_H__
#define __GEARTEXT_H__
#include "FairyGUIMacros.h"
#include "GearBase.h"
#include "cocos2d.h"
NS_FGUI_BEGIN
class GObject;
class GearText : public GearBase
{
public:
GearText(GObject* owner);
virtual ~GearText();
void apply() override;
void updateState() override;
protected:
void addStatus(const std::string& pageId, ByteBuffer* buffer) override;
void init() override;
private:
std::unordered_map<std::string, std::string> _storage;
std::string _default;
};
NS_FGUI_END
#endif