File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 11#include < Geode/Geode.hpp>
2+ #include < Geode/loader/Loader.hpp>
23#include " ../../SwelvyBG.hpp"
34#include " ../../Hooks/Hooker.hpp"
45
56using namespace geode ::prelude;
67
78class ModsLayer : public Betterhook ::HookBetter {
89 void init (CCNode* _This) override {
9- if (auto bg = _This->getChildByID (" bg" )) {
10- bg->setVisible (false );
11- }
10+ if (!(Loader::get ()->getSettingValue <bool >(" enable-geode-theme" ))) {
11+ if (auto bg = _This->getChildByID (" bg" )) {
12+ bg->setVisible (false );
13+ }
1214
13- SwelvyBG* swelvyBG = SwelvyBG::create ();
14- swelvyBG->setZOrder (-1 );
15- swelvyBG->setID (" swelvy-background" );
16- _This->addChild (swelvyBG);
15+ SwelvyBG* swelvyBG = SwelvyBG::create ();
16+ swelvyBG->setZOrder (-1 );
17+ swelvyBG->setID (" swelvy-background" );
18+ _This->addChild (swelvyBG);
19+ }
1720 }
1821
1922 const char * PutLayer () const override { return " ModsLayer" ; }
You can’t perform that action at this time.
0 commit comments