Skip to content

Commit

Permalink
proper real v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
0mgRod committed Jul 26, 2024
1 parent ceacc48 commit 3d14329
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 11 deletions.
7 changes: 6 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@
- Fixed versioning stuff
- Fixed `LoadingLayer` bug
- Added very customisable settings
- Added `SecretLayer2`
- Added `SecretLayer2` (may not work but i'm unsure)
- Added GDPS Switcher

# v1.0.1

- Added Happy Textures as a dependency
- Added BetterInfo
- Added Globed
- Added Texture Pack Loader
- Added Texture Pack Workshop
- Bugfixes:
- Fixed possible crashes.

Expand Down
Binary file added logo.pdn
Binary file not shown.
Binary file modified logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,17 @@
"type": "bool",
"default": true
},
"external-mods": {
"name": "external mods",
"description": "For external mod layers",
"type": "bool",
"default": true
},
"show-secret-rewards": {
"name": "Show in secret chests menu",
"description": "GauntletLayer",
"type": "bool",
"default": true
},
"external-mods": {
"name": "external mods",
"description": "For external mod layers",
"type": "bool",
"default": true
}
},
"dependencies": [
Expand Down
21 changes: 21 additions & 0 deletions src/modify/GDPSSwitcher/ServerSwitchLayer.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#include <Geode/Geode.hpp>
#include "../../SwelvyBG.hpp"
#include "../../Hooks/Hooker.hpp"
class ServerSwitchLayer : public Betterhook::HookBetter {
void init(CCNode* _This) override {
if (auto bg = _This->getChildByID("background")) {
bg->setVisible(false);
}

SwelvyBG* swelvyBG = SwelvyBG::create();
swelvyBG->setZOrder(-1);
swelvyBG->setID("swelvy-background");
_This->addChild(swelvyBG);
}

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


REGISTER_HookBetter(ServerSwitchLayer);

8 changes: 4 additions & 4 deletions src/modify/SecretLayer2.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#include "../SwelvyBG.hpp"
#include <Geode/Geode.hpp>
#include <Geode/modify/LevelBrowserLayer.hpp>
#include <Geode/modify/SecretLayer2.hpp>

using namespace geode::prelude;

class $modify(MyLevelBrowserLayer, LevelBrowserLayer) {
bool init(GJSearchObject* p0) {
if (!LevelBrowserLayer::init(p0)) {
class $modify(MySecretLayer2, SecretLayer2) {
bool init() {
if (!SecretLayer2::init()) {
return false;
}
if (Mod::get()->getSettingValue<bool>("show-vault-of-secrets")){
Expand Down

0 comments on commit 3d14329

Please sign in to comment.