Skip to content

Commit

Permalink
Merge pull request #53 from acaruso-xx/main
Browse files Browse the repository at this point in the history
Reposition bottom left menu
  • Loading branch information
HJfod authored May 16, 2024
2 parents 2a51a07 + cff2938 commit 34e0b95
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/CreatorLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,20 @@ static void reorderButtons(Args... args) {
->setAxisAlignment(AxisAlignment::End)
);
}

// add a menu to the bottom left corner that is empty but prolly a place mods
// want to add stuff to
auto menu = CCMenu::create();
menu->setPosition(24.f, 0.f + 125.f / 2);
menu->setID("bottom-left-menu");
menu->setContentSize({ 60.f, 125.f });
menu->setLayout(
auto bottomLeftMenu = CCMenu::create();
bottomLeftMenu->setPosition(3, 3);
bottomLeftMenu->setID("bottom-left-menu");
bottomLeftMenu->setAnchorPoint({0, 0});
bottomLeftMenu->setZOrder(1);
bottomLeftMenu->setContentSize({ 40.f, winSize.height/2 });
bottomLeftMenu->setLayout(
ColumnLayout::create()
->setAxisAlignment(AxisAlignment::Start)
);
this->addChild(menu);
this->addChild(bottomLeftMenu);
}
struct CreatorLayerIDs : Modify<CreatorLayerIDs, CreatorLayer> {
static void onModify(auto& self) {
Expand Down

0 comments on commit 34e0b95

Please sign in to comment.