Blame view

ios/Runner/Wowgame/Classes/game_animal/AniPlainLabel.h 1.18 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
  //
  //  AniPlainLabel.h
  //  WattsenglishToyApp
  //
  //  Created by Katarzyna Kalinowska-Górska on 19/11/2019.
  //
  
  #ifndef AniPlainLabel_h
  #define AniPlainLabel_h
  
  #include "cocos2d.h"
  #include "AniLayoutObject.h"
  
  class AniPlainLabel : public cocos2d::Label, public AniLayoutObject
  {
      public:
      
          static AniPlainLabel* 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, AniLayoutViewInterface* scene = NULL, const std::string resFolder = "", const std::string altResFolder = "") override;
          virtual void prepareSize(const rapidjson::Value& jsonValue, float& width, float& height) override;
  
          // AniScenarioObject
      
          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 /* AniPlainLabel_h */