// // CreateParticlePopup::valueForParticleValue from 0x1002d08e0 to 0x1002d0cc8 (1000 bytes) // // 2 xrefs: // > CreateParticlePopup::updateInputNodeStringForType @ 0x1002cf5fc // > CreateParticlePopup::updateSliderForType @ 0x1002cf81c // // 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 // float __fastcall CreateParticlePopup::valueForParticleValue(CreateParticlePopup *a1, gjParticleValue a2) { __n128 v2; // q0 float v3; // s0 __int64 v4; // x0 __int64 v5; // x0 __int64 v6; // x0 unsigned __int32 *v7; // x0 v2.n128_u32[0] = 0; switch ( a2 ) { case MaxParticles: v2.n128_f32[0] = (float)((unsigned int (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))a1->m_particle->getTotalParticles)( a1->m_particle, 0.0); break; case Duration: v2.n128_f32[0] = ((float (__fastcall *)(__n128))a1->m_particle->getDuration)(v2); break; case Lifetime: v2.n128_f32[0] = ((float (__fastcall *)(__n128))a1->m_particle->getLife)(v2); break; case LifetimeVar: v2.n128_f32[0] = ((float (__fastcall *)(__n128))a1->m_particle->getLifeVar)(v2); break; case Emission: v2.n128_f32[0] = ((float (__fastcall *)(__n128))a1->m_particle->getEmissionRate)(v2); break; case Angle: v3 = ((float (__fastcall *)(__n128))a1->m_particle->getAngle)(v2); goto LABEL_28; case AngleVar: v2.n128_f32[0] = ((float (__fastcall *)(__n128))a1->m_particle->getAngleVar)(v2); break; case Speed: v2.n128_f32[0] = ((float (__fastcall *)(__n128))a1->m_particle->getSpeed)(v2); break; case SpeedVar: v2.n128_f32[0] = ((float (__fastcall *)(__n128))a1->m_particle->getSpeedVar)(v2); break; case PosVarX: v7 = (unsigned __int32 *)((__int64 (__fastcall *)(__n128))a1->m_particle->getPosVar)(v2); goto LABEL_58; case PosVarY: v6 = ((__int64 (__fastcall *)(__n128))a1->m_particle->getPosVar)(v2); goto LABEL_61; case GravityX: v7 = (unsigned __int32 *)((__int64 (__fastcall *)(__n128))a1->m_particle->getGravity)(v2); goto LABEL_58; case GravityY: v6 = ((__int64 (__fastcall *)(__n128))a1->m_particle->getGravity)(v2); goto LABEL_61; case AccelRad: v2.n128_f32[0] = ((float (__fastcall *)(__n128))a1->m_particle->getRadialAccel)(v2); break; case AccelRadVar: v2.n128_f32[0] = ((float (__fastcall *)(__n128))a1->m_particle->getRadialAccelVar)(v2); break; case AccelTan: v2.n128_f32[0] = ((float (__fastcall *)(__n128))a1->m_particle->getTangentialAccel)(v2); break; case AccelTanVar: v2.n128_f32[0] = ((float (__fastcall *)(__n128))a1->m_particle->getTangentialAccelVar)(v2); break; case StartSize: v2.n128_f32[0] = ((float (__fastcall *)(__n128))a1->m_particle->getStartSize)(v2); break; case StartSizeVar: v2.n128_f32[0] = ((float (__fastcall *)(__n128))a1->m_particle->getStartSizeVar)(v2); break; case EndSize: v2.n128_f32[0] = ((float (__fastcall *)(__n128))a1->m_particle->getEndSize)(v2); break; case EndSizeVar: v2.n128_f32[0] = ((float (__fastcall *)(__n128))a1->m_particle->getEndSizeVar)(v2); break; case StartSpin: v2.n128_f32[0] = ((float (__fastcall *)(__n128))a1->m_particle->getStartSpin)(v2); break; case StartSpinVar: v2.n128_f32[0] = ((float (__fastcall *)(__n128))a1->m_particle->getStartSpinVar)(v2); break; case EndSpin: v2.n128_f32[0] = ((float (__fastcall *)(__n128))a1->m_particle->getEndSpin)(v2); break; case EndSpinVar: v2.n128_f32[0] = ((float (__fastcall *)(__n128))a1->m_particle->getEndSpinVar)(v2); break; case StartR: v7 = (unsigned __int32 *)((__int64 (__fastcall *)(__n128))a1->m_particle->getStartColor)(v2); goto LABEL_58; case StartRVar: v7 = (unsigned __int32 *)((__int64 (__fastcall *)(__n128))a1->m_particle->getStartColorVar)(v2); goto LABEL_58; case StartG: v6 = ((__int64 (__fastcall *)(__n128))a1->m_particle->getStartColor)(v2); goto LABEL_61; case StartGVar: v6 = ((__int64 (__fastcall *)(__n128))a1->m_particle->getStartColorVar)(v2); goto LABEL_61; case StartB: v5 = ((__int64 (__fastcall *)(__n128))a1->m_particle->getStartColor)(v2); goto LABEL_44; case StartBVar: v5 = ((__int64 (__fastcall *)(__n128))a1->m_particle->getStartColorVar)(v2); goto LABEL_44; case StartA: v4 = ((__int64 (__fastcall *)(__n128))a1->m_particle->getStartColor)(v2); goto LABEL_63; case StartAVar: v4 = ((__int64 (__fastcall *)(__n128))a1->m_particle->getStartColorVar)(v2); goto LABEL_63; case EndR: v7 = (unsigned __int32 *)((__int64 (__fastcall *)(__n128))a1->m_particle->getEndColor)(v2); goto LABEL_58; case EndRVar: v7 = (unsigned __int32 *)((__int64 (__fastcall *)(__n128))a1->m_particle->getEndColorVar)(v2); LABEL_58: v2.n128_u32[0] = *v7; break; case EndG: v6 = ((__int64 (__fastcall *)(__n128))a1->m_particle->getEndColor)(v2); goto LABEL_61; case EndGVar: v6 = ((__int64 (__fastcall *)(__n128))a1->m_particle->getEndColorVar)(v2); LABEL_61: v2.n128_u32[0] = *(_DWORD *)(v6 + 4); break; case EndB: v5 = ((__int64 (__fastcall *)(__n128))a1->m_particle->getEndColor)(v2); goto LABEL_44; case EndBVar: v5 = ((__int64 (__fastcall *)(__n128))a1->m_particle->getEndColorVar)(v2); LABEL_44: v2.n128_u32[0] = *(_DWORD *)(v5 + 8); break; case EndA: v4 = ((__int64 (__fastcall *)(__n128))a1->m_particle->getEndColor)(v2); goto LABEL_63; case EndAVar: v4 = ((__int64 (__fastcall *)(__n128))a1->m_particle->getEndColorVar)(v2); LABEL_63: v2.n128_u32[0] = *(_DWORD *)(v4 + 12); break; case FadeIn: v2.n128_u32[0] = LODWORD(a1->m_particle->m_fFadeInTime); break; case FadeInVar: v2.n128_u32[0] = LODWORD(a1->m_particle->m_fFadeInTimeVar); break; case FadeOut: v2.n128_u32[0] = LODWORD(a1->m_particle->m_fFadeOutTime); break; case FadeOutVar: v2.n128_u32[0] = LODWORD(a1->m_particle->m_fFadeOutTimeVar); break; case FrictionP: v2.n128_u32[0] = LODWORD(a1->m_particle->m_fFrictionPos); break; case FrictionPVar: v2.n128_u32[0] = LODWORD(a1->m_particle->m_fFrictionPosVar); break; case Respawn: v2.n128_u32[0] = LODWORD(a1->m_particle->m_fRespawn); break; case RespawnVar: v2.n128_u32[0] = LODWORD(a1->m_particle->m_fRespawnVar); break; case StartRad: v2.n128_f32[0] = ((float (__fastcall *)(__n128))a1->m_particle->getStartRadius)(v2); break; case StartRadVar: v2.n128_f32[0] = ((float (__fastcall *)(__n128))a1->m_particle->getStartRadiusVar)(v2); break; case EndRad: v2.n128_f32[0] = ((float (__fastcall *)(__n128))a1->m_particle->getEndRadius)(v2); break; case EndRadVar: v2.n128_f32[0] = ((float (__fastcall *)(__n128))a1->m_particle->getEndRadiusVar)(v2); break; case RotSec: v3 = ((float (__fastcall *)(__n128))a1->m_particle->getRotatePerSecond)(v2); LABEL_28: v2.n128_f32[0] = -v3; break; case RotSecVar: v2.n128_f32[0] = ((float (__fastcall *)(__n128))a1->m_particle->getRotatePerSecondVar)(v2); break; case FrictionS: v2.n128_u32[0] = LODWORD(a1->m_particle->m_fFrictionSize); break; case FrictionSVar: v2.n128_u32[0] = LODWORD(a1->m_particle->m_fFrictionSizeVar); break; case FrictionR: v2.n128_u32[0] = LODWORD(a1->m_particle->m_fFrictionRot); break; case FrictionRVar: v2.n128_u32[0] = LODWORD(a1->m_particle->m_fFrictionRotVar); break; default: break; } return v2.n128_f32[0]; }