//
// SelectFontLayer::onChangeFont from 0x4aa308 to 0x4aa366 (94 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void SelectFontLayer::onChangeFont(SelectFontLayer *a1, cocos2d::CCObject *a2)
{
int m_fontIndex; // r4
int v4; // r4
int v5; // r4
cocos2d::CCLabelBMFont *m_fontLabel; // r0
m_fontIndex = a1->m_editorLayer->m_levelSettings->m_fontIndex;
if ( a2->getTag(a2) == 1 )
v4 = m_fontIndex + 1;
else
v4 = m_fontIndex - 1;
v5 = v4 & ~(v4 >> 31);
if ( v5 >= 59 )
v5 = 59;
if ( v5 != a1->m_font )
{
m_fontLabel = a1->m_fontLabel;
if ( m_fontLabel )
{
m_fontLabel->removeFromParent(m_fontLabel);
a1->m_fontLabel = nullptr;
}
LevelEditorLayer::updateLevelFont(a1->m_editorLayer, v5);
SelectFontLayer::updateFontLabel(a1);
}
}