12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- //
- // IAPCtlShopActItem.hpp
- // demo
- //
- // Created by Red_mini on 2024/10/22.
- //
- #ifndef IAPCtlShopActItem_hpp
- #define IAPCtlShopActItem_hpp
- #include <stdio.h>
- #include "cocos2d.h"
- #include "RUReboltLayer.h"
- #include "IAPConf.hpp"
- #include "IAPDefine.hpp"
- class IAPTestCard : public iap::IAPCard
- {
- public:
- IAPTestCard();
-
- // 创建一个实例节点
- virtual Node* create() override;
-
- // 设置点击回调
- virtual void setCbWhileClicked(std::function<void()> cb) override;
-
- // 释放
- virtual void release() override;
-
- virtual cocos2d::Size getSize() override;
-
- private:
- redutils::RUReboltLayer* createLayer();
-
- void onNotifyDevelopment(const redutils::ReboltNotifyData&);
-
- void accepted();
- void rejected();
-
-
- private:
- std::string _redName; // redream名称
- std::string _title; // P-标题
- std::string _background; // P-背景图片
- std::string _gameUIName; // P-图集名称
- std::string _buttonLabel; // P-按钮文字
-
- };
- #endif /* IAPCtlShopActItem_hpp */
|