// // ColorSelectPopup::onUpdateCopyColor from 0x100728440 to 0x100728511 (209 bytes) // // 1 xrefs: // > ColorSelectPopup::init @ 0x100726747 // // 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::onUpdateCopyColor(ColorSelectPopup *a1, cocos2d::CCObject *a2) { int v3; // eax int v4; // ecx int v5; // eax int v6; // eax EffectGameObject *m_gameObject; // rcx cocos2d::CCArray *m_gameObjects; // rdi unsigned int v9; // r14d if ( a1->m_colorID >= 1000 ) a1->m_colorID = 0; v3 = a1->m_colorID + 2 * (((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 1) - 1; v4 = 0; if ( v3 > 0 ) v4 = v3; v5 = 999; if ( v4 < 999 ) v5 = v4; v6 = (v5 == 0) + v5; a1->m_colorID = v6; m_gameObject = a1->m_gameObject; if ( m_gameObject ) { m_gameObject->m_targetColor = v6; } else { m_gameObjects = a1->m_gameObjects; if ( m_gameObjects && (unsigned int)sub_100720070((__int64)m_gameObjects) ) { v9 = 0; do *(_DWORD *)(sub_1007200C0((__int64)a1->m_gameObjects, v9++) + 1024) = a1->m_colorID; while ( v9 < (unsigned int)sub_100720070((__int64)a1->m_gameObjects) ); } } SetupTriggerPopup::updateEditorLabel(a1); ColorSelectPopup::updateTextInputLabel(a1); }