// // CustomizeObjectLayer::updateSelected from 0x1001f8ad0 to 0x1001f8c56 (390 bytes) // // 5 xrefs: // > CustomizeObjectLayer::onSelectColor @ 0x1001f7a38 // > CustomizeObjectLayer::onUpdateCustomColor @ 0x1001f7b1c // > CustomizeObjectLayer::onNextColorChannel @ 0x1001f816c // > CustomizeObjectLayer::colorSetupClosed @ 0x1001f89d4 // > CustomizeObjectLayer::textChanged @ 0x1001f9503 // // 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 CustomizeObjectLayer::updateSelected(CustomizeObjectLayer *a1, int a2) { GameObject *m_targetObject; // rdi GJSpriteColor *RelativeSpriteColor; // rax int v5; // edx int v6; // ecx cocos2d::CCArray *m_targetObjects; // rdi unsigned int v8; // r14d int v9; // eax int v10; // r12d unsigned int v11; // r14d GameObject *v12; // r15 GJSpriteColor *v13; // rax GameObject *v14; // r15 GJSpriteColor *v15; // rax int v16; // ecx int m_defaultColorID; // edx int v18; // esi m_targetObject = a1->m_targetObject; if ( m_targetObject ) { RelativeSpriteColor = GameObject::getRelativeSpriteColor(m_targetObject, a1->m_selectedMode); if ( RelativeSpriteColor ) { if ( a2 ) { v5 = 0; if ( a2 > 0 ) v5 = a2; v6 = 1101; if ( v5 < 1101 ) v6 = v5; } else { m_defaultColorID = RelativeSpriteColor->m_defaultColorID; v6 = 0; if ( m_defaultColorID <= 0 ) m_defaultColorID = 0; v18 = 1101; if ( m_defaultColorID < 1101 ) v18 = m_defaultColorID; RelativeSpriteColor->m_defaultColorID = v18; } RelativeSpriteColor->m_colorID = v6; a1->m_targetObject->m_updateParents = 1; } } else { m_targetObjects = a1->m_targetObjects; if ( m_targetObjects && (unsigned int)sub_100720070(m_targetObjects) ) { v8 = 0; v9 = 0; if ( a2 > 0 ) v9 = a2; v10 = 1101; if ( v9 < 1101 ) v10 = v9; if ( a2 ) { do { v12 = (GameObject *)sub_1007200C0(a1->m_targetObjects, v8); v13 = GameObject::getRelativeSpriteColor(v12, a1->m_selectedMode); if ( v13 ) { v13->m_colorID = v10; v12->m_updateParents = 1; } ++v8; } while ( v8 < (unsigned int)sub_100720070(a1->m_targetObjects) ); } else { v11 = 0; do { v14 = (GameObject *)sub_1007200C0(a1->m_targetObjects, v11); v15 = GameObject::getRelativeSpriteColor(v14, a1->m_selectedMode); if ( v15 ) { v16 = v15->m_defaultColorID; if ( v16 <= 0 ) v16 = 0; if ( v16 >= 1101 ) v16 = 1101; v15->m_defaultColorID = v16; v15->m_colorID = 0; v14->m_updateParents = 1; } ++v11; } while ( v11 < (unsigned int)sub_100720070(a1->m_targetObjects) ); } } } }