remove the test onMoreGames hook from MenuLayer

This commit is contained in:
HJfod 2023-02-20 19:42:57 +02:00
parent ed17f11979
commit d809d5f939

View file

@ -160,24 +160,4 @@ $register_ids(MenuLayer) {
this->addChild(middleLeftMenu);
}
struct $modify(MenuLayer) {
void onMoreGames(CCObject*) {
auto thisDogFuckedUpBrah = CircleButtonSprite::createWithSpriteFrameName(
"geode-logo-outline-gold.png"_spr,
1.0f,
CircleBaseColor::Green,
CircleBaseSize::Medium2
);
auto bottomMenu = static_cast<CCMenu*>(this->getChildByID("bottom-menu"));
auto btn = CCMenuItemSpriteExtra::create(
thisDogFuckedUpBrah, this, nullptr
);
bottomMenu->addChild(btn);
bottomMenu->updateLayout();
}
};
// MenuLayer::init is hooked in ../hooks/MenuLayer.cpp