Skip to content

Commit

Permalink
Added IDPackLayer.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
OmgRod committed Nov 16, 2024
1 parent 241f724 commit 59fb9a6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/modify/hiimjustin000.integrated_demonlist/IDPackLayer.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#include <Geode/Geode.hpp>
#include "../../SwelvyBG.hpp"
#include "../../Hooks/Hooker.hpp"
class IDPackLayer : public Betterhook::HookBetter {
void init(CCNode* _This) override {
if (auto bg = _This->getChildByType<CCSprite>(0)) {
bg->setVisible(false);
}
SwelvyBG* swelvyBG = SwelvyBG::create();
swelvyBG->setZOrder(-1);
swelvyBG->setID("swelvy-background");
_This->addChild(swelvyBG);
}

const char* PutLayer() const override { return "IDPackLayer"; }
};


REGISTER_HookBetter(IDPackLayer);

0 comments on commit 59fb9a6

Please sign in to comment.