Skip to content

Commit ad5e864

Browse files
committed
refactored again
1 parent 603a5d2 commit ad5e864

File tree

30 files changed

+1445
-101
lines changed

30 files changed

+1445
-101
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ if (DEFINED ENV{GITHUB_ACTIONS})
2121
add_definitions(-DGITHUB_ACTIONS)
2222
endif()
2323

24+
include("cmake/CPM.cmake")
25+
26+
CPMAddPackage("gh:OmgRod/External-Hook-API#master")
27+
28+
target_link_libraries(${PROJECT_NAME} external-hook-api)
29+
2430
add_subdirectory($ENV{GEODE_SDK} ${CMAKE_CURRENT_BINARY_DIR}/geode)
2531

2632
setup_geode_mod(${PROJECT_NAME})

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ 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 "../../Hooks/Hooker.hpp"
73+
#include <external-hook-api/HookClass.hpp>
7474
using namespace geode::prelude;
7575

76-
Viper_Hookclass(GlobedLevelListLayer) {
76+
HookClass(GlobedLevelListLayer) {
7777
if (auto bg = this->getChildByID("background")) {
7878
bg->setVisible(false);
7979
}
@@ -85,21 +85,21 @@ Viper_Hookclass(GlobedLevelListLayer) {
8585
}
8686

8787
```
88-
This way is new from v1.6.0+!
88+
This way is new from v1.7.0+!
8989
9090
### External Mods Fix
9191
9292
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.
9393
94-
Please do not do this unless like in this example it's the only way since Viper_Hookclass won't work on it!
94+
Please do not do this unless like in this example it's the only way since HookClass won't work on it!
9595
9696
```cpp
9797
#include <Geode/Geode.hpp>
9898
#include "../../SwelvyBG.hpp"
99-
#include "../../Hooks/Hooker.hpp"
99+
#include <external-hook-api/HookClass.hpp>
100100
using namespace geode::prelude;
101101
// class name to store in code, Hook to (the real layer id)
102-
Viper_Hookclass_Scene(cvolton_betterinfo_CustomCreatorLayer,"cvolton.betterinfo/CustomCreatorLayer") {
102+
HookClass_Scene(cvolton_betterinfo_CustomCreatorLayer,"cvolton.betterinfo/CustomCreatorLayer") {
103103
if (auto bg = _This->getChildByID("cvolton.betterinfo/background")) {
104104
bg->setVisible(false);
105105
SwelvyBG* swelvyBG = SwelvyBG::create();
@@ -109,4 +109,4 @@ Viper_Hookclass_Scene(cvolton_betterinfo_CustomCreatorLayer,"cvolton.betterinfo/
109109
}
110110
}
111111
```
112-
This way is new from v1.6.0+!
112+
This way is new from v1.7.0+!

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# v1.7.0 (the ninxout update)
2+
3+
- Added ninXout's Geode menu loop
4+
15
# v1.6.0
26

37
- Added color offset option

0 commit comments

Comments
 (0)