Skip to content

Commit

Permalink
Update EditorUI positioning logic to fix mod compatibility regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Apr 14, 2024
1 parent 9a545e8 commit 7813104
Show file tree
Hide file tree
Showing 3 changed files with 6 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 @@
# Node IDs Changelog
## v1.9.1
* Updated EditorUI positioning logic to fix mod compatibility regressions

## v1.9.0
* Added batch-layer for GJBaseGameLayer
* Added GauntletSelectLayer (thanks @SpaghettDev and @ninXout)
Expand Down
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"android": "2.205",
"mac": "2.200"
},
"version": "v1.9.0",
"version": "v1.9.1",
"id": "geode.node-ids",
"name": "Node IDs",
"developer": "Geode Team",
Expand Down
6 changes: 2 additions & 4 deletions src/EditorUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,8 @@ using namespace geode::node_ids;
menu->getChildByID("zoom-out-button"),
menu->getChildByID("zoom-in-button")
);
zoomMenu->setAnchorPoint({0.5f, 1.f});
zoomMenu->setPositionY(playTestMenu->getPositionY() - 30);
zoomMenu->setContentSize({ 50.f, zoomMenuHeight });
zoomMenu->setPositionY(playTestMenu->getPositionY() - 30 - (zoomMenu->getContentHeight() / 2));
zoomMenu->updateLayout();

auto linkMenu = detachAndCreateMenu(
Expand All @@ -140,9 +139,8 @@ using namespace geode::node_ids;
menu->getChildByID("unlink-button"),
menu->getChildByID("link-button")
);
linkMenu->setAnchorPoint({0.5f, 1.f});
linkMenu->setPositionY(playTestMenu->getPositionY() - 30);
linkMenu->setContentSize({ 125.f, zoomMenuHeight });
linkMenu->setPositionY(playTestMenu->getPositionY() - 30 - (linkMenu->getContentHeight() / 2));
linkMenu->updateLayout();

menu->setPosition(42.f, 45.f);
Expand Down

0 comments on commit 7813104

Please sign in to comment.