-
Notifications
You must be signed in to change notification settings - Fork 5
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
0mgRod
committed
Jul 26, 2024
1 parent
82d48ae
commit ceacc48
Showing
3 changed files
with
37 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"geode": "3.2.0", | ||
"geode": "3.3.0", | ||
"gd": { | ||
"android": "2.206", | ||
"win": "2.206" | ||
|
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,24 @@ | ||
#include "../SwelvyBG.hpp" | ||
#include <Geode/Geode.hpp> | ||
#include <Geode/modify/LevelBrowserLayer.hpp> | ||
|
||
using namespace geode::prelude; | ||
|
||
class $modify(MyLevelBrowserLayer, LevelBrowserLayer) { | ||
bool init(GJSearchObject* p0) { | ||
if (!LevelBrowserLayer::init(p0)) { | ||
return false; | ||
} | ||
if (Mod::get()->getSettingValue<bool>("show-vault-of-secrets")){ | ||
if (auto bg = this->getChildByID("background")) { | ||
bg->setVisible(false); | ||
auto swelvyBG = SwelvyBG::create(); | ||
swelvyBG->setZOrder(-2); | ||
swelvyBG->setID("swelvy-background"); | ||
|
||
this->addChild(swelvyBG); | ||
} | ||
} | ||
return true; | ||
} | ||
}; |