Skip to content

Commit

Permalink
sza
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSillyDoggo committed Jul 28, 2024
1 parent 157f34f commit 277be5b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 17 deletions.
2 changes: 0 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
- Fixed Crash removing checkpoints with checkpoint limit bypass enabled (thanks @hiimjustin000)
- Actually fixed not being able to exit practice mode with Comfirm Practice enabled
- Fixed not being able to scroll in the qolmod popup
- Added **Force Don't Fade**
- Added **Force Don't Enter**

# 1.5.1

Expand Down
4 changes: 2 additions & 2 deletions src/Client/ClientSetup.h
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ class ClientUtils
cosmetic->modules.push_back(new Module("Pulse Menu", "menu-pulse", "Pulses the <cg>Geometry Dash</c> logo on the main menu to the music"));
cosmetic->modules.push_back(new Module("No \"Do Not\" flip", "just-dont", "Disables the attempt text and endscreen text from being flipped with the <cl>Do Not</c> option enabled."));

cosmetic->modules.push_back(new Module("Force Don't Fade", "dont-fade", "Forces all object to be Don't Fade"));
cosmetic->modules.push_back(new Module("Force Don't Enter", "dont-enter", "Forces all object to be Don't Enter"));
//cosmetic->modules.push_back(new Module("Force Don't Fade", "dont-fade", "Forces all object to be Don't Fade"));
//cosmetic->modules.push_back(new Module("Force Don't Enter", "dont-enter", "Forces all object to be Don't Enter"));

#ifndef GEODE_IS_ANDROID32
cosmetic->modules.push_back(new Module("No Player Rotation", "no-rot", "Disables rotation on players"));
Expand Down
2 changes: 1 addition & 1 deletion src/Client/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ void Window::cocosCreate(CCMenu* menu)

float gap = 28;
float extraGap = 9.69f;
float height = gap * (roundUpToMultipleOf2((modules.size() - 1) / 2) - 1);
float height = gap * roundUpToMultipleOf2((modules.size() - 1) / 2);
height += gap;

height = std::max<float>(menu->getContentHeight(), height + extraGap);
Expand Down
4 changes: 2 additions & 2 deletions src/Hacks/DontFade.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <Geode/Geode.hpp>
/*#include <Geode/Geode.hpp>
#include <Geode/modify/PlayLayer.hpp>
#include "../Client/Client.h"
Expand Down Expand Up @@ -26,4 +26,4 @@ class $modify(PlayLayer)
}
QOLMOD_MOD_HOOK("dont-enter", "PlayLayer::addObject")
};
};*/
12 changes: 2 additions & 10 deletions src/Hacks/PracticeAlert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class $modify (PauseLayer)

geode::createQuickPopup(
"Practice Mode",
std::string("Are you sure you want to\n") + std::string(PlayLayer::get()->m_isPracticeMode ? "exit" : "enter") + std::string(" <cg>practice mode</c>?"),
"Are you sure you want to\n<cr>exit</c> <cg>Practice Mode</c>?",
"Cancel", "Practice",
[this, sender](FLAlertLayer* tis, bool btn2) {
if (btn2)
Expand All @@ -48,7 +48,7 @@ class $modify (PauseLayer)

geode::createQuickPopup(
"Practice Mode",
"Are you sure you want to\n<cr>exit</c> <cg>practice mode</c>",
"Are you sure you want to\n<cy>enter</c> <cg>Practice Mode</c>?",
"Cancel", "Exit",
[this, sender](FLAlertLayer* tis, bool btn2) {
if (btn2)
Expand Down Expand Up @@ -77,11 +77,7 @@ class $modify (PauseLayer)
"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);
Expand All @@ -106,11 +102,7 @@ class $modify (PauseLayer)
"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->onRestartFull(sender);
Expand Down

0 comments on commit 277be5b

Please sign in to comment.