Skip to content

Commit

Permalink
add hiding currencylayer and 3.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
RayDeeUx committed Jul 28, 2024
1 parent 0775de1 commit da351f9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"geode": "3.3.0",
"geode": "3.3.1",
"gd": {
"mac": "2.206",
"android": "2.206",
Expand Down
11 changes: 11 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <Geode/modify/PlayLayer.hpp>
#include <Geode/modify/CCScheduler.hpp>
#include <Geode/modify/EndLevelLayer.hpp>
#include <Geode/modify/CurrencyRewardLayer.hpp>
#include <iostream>
#include <vector>
#include <fstream>
Expand All @@ -27,6 +28,8 @@ int64_t originalOpacity = 0;

bool isCompactEndscreen;
bool isGDMO;
bool isLevelComplete = false;

float compactEndscreenFallbackPosition = CCDirector::get()->getWinSize().width * 0.6f;

$on_mod(Loaded) {
Expand Down Expand Up @@ -214,6 +217,10 @@ class $modify(MyEndLevelLayer, EndLevelLayer) {
hideELLSprite->setVisible(!hideELLSprite->isVisible());
}
}
CurrencyRewardLayer* currencyLayer = nullptr;
currencyLayer = getChildOfType<CurrencyRewardLayer>(this, 0);
if (!currencyLayer) { getChildOfType<CurrencyRewardLayer*>(getParent(), 0); }
if (currencyLayer) { currencyLayer->setVisible(false); }
}
void applySpaceUK() {
if (MyEndLevelLayer::getModBool("spaceUK")) {
Expand Down Expand Up @@ -263,6 +270,10 @@ class $modify(MyEndLevelLayer, EndLevelLayer) {
}
}
}
CurrencyRewardLayer* currencyLayer = nullptr;
currencyLayer = getChildOfType<CurrencyRewardLayer>(this, 0);
if (!currencyLayer) { getChildOfType<CurrencyRewardLayer*>(getParent(), 0); }
if (currencyLayer) { currencyLayer->setVisible(false); }
}
void applyHideChainsBackground() {
if (auto left = getChildByIDRecursive("chain-left")) {
Expand Down

0 comments on commit da351f9

Please sign in to comment.