//
// CreateParticlePopup::onMode from 0x1002cdcf8 to 0x1002cddb0 (184 bytes)
//
// 1 xrefs:
// > CreateParticlePopup::init @ 0x1002cad10
//
// 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 CreateParticlePopup::onMode(CreateParticlePopup *a1, cocos2d::CCObject *a2)
{
int v3; // w0
int v4; // w8
ButtonSprite *v5; // x0
const char *v6; // x1
ButtonSprite *v7; // x0
const char *v8; // x1
ButtonSprite *v9; // x0
const char *v10; // x1
v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
if ( v3 == a1->m_selectedMode )
v4 = 0;
else
v4 = v3;
a1->m_selectedMode = v4;
a1->m_previewLayer->m_particleMode = v4;
v5 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_mode1Button->getNormalImage)(a1->m_mode1Button);
if ( a1->m_selectedMode == 1 )
v6 = "GJ_button_01.png";
else
v6 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v5, v6);
v7 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_mode2Button->getNormalImage)(a1->m_mode2Button);
if ( a1->m_selectedMode == 2 )
v8 = "GJ_button_01.png";
else
v8 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v7, v8);
v9 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_mode3Button->getNormalImage)(a1->m_mode3Button);
if ( a1->m_selectedMode == 3 )
v10 = "GJ_button_01.png";
else
v10 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v9, v10);
}