Skip to content

Commit 5bcb56f

Browse files
committed
changes
1 parent a3f6806 commit 5bcb56f

15 files changed

+29
-43
lines changed

README.md

Lines changed: 4 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -70,43 +70,11 @@ For external mods that modify the background of a specific menu, you can use the
7070
```cpp
7171
#include <Geode/Geode.hpp>
7272
#include "../../SwelvyBG.hpp"
73-
#include <HookClass.hpp>
74-
using namespace geode::prelude;
75-
76-
HookClass(GlobedLevelListLayer) {
77-
if (auto bg = this->getChildByID("background")) {
78-
bg->setVisible(false);
79-
}
80-
81-
SwelvyBG* swelvyBG = SwelvyBG::create();
82-
swelvyBG->setZOrder(-1);
83-
84-
this->addChild(swelvyBG);
85-
}
86-
87-
```
88-
This way is new from v1.7.0+!
89-
90-
### External Mods Fix
73+
#include <alphalaneous.alphas_geode_utils/include/NodeModding.h>
9174

92-
For external mods that really don't like you to modify the background of a specific menu, you can use the following example. This shows how to hook into `cvolton.betterinfo/CustomCreatorLayer` to add a custom background.
75+
using namespace geode::prelude;
9376

94-
Please do not do this unless like in this example it's the only way since HookClass won't work on it!
77+
SET_SWELVY(GlobedLevelListLayer, "dankmeme.globed2/GlobedLevelListLayer", "background");
9578

96-
```cpp
97-
#include <Geode/Geode.hpp>
98-
#include "../../SwelvyBG.hpp"
99-
#include <HookClass.hpp>
100-
using namespace geode::prelude;
101-
// class name to store in code, Hook to (the real layer id)
102-
HookClass_Scene(cvolton_betterinfo_CustomCreatorLayer,"cvolton.betterinfo/CustomCreatorLayer") {
103-
if (auto bg = _This->getChildByID("cvolton.betterinfo/background")) {
104-
bg->setVisible(false);
105-
SwelvyBG* swelvyBG = SwelvyBG::create();
106-
swelvyBG->setZOrder(-1);
107-
108-
_This->addChild(swelvyBG);
109-
}
110-
}
11179
```
112-
This way is new from v1.7.0+!
80+
This way is new from v2.0.0+!
761 KB
Loading
586 KB
Loading
513 KB
Loading
289 KB
Loading
426 KB
Loading
494 KB
Loading
309 KB
Loading
231 KB
Loading
293 KB
Loading

0 commit comments

Comments
 (0)