// // EditorOptionsLayer::onButtonsPerRow from 0x1002d4960 to 0x1002d49e8 (136 bytes) // // 1 xrefs: // > EditorOptionsLayer::setupOptions @ 0x1002d4530 // // 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 __fastcall EditorOptionsLayer::onButtonsPerRow(EditorOptionsLayer *a1, cocos2d::CCObject *a2) { int v3; // w9 int v4; // w8 cocos2d::CCLabelBMFont *m_buttonsPerRowLabel; // x19 cocos2d::CCString *v6; // x0 const char *CString; // x1 if ( ((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 1 ) v3 = 1; else v3 = -1; v4 = a1->m_buttonsPerRow + v3; if ( v4 <= 6 ) v4 = 6; if ( v4 >= 12 ) v4 = 12; a1->m_buttonsPerRow = v4; m_buttonsPerRowLabel = a1->m_buttonsPerRowLabel; v6 = (cocos2d::CCString *)sub_100268F4C("%i", v4); CString = cocos2d::CCString::getCString(v6); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))m_buttonsPerRowLabel->setString)( m_buttonsPerRowLabel, CString); }