Skip to content

Commit

Permalink
Change BI menu buttons alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Jan 6, 2024
1 parent 69133ae commit 3f04a93
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/layers/CustomCreatorLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ bool CustomCreatorLayer::init() {
menu->addChild(mostLikedBtn);
mostLikedBtn->setPosition({0,55});
mostLikedBtn->setSizeMult(1.2f);
mostLikedBtn->setID("most-liked-button");_spr*/
mostLikedBtn->setID("most-liked-button"_spr);*/

auto searchBtn = CCMenuItemSpriteExtra::create(
BetterInfo::createBISprite("BI_searchLevel_001.png"),
this,
menu_selector(CustomCreatorLayer::onSearch)
);
menu->addChild(searchBtn);
searchBtn->setPosition({60,55});
searchBtn->setPosition({60,-55});
searchBtn->setSizeMult(1.2f);
searchBtn->setID("search-button"_spr);

Expand All @@ -67,7 +67,7 @@ bool CustomCreatorLayer::init() {
menu_selector(CustomCreatorLayer::onSearchID)
);
menu->addChild(searchIDBtn);
searchIDBtn->setPosition({120,-57.5f});
searchIDBtn->setPosition({-60,-55});
searchIDBtn->setSizeMult(1.2f);
searchIDBtn->setID("search-id-button"_spr);

Expand Down Expand Up @@ -99,7 +99,7 @@ bool CustomCreatorLayer::init() {
menu_selector(CustomCreatorLayer::onFame)
);
menu->addChild(fameBtn);
fameBtn->setPosition({-2.5,-55});
fameBtn->setPosition({60,55});
fameBtn->setSizeMult(1.2f);
fameBtn->setID("weekly-button"_spr);

Expand Down

0 comments on commit 3f04a93

Please sign in to comment.