-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d6a1716
commit bb6fcc3
Showing
3 changed files
with
28 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,32 @@ | ||
/*#include <Geode/Geode.hpp> | ||
//#include <Geode/modify/HardStreak.hpp> | ||
#include <Geode/modify/CCDrawNode.hpp> | ||
#include <Geode/Geode.hpp> | ||
#include "../Client/Client.h" | ||
|
||
using namespace geode::prelude; | ||
|
||
class $modify (CCDrawNode) | ||
{ | ||
void drawPolygon(CCPoint *verts, unsigned int count, const ccColor4F &fillColor, float borderWidth, const ccColor4F &borderColor) | ||
bool myDrawCircle(CCDrawNode* ins, CCPoint *verts, unsigned int count, const ccColor4F &fillColor, float borderWidth, const ccColor4F &borderColor) { | ||
if (Client::GetModuleEnabled("no-wave")) | ||
return true; | ||
|
||
if (Client::GetModuleEnabled("solid-wave")) | ||
{ | ||
log::info("a"); | ||
if (fillColor.r >= 1.0f && fillColor.g >= 1.0f && fillColor.b >= 1.0f) | ||
return true; | ||
|
||
ins->setBlendFunc(CCSprite::create()->getBlendFunc()); | ||
|
||
CCDrawNode::drawPolygon(verts, count, fillColor, borderWidth, borderColor); | ||
ins->setZOrder(-1); | ||
} | ||
}; | ||
*/ | ||
/*void updateStroke(float p0) | ||
{ | ||
HardStreak::updateStroke(p0); | ||
|
||
log::info("s"); | ||
}// | ||
};*/ | ||
return ins->drawPolygon(verts, count, fillColor, borderWidth, fillColor); | ||
} | ||
|
||
$execute { | ||
Mod::get()->hook( | ||
reinterpret_cast<void*>( | ||
geode::addresser::getNonVirtual(&HardStreak::drawPolygon) | ||
), | ||
&myDrawCircle, | ||
"cocos2d::CCDrawNode::drawPolygon", | ||
tulip::hook::TulipConvention::Thiscall | ||
); | ||
} |