// // ColorSelectPopup::onToggleTintMode from 0x1007281d0 to 0x10072827b (171 bytes) // // 1 xrefs: // > ColorSelectPopup::init @ 0x100725bff // // 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::onToggleTintMode(ColorSelectPopup *a1, cocos2d::CCObject *a2) { int m_blending; // eax EffectGameObject *m_gameObject; // rcx cocos2d::CCArray *m_gameObjects; // rdi unsigned int v6; // r14d ColorAction *m_colorAction; // rcx m_blending = a1->m_blending; a1->m_blending = m_blending != 1; m_gameObject = a1->m_gameObject; if ( m_gameObject ) { m_gameObject->m_usesBlending = m_blending != 1; } else { m_gameObjects = a1->m_gameObjects; if ( m_gameObjects ) { if ( (unsigned int)sub_100720070((__int64)m_gameObjects) ) { v6 = 0; do *(_BYTE *)(sub_1007200C0((__int64)a1->m_gameObjects, v6++) + 1487) = a1->m_blending != 0; while ( v6 < (unsigned int)sub_100720070((__int64)a1->m_gameObjects) ); } } else { m_colorAction = a1->m_colorAction; if ( m_colorAction ) m_colorAction->m_blending = m_blending != 1; } } }