// // SetupGradientPopup::onBlending from 0x140422010 to 0x1404220d0 (192 bytes) // // 2 xrefs: // > SetupGradientPopup::init @ 0x140421714 // > @ 0x1406d95e4 // // 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 SetupGradientPopup::onBlending(SetupGradientPopup *a1, cocos2d::CCObject *a2) { int v3; // eax int m_blendingMode; // edx int v5; // r8d int v6; // edx unsigned int v7; // ebx int v8; // eax EffectGameObject *m_gameObject; // rcx struct cocos2d::CCObject *v10; // rax v3 = a2->getTag(a2); m_blendingMode = a1->m_blendingMode; v5 = m_blendingMode - 1; v6 = m_blendingMode + 1; if ( v3 != 1 ) v6 = v5; v7 = 0; v8 = 0; if ( v6 >= 0 ) v8 = v6; if ( v8 > 3 ) v8 = 3; m_gameObject = a1->m_gameObject; a1->m_blendingMode = v8; if ( m_gameObject ) { HIDWORD(m_gameObject[1].EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable) = v8; SetupGradientPopup::updateBlendingLabel(a1); } else { if ( cocos2d::CCArray::count(a1->m_gameObjects) ) { do { v10 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v7++); v10[33].m_nLuaID = a1->m_blendingMode; } while ( v7 < cocos2d::CCArray::count(a1->m_gameObjects) ); } SetupGradientPopup::updateBlendingLabel(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source