// // CustomizeObjectLayer::updateSelected from 0x1400a9d70 to 0x1400a9ed5 (357 bytes) // // 8 xrefs: // > CustomizeObjectLayer::colorSetupClosed @ 0x1400a83c0 // > CustomizeObjectLayer::onNextColorChannel @ 0x1400a8f6e // > CustomizeObjectLayer::onUpdateCustomColor @ 0x1400a960a // > CustomizeObjectLayer::textChanged @ 0x1400a9925 // > CustomizeObjectLayer::onSelectColor @ 0x1400a9cdb // > @ 0x14066abe0 // > @ 0x14066abf0 // > @ 0x1406c78a8 // // 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 CustomizeObjectLayer::updateSelected(CustomizeObjectLayer *a1, int a2) { GameObject *m_targetObject; // rcx GJSpriteColor *RelativeSpriteColor; // rax GJSpriteColor *v6; // rcx int v7; // ebx int m_defaultColorID; // eax cocos2d::CCArray *m_targetObjects; // rcx unsigned int v10; // ebp GameObject *v11; // rax GJSpriteColor *v12; // rax __int64 v13; // r10 GJSpriteColor *v14; // r9 int v15; // ecx int v16; // eax m_targetObject = a1->m_targetObject; if ( m_targetObject ) { RelativeSpriteColor = GameObject::getRelativeSpriteColor(m_targetObject, a1->m_selectedMode); v6 = RelativeSpriteColor; if ( RelativeSpriteColor ) { v7 = 1101; if ( a2 ) { if ( a2 < 0 ) a2 = 0; if ( a2 <= 1101 ) v7 = a2; } else { m_defaultColorID = RelativeSpriteColor->m_defaultColorID; if ( m_defaultColorID < 0 ) m_defaultColorID = 0; if ( m_defaultColorID <= 1101 ) v7 = m_defaultColorID; v6->m_defaultColorID = v7; v7 = 0; } v6->m_colorID = v7; a1->m_targetObject->m_updateParents = 1; } } else { m_targetObjects = a1->m_targetObjects; if ( m_targetObjects ) { v10 = 0; if ( cocos2d::CCArray::count(m_targetObjects) ) { do { v11 = (GameObject *)cocos2d::CCArray::objectAtIndex(a1->m_targetObjects, v10); v12 = GameObject::getRelativeSpriteColor(v11, a1->m_selectedMode); v14 = v12; if ( v12 ) { if ( a2 ) { v15 = a2; if ( a2 < 0 ) v15 = 0; if ( v15 <= 1101 ) { if ( v15 < 0 ) v15 = 1011; } else { v15 = 1101; } } else { v16 = v12->m_defaultColorID; if ( v16 < 0 ) v16 = 0; if ( v16 > 1101 ) v16 = 1101; v14->m_defaultColorID = v16; v15 = 0; } v14->m_colorID = v15; *(_BYTE *)(v13 + 1156) = 1; } ++v10; } while ( v10 < cocos2d::CCArray::count(a1->m_targetObjects) ); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source