Skip to content

Commit 4ee1e69

Browse files
committed
test on github
1 parent 5be4504 commit 4ee1e69

File tree

3 files changed

+29
-31
lines changed

3 files changed

+29
-31
lines changed

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# v2.0.2
2+
3+
- Added Layers: `teamtcm.geometry-dash-odyssey/OdysseyComicLayer`, `teamtcm.geometry-dash-odyssey/OdysseySelectLayer`, `gd/UIOptionsLayer`, `gd/UIPOptionsLayer`, `GJShopLayer` (currently all of them are together)
4+
15
# v2.0.1
26

37
- Bugfix: BetterAchievements background didn't change

mod.json

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -410,32 +410,29 @@
410410
"description": "OdysseySelectLayer",
411411
"type": "bool",
412412
"default": true
413+
},
414+
415+
"other/enable-menu-icons": {
416+
"name": "Enable Menu Ground + Icons",
417+
"description": "Keeps the ground and icons visible in MenuLayer.",
418+
"type": "bool",
419+
"default": true
413420
}
414421
},
415-
"dependencies": [
416-
{
417-
"id": "geode.node-ids",
418-
"importance": "required",
419-
"version": ">=v1.12.0"
420-
},
421-
{
422-
"id": "alphalaneous.happy_textures",
422+
"dependencies": {
423+
"geode.node-ids": ">=v1.19.0",
424+
"alphalaneous.alphas_geode_utils": ">=1.0.3",
425+
"alphalaneous.happy_textures": {
423426
"importance": "recommended",
424427
"version": ">=1.3.18"
425-
},
426-
{
427-
"id": "alphalaneous.alphas_geode_utils",
428-
"importance": "required",
429-
"version": ">=1.0.3"
430428
}
431-
],
432-
"incompatibilities": [
433-
{
434-
"id": "undefined0.icon_ninja",
435-
"importance": "conflicting",
436-
"version": ">=v1.0.0"
429+
},
430+
"incompatibilities": {
431+
"undefined0.icon_ninja": {
432+
"importance": "breaking",
433+
"version": "<=v1.2.3"
437434
}
438-
],
435+
},
439436
"tags": ["content", "customization", "enhancement", "interface", "offline", "universal"],
440437
"links": {
441438
"community": "https://discord.gg/vK3DuqJwyW",

src/modify/gd/MenuLayer.cpp

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ using namespace geode::prelude;
77

88
class $modify(MenuLayer) {
99
static void onModify(auto& self) {
10-
(void)self.setHookPriority("MenuLayer::init", -2); // For SwelvyBGInsert Aka BetterMenu no overlap
10+
(void)self.setHookPriority("MenuLayer::init", -2);
1111
}
1212
bool init() {
1313
if (!MenuLayer::init()) {
@@ -19,8 +19,12 @@ class $modify(MenuLayer) {
1919
}
2020

2121
if (Mod::get()->getSettingValue<bool>("gd/MenuLayer")) {
22-
if (CCNode* mainmenu = this->getChildByIDRecursive("main-menu-bg")) {
23-
mainmenu->setVisible(false);
22+
if (CCNode* mainmenu = this->getChildByIDRecursive("main-menu-bg")) {
23+
if (Mod::get()->getSettingValue<bool>("other/part-enable-menu-bg")) {
24+
mainmenu->getChildByID("background")->setVisible(false);
25+
} else {
26+
mainmenu->setVisible(false);
27+
}
2428
}
2529
if (Loader::get()->isModLoaded("zalphalaneous.minecraft") && Mod::get()->getSettingValue<bool>("external-mods")) {
2630
auto panorama = this->getChildByID("zalphalaneous.minecraft/minecraft-panorama");
@@ -36,11 +40,4 @@ class $modify(MenuLayer) {
3640
}
3741
return true;
3842
}
39-
};
40-
41-
42-
// HookClass(NinjaSwipeLayer) {
43-
// if (Loader::get()->isModLoaded("undefined0.icon_ninja")) {
44-
// this->removeFromParent();
45-
// }
46-
// }
43+
};

0 commit comments

Comments
 (0)