hide search toggle

This commit is contained in:
HJfod 2024-11-10 12:20:44 +02:00
parent efb1fbf729
commit cad670fb31

View file

@ -465,12 +465,12 @@ bool ModsLayer::init() {
bigSizeBtn->setID("list-size-button"); bigSizeBtn->setID("list-size-button");
listActionsMenu->addChild(bigSizeBtn); listActionsMenu->addChild(bigSizeBtn);
auto searchBtn = CCMenuItemSpriteExtra::create( // auto searchBtn = CCMenuItemSpriteExtra::create(
GeodeSquareSprite::createWithSpriteFrameName("search.png"_spr, &m_showSearch), // GeodeSquareSprite::createWithSpriteFrameName("search.png"_spr, &m_showSearch),
this, menu_selector(ModsLayer::onSearch) // this, menu_selector(ModsLayer::onSearch)
); // );
searchBtn->setID("search-button"); // searchBtn->setID("search-button");
listActionsMenu->addChild(searchBtn); // listActionsMenu->addChild(searchBtn);
listActionsMenu->setLayout(ColumnLayout::create()); listActionsMenu->setLayout(ColumnLayout::create());
m_frame->addChildAtPosition(listActionsMenu, Anchor::Left, ccp(-5, 25)); m_frame->addChildAtPosition(listActionsMenu, Anchor::Left, ccp(-5, 25));