// // ColorSelectPopup::colorValueChanged from 0x100729310 to 0x100729431 (289 bytes) // // 2 xrefs: // > sub_100729910 @ 0x10072991c // > @ 0x10098ae80 // // 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 ColorSelectPopup::colorValueChanged(ColorSelectPopup *a1, cocos2d::ccColor3B a2) { cocos2d::CCSprite *m_currentColorSprite; // rdi cocos2d::extension::CCControlColourPicker *m_colorPicker; // rax __int16 v5; // cx cocos2d::ccColor3B *p_m_currentColor; // r14 EffectGameObject *m_gameObject; // rax __int16 v8; // cx cocos2d::CCArray *m_gameObjects; // rdi unsigned int v10; // r14d __int64 v11; // rax __int16 v12; // cx ColorAction *m_colorAction; // rax __int16 v14; // cx m_currentColorSprite = a1->m_currentColorSprite; if ( m_currentColorSprite ) { m_colorPicker = a1->m_colorPicker; v5 = *(_WORD *)&m_colorPicker->m_rgb.r; p_m_currentColor = &a1->m_currentColor; 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_initializing ) { m_gameObject = a1->m_gameObject; if ( m_gameObject ) { v8 = *(_WORD *)&p_m_currentColor->r; m_gameObject->m_triggerTargetColor.b = a1->m_currentColor.b; *(_WORD *)&m_gameObject->m_triggerTargetColor.r = v8; } else { m_gameObjects = a1->m_gameObjects; if ( m_gameObjects ) { if ( (unsigned int)sub_100720070((__int64)m_gameObjects) ) { v10 = 0; do { v11 = sub_1007200C0((__int64)a1->m_gameObjects, v10); v12 = *(_WORD *)&a1->m_currentColor.r; *(_BYTE *)(v11 + 1450) = a1->m_currentColor.b; *(_WORD *)(v11 + 1448) = v12; ++v10; } while ( v10 < (unsigned int)sub_100720070((__int64)a1->m_gameObjects) ); } } else { m_colorAction = a1->m_colorAction; if ( m_colorAction ) { v14 = *(_WORD *)&p_m_currentColor->r; m_colorAction->m_fromColor.b = a1->m_currentColor.b; *(_WORD *)&m_colorAction->m_fromColor.r = v14; } } } } ColorSelectPopup::updateColorLabels(a1); } }