// // EditorOptionsLayer::onButtonsPerRow from 0x8c1ff4 to 0x8c2080 (140 bytes) // // 4 xrefs: // > @ 0xa08c0 // > EditorOptionsLayer::setupOptions @ 0x8db818 // > EditorOptionsLayer::setupOptions @ 0x8db8f4 // > @ 0x122d818 // // 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; // w0 int m_buttonsPerRow; // w2 int v5; // w2 cocos2d::CCLabelBMFont *m_buttonsPerRowLabel; // x20 cocos2d::CCLabelBMFont_vtbl *v7; // x3 void (__fastcall *setString)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // x19 cocos2d::CCString *v9; // x0 const char *CString; // x0 v3 = a2->getTag(a2); m_buttonsPerRow = a1->m_buttonsPerRow; if ( v3 == 1 ) v5 = m_buttonsPerRow + 1; else v5 = m_buttonsPerRow - 1; m_buttonsPerRowLabel = a1->m_buttonsPerRowLabel; if ( v5 < 6 ) v5 = 6; v7 = m_buttonsPerRowLabel->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; if ( v5 > 12 ) v5 = 12; a1->m_buttonsPerRow = v5; setString = v7->setString; v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(unsigned int)v5); CString = cocos2d::CCString::getCString(v9); setString(m_buttonsPerRowLabel, (const unsigned __int8 *)CString); }
GD Web Decomp Icon

GD Web Decomp

Raw Source