// // CreateParticlePopup::colorSelectClosed from 0x1002d0358 to 0x1002d05f8 (672 bytes) // // 2 xrefs: // > sub_1002D05F8 @ 0x1002d05fc // > @ 0x1007d78c0 // // 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::colorSelectClosed(CreateParticlePopup *a1, cocos2d::CCNode *a2) { int v4; // w0 void (*setColor)(void); // x8 unsigned __int16 y_low; // [xsp+Ch] [xbp-24h] BYREF unsigned __int8 v7; // [xsp+Eh] [xbp-22h] v4 = ((__int64 (__fastcall *)(cocos2d::CCNode *))a2->getTag)(a2); y_low = LOWORD(a2[3].m_obPosition.y); v7 = BYTE2(a2[3].m_obPosition.y); if ( v4 == 2 ) { CreateParticlePopup::updateParticleValueForType(a1, (float)(unsigned __int8)y_low / 255.0, EndR, nullptr); CreateParticlePopup::updateParticleValueForType(a1, (float)HIBYTE(y_low) / 255.0, EndG, nullptr); CreateParticlePopup::updateParticleValueForType(a1, (float)v7 / 255.0, EndB, nullptr); CreateParticlePopup::updateInputNodeStringForType(a1, EndR); CreateParticlePopup::updateInputNodeStringForType(a1, EndG); CreateParticlePopup::updateInputNodeStringForType(a1, EndB); CreateParticlePopup::updateSliderForType(a1, EndR); CreateParticlePopup::updateSliderForType(a1, EndG); CreateParticlePopup::updateSliderForType(a1, EndB); setColor = (void (*)(void))a1->m_endColorSprite->setColor; } else { if ( v4 == 1 ) { CreateParticlePopup::updateParticleValueForType(a1, (float)(unsigned __int8)y_low / 255.0, StartR, nullptr); CreateParticlePopup::updateParticleValueForType(a1, (float)HIBYTE(y_low) / 255.0, StartG, nullptr); CreateParticlePopup::updateParticleValueForType(a1, (float)v7 / 255.0, StartB, nullptr); CreateParticlePopup::updateInputNodeStringForType(a1, StartR); CreateParticlePopup::updateInputNodeStringForType(a1, StartG); CreateParticlePopup::updateInputNodeStringForType(a1, StartB); CreateParticlePopup::updateSliderForType(a1, StartR); CreateParticlePopup::updateSliderForType(a1, StartG); CreateParticlePopup::updateSliderForType(a1, StartB); ((void (__fastcall *)(cocos2d::CCSprite *, unsigned __int16 *))a1->m_startColorSprite->setColor)( a1->m_startColorSprite, &y_low); a1->m_particle->m_tUniformColor = *(cocos2d::ccColor4F *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getStartColor)(a1->m_particle); a1->m_particle->m_tUniformDeltaColor = *(cocos2d::ccColor4F *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getEndColor)(a1->m_particle); return; } if ( v4 ) return; ((void (__fastcall *)(ParticlePreviewLayer *, unsigned __int16 *))a1->m_previewLayer->setColor)( a1->m_previewLayer, &y_low); ((void (__fastcall *)(cocos2d::CCSprite *, unsigned __int16 *))a1->m_particleColorSprite->setColor)( a1->m_particleColorSprite, &y_low); setColor = (void (*)(void))a1->m_perfLogLabel->setColor; } setColor(); }
GD Web Decomp Icon

GD Web Decomp

Raw Source