Blame view

ios/Runner/Wowgame/Classes/game_food/PlainLabel.h 1.15 KB
cb213901   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
  //
  //  PlainLabel.h
  //  WattsenglishToyApp
  //
  //  Created by Katarzyna Kalinowska-Górska on 19/11/2019.
  //
  
  #ifndef PlainLabel_h
  #define PlainLabel_h
  
  #include "cocos2d.h"
  #include "LayoutObject.h"
  
  class PlainLabel : public cocos2d::Label, public LayoutObject
  {
      public:
      
          static PlainLabel* create(const std::string& text, const std::string fontPath, int fontBaseSize);
      
      virtual bool init(const std::string& text, const std::string fontPath, int fontBaseSize);
      
          virtual void loadPropertiesFromJSON(const rapidjson::Value& jsonValue, LayoutViewInterface* scene = NULL, const std::string resFolder = "", const std::string altResFolder = "") override;
          virtual void prepareSize(const rapidjson::Value& jsonValue, float& width, float& height) override;
  
          // ScenarioObject
      
          virtual void setProperty(std::string propertyName, const rapidjson::Value& newValue, ActionParseDelegate* parseDelegate) override;
          virtual void callFunctionByName(std::string methodName, const rapidjson::Value* arguments, ActionParseDelegate* parseDelegate, std::function<void()> callback = [](){}) override;
  };
  
  #endif /* PlainLabel_h */