// // SetupPulsePopup::colorValueChanged from 0x1003af990 to 0x1003afa90 (256 bytes) // // 2 xrefs: // > sub_1003AFF30 @ 0x1003aff3c // > @ 0x100928f68 // // 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 SetupPulsePopup::colorValueChanged(SetupPulsePopup *a1, cocos2d::ccColor3B a2) { cocos2d::CCSprite *m_currentColorSprite; // rdi cocos2d::extension::CCControlColourPicker *m_colorPicker; // rax __int16 v5; // cx EffectGameObject *m_gameObject; // rax __int16 v7; // cx cocos2d::CCArray *m_gameObjects; // rdi unsigned int v9; // r14d __int64 v10; // rax __int16 v11; // cx m_currentColorSprite = a1->m_currentColorSprite; if ( m_currentColorSprite ) { m_colorPicker = a1->m_colorPicker; v5 = *(_WORD *)&m_colorPicker->m_rgb.r; a1->m_currentColor.b = m_colorPicker->m_rgb.b; *(_WORD *)&a1->m_currentColor.r = v5; ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::ccColor3B *))m_currentColorSprite->setColor)( m_currentColorSprite, &a1->m_currentColor); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::ccColor3B *))a1->m_originalColorSprite->setColor)( a1->m_originalColorSprite, &a1->m_originalColor); if ( !a1->m_colorInitializing ) { m_gameObject = a1->m_gameObject; if ( m_gameObject ) { v7 = *(_WORD *)&a1->m_currentColor.r; m_gameObject->m_triggerTargetColor.b = a1->m_currentColor.b; *(_WORD *)&m_gameObject->m_triggerTargetColor.r = v7; } else { m_gameObjects = a1->m_gameObjects; if ( m_gameObjects && (unsigned int)sub_100720070(m_gameObjects) ) { v9 = 0; do { v10 = sub_1007200C0(a1->m_gameObjects, v9); v11 = *(_WORD *)&a1->m_currentColor.r; *(_BYTE *)(v10 + 1450) = a1->m_currentColor.b; *(_WORD *)(v10 + 1448) = v11; ++v9; } while ( v9 < (unsigned int)sub_100720070(a1->m_gameObjects) ); } } } SetupPulsePopup::updateColorLabels(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source