// // CreateParticlePopup::onPage from 0x9c4d14 to 0x9c4f0c (504 bytes) // // 4 xrefs: // > CreateParticlePopup::init @ 0x9c5c94 // > @ 0xaaf10 // > CreateParticlePopup::init @ 0x9c5fb8 // > @ 0x122deb8 // // 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 CreateParticlePopup::onPage(CreateParticlePopup *a1, cocos2d::CCObject *a2) { int i; // w19 cocos2d::CCNode *Page; // x0 CCMenuItemSpriteExtra *PageButton; // x0 ButtonSprite *v6; // x0 const char *v7; // x1 cocos2d::CCDictionary *PageInputNodes; // x0 cocos2d::CCDictElement *m_pElements; // x0 cocos2d::CCDictElement *j; // x22 cocos2d::CCObject *m_pObject; // x20 cocos2d::CCDictionary *PageSliders; // x0 cocos2d::CCDictElement *v13; // x0 cocos2d::CCDictElement *k; // x20 unsigned int v15; // w20 cocos2d::CCArray *PageContainer; // x22 __int64 v17; // x0 bool v18; // cf unsigned int v19; // w1 bool v20; // w1 if ( a2 ) a1->m_page = a2->getTag(a2); for ( i = 1; i != 5; ++i ) { Page = CreateParticlePopup::getPage(a1, i); Page->setVisible(Page, a1->m_page == i); PageButton = CreateParticlePopup::getPageButton(a1, i); v6 = (ButtonSprite *)PageButton->getNormalImage(PageButton); if ( a1->m_page == i ) v7 = "GJ_button_01.png"; else v7 = "GJ_button_04.png"; ButtonSprite::updateBGImage(v6, v7); PageInputNodes = CreateParticlePopup::getPageInputNodes(a1, i); if ( PageInputNodes ) { m_pElements = PageInputNodes->m_pElements; if ( m_pElements ) { for ( j = (cocos2d::CCDictElement *)m_pElements->hh.next; ; j = (cocos2d::CCDictElement *)j->hh.next ) { m_pObject = m_pElements->m_pObject; m_pObject->__vftable[12].isEqual(m_pObject, (const cocos2d::CCObject *)(a1->m_page == i)); if ( a1->m_page != i ) m_pObject->__vftable[14].isEqual(m_pObject, nullptr); if ( !j ) break; m_pElements = j; } } } PageSliders = CreateParticlePopup::getPageSliders(a1, i); if ( PageSliders ) { v13 = PageSliders->m_pElements; if ( v13 ) { for ( k = (cocos2d::CCDictElement *)v13->hh.next; ; k = (cocos2d::CCDictElement *)k->hh.next ) { v13->m_pObject->__vftable[12].isEqual(v13->m_pObject, (const cocos2d::CCObject *)(a1->m_page == i)); v13 = k; if ( !k ) break; } } } v15 = 0; PageContainer = CreateParticlePopup::getPageContainer(a1, i); while ( 1 ) { v18 = v15 >= (unsigned int)cocos2d::CCArray::count(PageContainer); v19 = v15++; if ( v18 ) break; v17 = cocos2d::CCArray::objectAtIndex(PageContainer, v19); (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v17 + 328LL))(v17, a1->m_page == i); } } if ( a1->m_page == 1 ) { v20 = a1->m_particle->getEmitterMode(a1->m_particle) == 0; CreateParticlePopup::toggleGravityMode(a1, v20); } }