-
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
91a6265
commit 24c0211
Showing
7 changed files
with
86 additions
and
15 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/*#include <Geode/Geode.hpp> | ||
#include <Geode/modify/HardStreak.hpp> | ||
#include "../Client/Client.h" | ||
using namespace geode::prelude; | ||
class $modify (HardStreak) | ||
{ | ||
void updateStroke(float p0) | ||
{ | ||
// 2.1 bindings don't work sad | ||
m_pulseSize = 25; | ||
log::info("unk: {}", p0); | ||
HardStreak::updateStroke(p0); | ||
} | ||
};*/ |
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,36 +1,70 @@ | ||
/*#include <Geode/Geode.hpp> | ||
#include <Geode/Geode.hpp> | ||
#include <Geode/modify/PauseLayer.hpp> | ||
#include "../Client/Client.h" | ||
|
||
using namespace geode::prelude; | ||
|
||
class $modify (PauseLayer) | ||
{ | ||
void onPrac(float dt) | ||
{ | ||
log::info("alert clicked"); | ||
} | ||
bool v = false; | ||
|
||
void onPracticeMode(cocos2d::CCObject* sender) | ||
{ | ||
if (PlayLayer::get()->m_isPracticeMode) | ||
{ PlayLayer::get()->resetLevelFromStart(); PlayLayer::get()->togglePracticeMode(false); PlayLayer::get()->pauseGame(false); return; } | ||
if (PlayLayer::get()->m_isPracticeMode || m_fields->v || !Client::GetModuleEnabled("conf-prac")) | ||
{ | ||
PauseLayer::onPracticeMode(sender); | ||
|
||
return; | ||
} | ||
|
||
geode::createQuickPopup( | ||
"Practice Mode", | ||
"Are you sure you want to\nenter <cg>practice mode</c>?", | ||
"Cancel", "Practice", | ||
[](FLAlertLayer* tis, bool btn2) { | ||
[this, sender](FLAlertLayer* tis, bool btn2) { | ||
log::info("click practice"); | ||
|
||
if (btn2) { | ||
log::info("right btn"); | ||
|
||
PlayLayer::get()->togglePracticeMode(true); | ||
PlayLayer::get()->pauseGame(false); | ||
this->m_fields->v = true; | ||
|
||
this->onPracticeMode(sender); | ||
|
||
this->m_fields->v = false; | ||
} | ||
} | ||
); | ||
} | ||
|
||
bool a = false; | ||
|
||
void onRestart(cocos2d::CCObject* sender) | ||
{ | ||
if (m_fields->a || !Client::GetModuleEnabled("conf-res")) | ||
{ | ||
PauseLayer::onRestart(sender); | ||
|
||
return; | ||
} | ||
|
||
geode::createQuickPopup( | ||
"Restart Leevl", | ||
"Are you sure you want to\n<cr>restart this level</c>?", | ||
"Cancel", "Restart", | ||
[this, sender](FLAlertLayer* tis, bool btn2) { | ||
log::info("click restart"); | ||
|
||
if (btn2) { | ||
log::info("right btn"); | ||
|
||
this->m_fields->a = true; | ||
|
||
this->onRestart(sender); | ||
|
||
this->m_fields->a = false; | ||
} | ||
} | ||
); | ||
} | ||
};*/ | ||
}; |
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,5 +1,5 @@ | ||
#include <Geode/Geode.hpp> | ||
#include <Geode/modify/EndLevelLayer.hpp> | ||
#include <Geode/modify/PauseLayer.hpp> | ||
#include "../Client/Client.h" | ||
|
||
using namespace geode::prelude; |
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 +1,14 @@ | ||
#include "Macro.h" | ||
/*#include "Macro.h" | ||
class $modify (PauseLayer) | ||
{ | ||
virtual TodoReturn customSetup() | ||
{ | ||
PauseLayer::customSetup(); | ||
//auto m = CCMenu::create(CCMenuItemSpriteExtra::create(CCSprite::createWithSpriteFrameName("GJ_achImage_001.png"), this, nullptr)); | ||
//this->addChild(m); | ||
} | ||
//TodoReturn setupReplay(gd::string) | ||
};*/ |