fix SimpleAxisLayout scaling of buttons

This commit is contained in:
matcool 2025-03-12 13:54:30 -03:00
parent 90bb412b6a
commit e63374c11b

View file

@ -161,6 +161,10 @@ public:
}
void setScale(CCNode* on, float scale) {
// CCMenuItemSpriteExtra is quirky af
if (auto btn = typeinfo_cast<CCMenuItemSpriteExtra*>(on)) {
btn->m_baseScale = scale;
}
on->setScale(scale);
}