//
// CreateParticlePopup::onPage from 0x532210 to 0x53237e (366 bytes)
//
// 1 xrefs:
// > CreateParticlePopup::init @ 0x534e76
//
// 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; // r5
cocos2d::CCNode *Page; // r0
CCMenuItemSpriteExtra *PageButton; // r0
ButtonSprite *v6; // r0
const char *v7; // r1
cocos2d::CCDictionary *PageInputNodes; // r0
cocos2d::CCDictionary *PageSliders; // r0
cocos2d::CCDictElement *m_pElements; // r3
cocos2d::CCDictElement *next; // r6
cocos2d::CCObject *m_pObject; // r9
cocos2d::CCDictElement *v13; // r2
cocos2d::CCDictElement *v14; // r3
cocos2d::CCDictElement *v15; // r6
unsigned int v16; // r6
cocos2d::CCArray *PageContainer; // r9
cocos2d::CCDictElement *v18; // r2
int v19; // r0
unsigned int v20; // r1
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 )
next = (cocos2d::CCDictElement *)m_pElements->hh.next;
else
next = nullptr;
while ( m_pElements )
{
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 ( next )
v13 = (cocos2d::CCDictElement *)next->hh.next;
else
v13 = nullptr;
m_pElements = next;
next = v13;
}
}
PageSliders = CreateParticlePopup::getPageSliders(a1, i);
if ( PageSliders )
{
v14 = PageSliders->m_pElements;
if ( v14 )
v15 = (cocos2d::CCDictElement *)v14->hh.next;
else
v15 = nullptr;
while ( v14 )
{
v14->m_pObject->__vftable[12].isEqual(v14->m_pObject, (const cocos2d::CCObject *)(a1->m_page == i));
if ( v15 )
v18 = (cocos2d::CCDictElement *)v15->hh.next;
else
v18 = nullptr;
v14 = v15;
v15 = v18;
}
}
v16 = 0;
PageContainer = CreateParticlePopup::getPageContainer(a1, i);
while ( v16 < cocos2d::CCArray::count(PageContainer) )
{
v19 = cocos2d::CCArray::objectAtIndex(PageContainer, v16++);
(*(void (__fastcall **)(int, bool))(*(_DWORD *)v19 + 164))(v19, a1->m_page == i);
}
}
if ( a1->m_page == 1 )
{
v20 = __clz(a1->m_particle->getEmitterMode(a1->m_particle));
CreateParticlePopup::toggleGravityMode(a1, v20 >> 5);
}
}