Skip to content

Commit

Permalink
stupid solution but i hope it works
Browse files Browse the repository at this point in the history
  • Loading branch information
mishpro-programm committed Mar 20, 2024
1 parent 3f50f1f commit 983245b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using namespace geode::prelude;

#include <Geode/modify/PauseLayer.hpp>
#include <Geode/modify/ProfilePage.hpp>
class $modify(MyPauseLayer, PauseLayer) {
void customSetup(){
PauseLayer::customSetup();
Expand All @@ -27,10 +28,22 @@ class $modify(MyPauseLayer, PauseLayer) {
auto infoLayer = InfoLayer::create(level, nullptr, nullptr);
infoLayer->setZOrder(11);
infoLayer->setScale(0.f);
auto scaleAction = CCScaleTo::create(0.5f, 1.f);
auto scaleAction = CCScaleTo::create(1.f, 1.f);
auto action = CCEaseElasticOut::create(scaleAction);
infoLayer->runAction(action);
auto scene = CCDirector::get()->getRunningScene();
scene->addChild(infoLayer);
}
};
class $modify(ProfilePage) {
void onMyLevels(CCObject*){
if(!PlayLayer::get()){
ProfilePage::onMyLevels();
}
}
void onMyLists(CCObject*){
if(!PlayLayer::get()){
ProfilePage::onMyLists();
}
}
};

0 comments on commit 983245b

Please sign in to comment.