| 31 | } |
| 32 | |
| 33 | class CircleWave : public ax::DrawNode, public ax::ActionTweenDelegate { |
| 34 | private: |
| 35 | void draw(ax::Renderer *renderer, const ax::Mat4& transform, uint32_t flags) override; |
| 36 | virtual void updateTweenAction(float value, std::string_view key) override; |
| 37 | bool init(float duration, ax::Color4B color, float radiusMin, float radiusMax, bool easing, float lineWidth, bool filled); |
| 38 | void update(float dt) override; |
| 39 | |
| 40 | ax::Color4F _color; // damn CC_SYNTHESIZE doesnt work with it :skull: |
| 41 | ax::Node* _followedNode; |
| 42 | AX_SYNTHESIZE(float, _lineWidth, LineWidth) |
| 43 | AX_SYNTHESIZE(float, _radius, Radius) |
| 44 | AX_SYNTHESIZE(float, _width, Width) |
| 45 | AX_SYNTHESIZE(bool, _filled, Filled) |
| 46 | |
| 47 | public: |
| 48 | void followNode(ax::Node* node); |
| 49 | static CircleWave* create(float duration, ax::Color4B color, float radiusMin, float radiusMax, bool easing, bool filled, float lineWidth = 2.0f); |
| 50 | |
| 51 | void setColor(ax::Color4B col); |
| 52 | ax::Color4B getColor(); |
| 53 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected