fix blue view spacing

This commit is contained in:
altalk23 2023-09-12 18:46:14 +03:00
parent dd806e0532
commit ac74e056cf

View file

@ -311,9 +311,6 @@ bool ModCell::init(
auto viewSpr = ButtonSprite::create("View", "bigFont.fnt", "GJ_button_01.png", .8f);
viewSpr->setScale(.65f);
auto viewBtn = CCMenuItemSpriteExtra::create(viewSpr, this, menu_selector(ModCell::onInfo));
m_menu->addChild(viewBtn);
if (m_mod->isEnabled()) {
auto latestIndexItem = Index::get()->getMajorItem(
mod->getMetadata().getID()
@ -335,6 +332,9 @@ bool ModCell::init(
}
}
}
auto viewBtn = CCMenuItemSpriteExtra::create(viewSpr, this, menu_selector(ModCell::onInfo));
m_menu->addChild(viewBtn);
}
this->updateState();