Skip to content

Commit

Permalink
Added the settings to the button menu
Browse files Browse the repository at this point in the history
  • Loading branch information
SMJSGaming committed Jun 22, 2024
1 parent 55daa44 commit ebe92c1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/scenes/InterceptPopup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,13 @@ bool InterceptPopup::setup() {

settingsSprite->setScale(0.4f);

CCMenu* menu = CCMenu::createWithItem(CCMenuItemSpriteExtra::create(settingsSprite, this, menu_selector(InterceptPopup::onSettings)));
CCMenuItemSpriteExtra* item = CCMenuItemSpriteExtra::create(settingsSprite, this, menu_selector(InterceptPopup::onSettings));

menu->setAnchorPoint(BOTTOM_LEFT);
menu->setPosition({
item->setPosition({
InterceptPopup::uiWidth - InterceptPopup::uiPadding - settingsSprite->getContentWidth() * settingsSprite->getScale() / 2,
m_title->getPositionY()
});
m_mainLayer->addChild(menu);
m_buttonMenu->addChild(item);

return true;
}
Expand Down

0 comments on commit ebe92c1

Please sign in to comment.