-
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
554e737
commit 4fa06c2
Showing
12 changed files
with
25,198 additions
and
22 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#pragma once | ||
|
||
#include <Geode/Geode.hpp> | ||
|
||
using namespace geode::prelude; | ||
/* | ||
i took this class from FigmentBoy (https://github.com/FigmentBoy/DialogHandler) | ||
*/ | ||
|
||
class AttemptAtReversingDialogObject : public cocos2d::CCObject { | ||
protected: | ||
char pad_0x00[0x60]; // 0x00 | ||
|
||
std::string m_content; // 0x32 | ||
std::string m_title; // 0x56 | ||
int type; // 0x80 | ||
_ccColor3B color; // 9x84 | ||
char pad_0x87[0x01]; // 0x87 | ||
float m_unknown; // 0x88 | ||
char pad_0x92[0x04]; // 0x92 | ||
bool m_unknown_2; // 0x96 | ||
|
||
public: | ||
bool init(std::string title, std::string text, int type, float unknown, bool also_unknown, _ccColor3B textColor) { | ||
uintptr_t base = (uintptr_t)GetModuleHandle(0); | ||
|
||
return reinterpret_cast<bool(__thiscall*)(AttemptAtReversingDialogObject*, std::string, std::string, int, float, bool, _ccColor3B)> | ||
(base + 0x9a6c0)(this, title, text, type, unknown, also_unknown, textColor); | ||
} | ||
|
||
static AttemptAtReversingDialogObject* create(std::string title, std::string text, int type, float text_scale, bool is_unskippable, _ccColor3B textColor) { | ||
AttemptAtReversingDialogObject* obj = new AttemptAtReversingDialogObject(); | ||
|
||
obj->init(title, text, type, text_scale, is_unskippable, textColor); | ||
obj->autorelease(); | ||
|
||
return obj; | ||
} | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include <Geode/Geode.hpp> | ||
#include <Geode/modify/CCMotionStreak.hpp> | ||
#include "../Client/Client.h" | ||
|
||
using namespace geode::prelude; | ||
|
||
class $modify (CCMotionStreak) | ||
{ | ||
virtual void update(float delta) | ||
{ | ||
if (Client::GetModuleEnabled("trail-off")) | ||
m_bStroke = false; | ||
|
||
if (Client::GetModuleEnabled("trail-on")) | ||
m_bStroke = true; | ||
|
||
CCMotionStreak::update(delta); | ||
} | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include <Geode/Geode.hpp> | ||
#include <Geode/modify/GJBaseGameLayer.hpp> | ||
#include "../Client/Client.h" | ||
|
||
using namespace geode::prelude; | ||
|
||
class $modify (GJBaseGameLayer) | ||
{ | ||
TodoReturn applyShake(cocos2d::CCPoint& p0) | ||
{ | ||
if (!Client::GetModuleEnabled("no-shake")) | ||
GJBaseGameLayer::applyShake(p0); | ||
} | ||
|
||
/*TodoReturn updateStaticCameraPos(cocos2d::CCPoint p0, bool p1, bool p2, bool p3, float p4, int p5, float p6) | ||
{ | ||
}*/ | ||
|
||
/*TodoReturn updateCamera(float p0) // delta probably ? | ||
{ | ||
if (!Client::GetModuleEnabled("no-camera")) | ||
GJBaseGameLayer::updateCamera(p0); | ||
}*/ | ||
}; |
Oops, something went wrong.