mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-29 14:19:51 -04:00
fix SimpleAxisLayout scaling of buttons
This commit is contained in:
parent
90bb412b6a
commit
e63374c11b
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue