We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f9ad51 commit 241f724Copy full SHA for 241f724
src/modify/cvolton.betterinfo/DailyViewLayer.cpp
@@ -0,0 +1,20 @@
1
+#include <Geode/Geode.hpp>
2
+#include "../../SwelvyBG.hpp"
3
+#include "../../Hooks/Hooker.hpp"
4
+class DailyViewLayer : public Betterhook::HookBetter {
5
+ void init(CCNode* _This) override {
6
+ if (auto bg = _This->getChildByID("cvolton.betterinfo/background")) {
7
+ bg->setVisible(false);
8
+ }
9
+ SwelvyBG* swelvyBG = SwelvyBG::create();
10
+ swelvyBG->setZOrder(-1);
11
+ swelvyBG->setID("swelvy-background");
12
+ _This->addChild(swelvyBG);
13
14
+
15
+ const char* PutLayer() const override { return "DailyViewLayer"; }
16
+};
17
18
19
+REGISTER_HookBetter(DailyViewLayer);
20
0 commit comments