// // ColorSelectPopup::updateCopyColor from 0x10072b2e0 to 0x10072b3bb (219 bytes) // // 4 xrefs: // > ColorSelectPopup::onToggleHSVMode @ 0x1007282a2 // > ColorSelectPopup::onUpdateCustomColor @ 0x100728769 // > ColorSelectPopup::textChanged @ 0x10072b02c // > ColorSelectPopup::colorSelectClosed @ 0x10072b6b2 // // 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::updateCopyColor(ColorSelectPopup *a1) { EffectGameObject *m_gameObject; // rdi int m_copyColorID; // r14d int TargetColorIndex; // eax int v5; // ecx cocos2d::CCArray *m_gameObjects; // rdi unsigned int v7; // r14d EffectGameObject *v8; // r15 int v9; // r13d ColorAction *m_colorAction; // rax int v11; // edx m_gameObject = a1->m_gameObject; if ( m_gameObject ) { m_copyColorID = a1->m_copyColorID; TargetColorIndex = EffectGameObject::getTargetColorIndex(m_gameObject); v5 = 0; if ( TargetColorIndex != m_copyColorID ) v5 = m_copyColorID; a1->m_gameObject->m_copyColorID = v5; } else { m_gameObjects = a1->m_gameObjects; if ( m_gameObjects ) { if ( (unsigned int)sub_100720070((__int64)m_gameObjects) ) { v7 = 0; do { v8 = (EffectGameObject *)sub_1007200C0((__int64)a1->m_gameObjects, v7); v9 = a1->m_copyColorID; if ( EffectGameObject::getTargetColorIndex(v8) == v9 ) v9 = 0; v8->m_copyColorID = v9; ++v7; } while ( v7 < (unsigned int)sub_100720070((__int64)a1->m_gameObjects) ); } } else { m_colorAction = a1->m_colorAction; if ( m_colorAction ) { v11 = 0; if ( m_colorAction->m_colorID != a1->m_copyColorID ) v11 = a1->m_copyColorID; m_colorAction->m_copyID = v11; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source