// // SetupShakePopup::sliderChanged from 0x100664b20 to 0x100664d08 (488 bytes) // // 1 xrefs: // > SetupShakePopup::init @ 0x1006648e2 // // 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 SetupShakePopup::sliderChanged(SetupShakePopup *a1, cocos2d::CCObject *a2) { EffectGameObject *m_gameObject; // rax EffectGameObject *v3; // rax EffectGameObject *v4; // rax unsigned int v5; // r14d unsigned int v6; // r14d unsigned int v7; // r14d float Value; // [rsp+Ch] [rbp-14h] Value = SliderThumb::getValue((SliderThumb *)a2); if ( ((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 3 ) { a1->m_duration = Value + Value; m_gameObject = a1->m_gameObject; if ( m_gameObject ) { m_gameObject->m_duration = Value + Value; } else if ( (unsigned int)sub_100720070(a1->m_gameObjects) ) { v5 = 0; do *(float *)(sub_1007200C0(a1->m_gameObjects, v5++) + 1452) = a1->m_duration; while ( v5 < (unsigned int)sub_100720070(a1->m_gameObjects) ); } SetupShakePopup::updateDurLabel(a1, 1); } else if ( ((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 7 ) { a1->m_interval = Value * 0.1; v3 = a1->m_gameObject; if ( v3 ) { v3->m_shakeInterval = Value * 0.1; } else if ( (unsigned int)sub_100720070(a1->m_gameObjects) ) { v6 = 0; do *(float *)(sub_1007200C0(a1->m_gameObjects, v6++) + 1480) = a1->m_interval; while ( v6 < (unsigned int)sub_100720070(a1->m_gameObjects) ); } SetupShakePopup::updateIntervalLabel(a1, 1); } else { a1->m_strength = Value * 5.0; v4 = a1->m_gameObject; if ( v4 ) { v4->m_shakeStrength = Value * 5.0; } else if ( (unsigned int)sub_100720070(a1->m_gameObjects) ) { v7 = 0; do *(float *)(sub_1007200C0(a1->m_gameObjects, v7++) + 1476) = a1->m_strength; while ( v7 < (unsigned int)sub_100720070(a1->m_gameObjects) ); } SetupShakePopup::updateShakeLabel(a1, 1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source