Skip to content

Commit

Permalink
4.0.0-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hiimjustin000 committed Nov 16, 2024
1 parent 60aaef5 commit 02140be
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions mod.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
9 changes: 6 additions & 3 deletions src/hooks/LevelInfoLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 02140be

Please sign in to comment.