// // ColorSelectPopup::updateCustomColorIdx from 0x100420490 to 0x100420508 (120 bytes) // // 3 xrefs: // > ColorSelectPopup::onUpdateCopyColor @ 0x10041f0a8 // > ColorSelectPopup::textChanged @ 0x1004206ec // > ColorSelectPopup::colorSelectClosed @ 0x1004209cc // // 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::updateCustomColorIdx(ColorSelectPopup *a1) { int m_colorID; // w8 EffectGameObject *m_gameObject; // x9 cocos2d::CCArray *m_gameObjects; // x0 unsigned int v5; // w20 m_colorID = a1->m_colorID; if ( m_colorID <= 1 ) m_colorID = 1; a1->m_colorID = m_colorID; m_gameObject = a1->m_gameObject; if ( m_gameObject ) { m_gameObject->m_targetColor = m_colorID; } else { m_gameObjects = a1->m_gameObjects; if ( m_gameObjects && (unsigned int)sub_10024A36C((__int64)m_gameObjects) ) { v5 = 0; do *(_DWORD *)(sub_10024A388((__int64)a1->m_gameObjects, v5++) + 1024) = a1->m_colorID; while ( v5 < (unsigned int)sub_10024A36C((__int64)a1->m_gameObjects) ); } } }