Skip to content

Commit 5287cdb

Browse files
committed
add alphalaneous.random_tab and omgrod.geometry-dash-surge mods
1 parent 3405a8d commit 5287cdb

11 files changed

+80
-1
lines changed

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# v2.3.0
2+
3+
- Add `alphalaneous.random_tab` mod
4+
- Add `omgrod.geometry-dash-surge` mod (mod coming soon...)
5+
16
# v2.2.1
27

38
- Changed all default modded layer settings to false

mod.json

Lines changed: 25 additions & 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.2.1",
9+
"version": "v2.3.0",
1010
"id": "omgrod.geodify",
1111
"name": "Geodify",
1212
"developers": ["OmgRod", "Cosmella-v"],
@@ -463,6 +463,30 @@
463463
"type": "bool",
464464
"default": false
465465
},
466+
"alphalaneous.random_tab/RandomLayer": {
467+
"name": "RandomLayer",
468+
"description": "RandomLayer",
469+
"type": "bool",
470+
"default": false
471+
},
472+
"omgrod.geometry-dash-surge/GDSBasementLayer": {
473+
"name": "GDSBasementLayer",
474+
"description": "GDSBasementLayer",
475+
"type": "bool",
476+
"default": false
477+
},
478+
"omgrod.geometry-dash-surge/GDSIslandSelectLayer": {
479+
"name": "GDSIslandSelectLayer",
480+
"description": "GDSIslandSelectLayer",
481+
"type": "bool",
482+
"default": false
483+
},
484+
"omgrod.geometry-dash-surge/GDSCreditsLayer": {
485+
"name": "GDSCreditsLayer",
486+
"description": "GDSCreditsLayer",
487+
"type": "bool",
488+
"default": false
489+
},
466490
"other-title": {
467491
"type": "title",
468492
"name": "Other"
376 KB
Loading
243 KB
Loading
450 KB
Loading
1.21 MB
Loading

src/layers/GYSettingSelectLayer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ bool GYSettingSelectLayer::init() {
175175
{ "GDUtils", "Jouca & Firee", "gdutilsdevs.gdutils" },
176176
{ "GDPS Hub", "GDPS Hub Team + 2 more", "lblazen.gdps_hub" },
177177
{ "GDCP List Integration", "GDCP Team + 2 more", "gdcpteam.challenge-list" },
178+
{ "Random Tab", "Alphalaneous", "alphalaneous.random_tab" },
179+
{ "Geometry Dash: Surge", "OmgRod", "omgrod.geometry-dash-surge" },
178180
};
179181

180182
for (const auto& [name, author, id] : modData) {
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#include <Geode/Geode.hpp>
2+
#include "../../SwelvyBG.hpp"
3+
#include <alphalaneous.alphas_geode_utils/include/NodeModding.h>
4+
5+
using namespace geode::prelude;
6+
7+
class $nodeModify(MyRandomLayer, RandomLayer) {\
8+
void modify() {
9+
if (Mod::get()->getSettingValue<bool>("alphalaneous.random_tab/RandomLayer")) {
10+
if (auto bg = getChildByType<CCSprite>(-1)) {
11+
bg->setVisible(false);
12+
SwelvyBG* swelvyBG = SwelvyBG::create();
13+
swelvyBG->setZOrder(-999);
14+
addChild(swelvyBG);
15+
16+
for (int i = 0; i < 4; ++i) {
17+
if (auto newBg = getChildByType<CCScale9Sprite>(i)) {
18+
newBg->setColor(ccColor3B{0, 0, 0});
19+
newBg->setOpacity(60);
20+
} else {
21+
log::debug("Background not found or wrong type at index {}", i);
22+
}
23+
}
24+
}
25+
}
26+
}
27+
};
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include <Geode/Geode.hpp>
2+
#include "../../SwelvyBG.hpp"
3+
#include <alphalaneous.alphas_geode_utils/include/NodeModding.h>
4+
5+
using namespace geode::prelude;
6+
7+
SET_SWELVY_SPRITE(GDSBasementLayer, "omgrod.geometry-dash-surge/GDSBasementLayer");
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include <Geode/Geode.hpp>
2+
#include "../../SwelvyBG.hpp"
3+
#include <alphalaneous.alphas_geode_utils/include/NodeModding.h>
4+
5+
using namespace geode::prelude;
6+
7+
SET_SWELVY_SPRITE(GDSCreditsLayer, "omgrod.geometry-dash-surge/GDSCreditsLayer");

0 commit comments

Comments
 (0)