// // EditorOptionsLayer::onButtonsPerRow from 0x140291970 to 0x1402919fa (138 bytes) // // 3 xrefs: // > EditorOptionsLayer::setupOptions @ 0x140291570 // > EditorOptionsLayer::setupOptions @ 0x140291629 // > @ 0x1406d19b8 // // 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 EditorOptionsLayer::onButtonsPerRow(EditorOptionsLayer *a1, cocos2d::CCObject *a2) { int v3; // eax int m_buttonsPerRow; // edx int v5; // r8d int v6; // edx cocos2d::CCLabelBMFont *m_buttonsPerRowLabel; // rax cocos2d::CCLabelProtocol_vtbl *v8; // rbx cocos2d::CCString *v9; // rax const char *CString; // rax v3 = a2->getTag(a2); m_buttonsPerRow = a1->m_buttonsPerRow; v5 = m_buttonsPerRow - 1; v6 = m_buttonsPerRow + 1; if ( v3 != 1 ) v6 = v5; if ( v6 < 6 ) { v6 = 6; } else if ( v6 >= 12 ) { v6 = 12; } m_buttonsPerRowLabel = a1->m_buttonsPerRowLabel; a1->m_buttonsPerRow = v6; v8 = m_buttonsPerRowLabel->cocos2d::CCLabelProtocol::__vftable; v9 = cocos2d::CCString::createWithFormat("%i", v6); CString = cocos2d::CCString::getCString(v9); v8->setString(&a1->m_buttonsPerRowLabel->cocos2d::CCLabelProtocol, CString); }