Skip to content

Commit 0f148df

Browse files
authored
Update README.md
1 parent 75d38c5 commit 0f148df

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,20 @@ using namespace geode::prelude;
7777
SET_SWELVY(GlobedLevelListLayer, "dankmeme.globed2/GlobedLevelListLayer", "background");
7878

7979
```
80+
81+
If the layer you're attempting to hook doesnt have an ID for its background, use `SET_SWELVY_SPRITE`.
82+
83+
```cpp
84+
#include <Geode/Geode.hpp>
85+
#include "../../SwelvyBG.hpp"
86+
#include <alphalaneous.alphas_geode_utils/include/NodeModding.h>
87+
88+
using namespace geode::prelude;
89+
90+
SET_SWELVY_SPRITE(GlobedLevelListLayer, "dankmeme.globed2/GlobedLevelListLayer");
91+
92+
```
93+
8094
This way is new from v2.0.0+!
8195

8296
### Registering Layers

0 commit comments

Comments
 (0)