Skip to content

Commit 5c21cca

Browse files
committed
small fix
1 parent ecc37fe commit 5c21cca

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# v2.1.3
2+
3+
- Fixed GDPS Hub background
4+
15
# v2.1.2
26

37
- Added GDPS Hub mod

mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"mac": "2.2074",
77
"ios": "2.2074"
88
},
9-
"version": "v2.1.2",
9+
"version": "v2.1.3",
1010
"id": "omgrod.geodify",
1111
"name": "Geodify",
1212
"developers": ["OmgRod", "Cosmella-v"],

src/modify/lblazen.gdps_hub/GDPSHubLayer.cpp

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,16 @@
44

55
using namespace geode::prelude;
66

7-
SET_SWELVY(GDPSHubLayer, "lblazen.gdps_hub/GDPSHubLayer", "background");
7+
class $nodeModify(MyGDPSHubLayer, GDPSHubLayer) {
8+
void modify() {
9+
if (Mod::get()->getSettingValue<bool>("lblazen.gdps_hub/GDPSHubLayer")) {
10+
if (auto bg = this->getChildByID("background")) {
11+
bg->setVisible(false);
12+
this->getChildByID("swelvy-node")->setVisible(false);
13+
SwelvyBG* swelvyBG = SwelvyBG::create();
14+
swelvyBG->setZOrder(bg->getZOrder() - 1);
15+
this->addChild(swelvyBG);
16+
}
17+
}
18+
}
19+
};

0 commit comments

Comments
 (0)