From 02140bed6e57ba4b04ac3bf79b015564c13c992a Mon Sep 17 00:00:00 2001 From: Justin Pridgen Date: Fri, 15 Nov 2024 20:12:42 -0500 Subject: [PATCH] 4.0.0-beta.1 --- changelog.md | 3 +++ mod.json | 4 ++-- src/hooks/LevelInfoLayer.cpp | 9 ++++++--- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/changelog.md b/changelog.md index 01adde1..285b752 100644 --- a/changelog.md +++ b/changelog.md @@ -1,4 +1,7 @@ # Demons In Between Changelog +## v1.3.0 (2024-11-15) +- Ported to Geode v4.0.0-beta.1 + ## v1.3.0-beta.1 (2024-11-13) - Added auto-refreshing for the demon difficulties in the level info page - Ported to Geometry Dash v2.207 diff --git a/mod.json b/mod.json index e061c8e..adbb686 100644 --- a/mod.json +++ b/mod.json @@ -1,11 +1,11 @@ { - "geode": "4.0.0-alpha.1", + "geode": "4.0.0-beta.1", "gd": { "android": "2.2074", "win": "2.2074", "mac": "2.2074" }, - "version": "v1.3.0-beta.1", + "version": "v1.3.0", "id": "hiimjustin000.demons_in_between", "name": "Demons In Between", "developer": "hiimjustin000", diff --git a/src/hooks/LevelInfoLayer.cpp b/src/hooks/LevelInfoLayer.cpp index fdf53bc..7dab7c9 100644 --- a/src/hooks/LevelInfoLayer.cpp +++ b/src/hooks/LevelInfoLayer.cpp @@ -27,11 +27,14 @@ class $modify(DIBLevelInfoLayer, LevelInfoLayer) { auto demon = DemonsInBetween::demonForLevel(level, false); if (demon.id == 0 || demon.difficulty == 0) return true; - auto leftSideMenu = getChildByID("left-side-menu"); - leftSideMenu->addChild(CCMenuItemSpriteExtra::create( + auto demonInfoButton = CCMenuItemSpriteExtra::create( CircleButtonSprite::createWithSpriteFrameName(fmt::format("DIB_{:02d}_001.png"_spr, demon.difficulty).c_str()), this, menu_selector(DIBLevelInfoLayer::onDemonInfo) - )); + ); + demonInfoButton->setID("demon-info-button"_spr); + + auto leftSideMenu = getChildByID("left-side-menu"); + leftSideMenu->addChild(demonInfoButton); leftSideMenu->updateLayout(); createDemonSprite(demon);