Skip to content

Commit

Permalink
fix reward room alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Mar 16, 2024
1 parent f828b34 commit 4c649ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
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.8.0",
"version": "v1.8.1",
"id": "geode.node-ids",
"name": "Node IDs",
"developer": "Geode Team",
Expand Down
6 changes: 4 additions & 2 deletions src/SecretRewardsLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,19 @@ void assignIDsToStore(CCMenuItemSpriteExtra* store, int storeNum) {
}

void assignIDsToPage(CCLayer* page, int pageNum) {
auto winSize = CCDirector::sharedDirector()->getWinSize();

page->setID("page" + std::to_string(pageNum + 1));

if (pageNum == 3) { // store page
if (auto menu = getChildOfType<CCMenu>(page, 0)) {
menu->setID("store-menu");

// make this a row layout in case people want to add their own shops here
menu->setPosition(285.f, 220.f);
menu->setPosition(winSize.width / 2, winSize.height - 100);
menu->setLayout(
RowLayout::create()
->setGap(25.f)
->setGap(24.f)
);
menu->updateLayout();

Expand Down

0 comments on commit 4c649ba

Please sign in to comment.