Skip to content

Commit

Permalink
update OptionsLayer layout properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Feb 23, 2024
1 parent ee08724 commit 3fe4be1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/OptionsLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ using namespace geode::node_ids;
->setGrowCrossAxis(true)
->setAxisAlignment(AxisAlignment::Center)
);
optionsMenu->updateLayout();
menuOffset++;

auto vaultMenu = getChildOfType<cocos2d::CCMenu>(optionsLayer, menuOffset);
Expand Down Expand Up @@ -105,6 +104,8 @@ using namespace geode::node_ids;

getChildOfType<CCMenuItemSpriteExtra>(optionsMenu, buttonOffset)->setID("help-button");
#endif

optionsMenu->updateLayout();
}

struct OptionsLayerIDs : Modify<OptionsLayerIDs, OptionsLayer> {
Expand Down

0 comments on commit 3fe4be1

Please sign in to comment.