From 444a8c198b997fc94c9d4da07741a7b8a6c412f5 Mon Sep 17 00:00:00 2001 From: Cvolton Date: Thu, 29 Aug 2024 23:04:01 +0200 Subject: [PATCH] add disable/enabledrawarea to ccdrawnode --- loader/include/Geode/cocos/draw_nodes/CCDrawNode.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/loader/include/Geode/cocos/draw_nodes/CCDrawNode.h b/loader/include/Geode/cocos/draw_nodes/CCDrawNode.h index 3646d366f..bbb8e3ddb 100644 --- a/loader/include/Geode/cocos/draw_nodes/CCDrawNode.h +++ b/loader/include/Geode/cocos/draw_nodes/CCDrawNode.h @@ -99,6 +99,8 @@ class CC_DLL CCDrawNode : public CCNodeRGBA void drawPreciseCubicBezier(cocos2d::CCPoint const&, cocos2d::CCPoint const&, cocos2d::CCPoint const&, cocos2d::CCPoint const&, unsigned int, cocos2d::_ccColor4F const&); bool drawLines(cocos2d::CCPoint*, unsigned int, float, cocos2d::_ccColor4F const&); bool drawRect(cocos2d::CCPoint const&, cocos2d::CCPoint const&, cocos2d::_ccColor4F const&, float, cocos2d::_ccColor4F const&); + void disableDrawArea(); + void enableDrawArea(cocos2d::CCRect& rect); #else /** draw a dot at a position, with a given radius and color */ void drawDot(const CCPoint &pos, float radius, const ccColor4F &color);