diff --git a/changelog.md b/changelog.md index 44da0d9..4873e47 100644 --- a/changelog.md +++ b/changelog.md @@ -17,6 +17,7 @@ - Added **Legacy Upside Down Physics** - Added **Icon Kit in Pause Menu** - Added **Unlock Gauntlets** +- Added **End Screen Cheat Indicator** # 1.7.3 diff --git a/src/Client/ClientSetup.h b/src/Client/ClientSetup.h index d86d92d..adcf27e 100644 --- a/src/Client/ClientSetup.h +++ b/src/Client/ClientSetup.h @@ -268,7 +268,7 @@ class ClientUtils bypass->modules.push_back(new Module("Unlock All Gauntlets", "unlock-gauntlets", "Allows you to open any level in the gauntlet")); bypass->modules.push_back(new Module("December Menu Snow", "december-snow", "Shows snow on the main menu during december.", true)); - + bypass->modules.push_back(new Module("End Screen Cheat Indicator", "end-screen-cheat-indicator", "Shows the cheat indicator on the end screen.", true)); Client::instance->windows.push_back(bypass); auto tps = new InputModule("Ticks:", "tps-bypass-value", "240"); diff --git a/src/Hacks/EndScreenCheatIndicator.cpp b/src/Hacks/EndScreenCheatIndicator.cpp new file mode 100644 index 0000000..0a03c62 --- /dev/null +++ b/src/Hacks/EndScreenCheatIndicator.cpp @@ -0,0 +1,24 @@ +#include +#include +#include "../Client/Client.h" +#include "SafeMode/SafeMode.hpp" + +using namespace geode::prelude; + +class $modify (EndLevelLayer) +{ + virtual void customSetup() + { + EndLevelLayer::customSetup(); + + auto ind = CCSprite::createWithSpriteFrameName("uiDot_001.png"); + ind->setColor(SafeMode::get()->colourForState()); + ind->setOpacity(150); + ind->setScale(1.5f); + ind->setPosition(CCDirector::get()->getWinSize() / 2 + ccp(-167, 100)); + + m_mainLayer->addChild(ind, 42069); + } + + QOLMOD_MOD_HOOK("end-screen-cheat-indicator", "EndLevelLayer::customSetup") +}; \ No newline at end of file