// // cocos2d::CCLayerRGBA::setOpacity from 0x100149490 to 0x100149524 (148 bytes) // // 10 xrefs: // > sub_100149524 @ 0x100149528 // > cocos2d::CCLayerColor::setOpacity @ 0x100149de0 // > sub_100149DFC @ 0x100149e10 // > @ 0x1007977e8 // > @ 0x1007ae238 // > @ 0x1007af540 // > @ 0x1007b0360 // > @ 0x1007b62e8 // > @ 0x1007bfcd0 // > @ 0x1007e6f68 // // 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 cocos2d::CCLayerRGBA::setOpacity(cocos2d::CCLayerRGBA *a1, unsigned __int8 a2) { cocos2d::CCNode *m_pParent; // x0 void *v4; // x0 void *v5; // x20 __int64 v6; // x1 a1->_realOpacity = a2; a1->_displayedOpacity = a2; if ( a1->_cascadeOpacityEnabled ) { m_pParent = a1->m_pParent; if ( m_pParent && (v4 = __dynamic_cast( m_pParent, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode, (const struct __class_type_info *)&off_100770F10, -2)) != nullptr && (v5 = v4, (*(unsigned int (__fastcall **)(void *))(*(_QWORD *)v4 + 88LL))(v4)) ) { v6 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v5 + 24LL))(v5); } else { v6 = 255; } ((void (__fastcall *)(cocos2d::CCLayerRGBA *, __int64))a1->updateDisplayedOpacity)(a1, v6); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source