// // cocos2d::CCSprite::setOpacity from 0x10028a540 to 0x10028a6cf (399 bytes) // // 36 xrefs: // > GJChestSprite::setOpacity @ 0x10021f99c // > sub_10021F9F0 @ 0x10021fa09 // > sub_10028A6D0 @ 0x10028a6dc // > TextArea::setOpacity @ 0x1003224bc // > sub_1003224E0 @ 0x1003224f3 // > CCAnimatedSprite::setOpacity @ 0x100351008 // > sub_100351010 @ 0x10035105f // > GJItemIcon::setOpacity @ 0x100371620 // > sub_1003716B0 @ 0x1003716c7 // > CCPartAnimSprite::setOpacity @ 0x100375520 // > sub_1003755D0 @ 0x1003755ea // > CCSpriteCOpacity::setOpacity @ 0x10048237c // > sub_1004823A0 @ 0x1004823b9 // > MultilineBitmapFont::setOpacity @ 0x100488e22 // > sub_100488E30 @ 0x100488ea9 // > GameObject::setOpacity @ 0x1005bc721 // > CCCountdown::setOpacity @ 0x1007c692c // > sub_1007C6960 @ 0x1007c6973 // > @ 0x1008b4140 // > @ 0x1008b8128 // > @ 0x1008dd4f0 // > @ 0x1008f0698 // > @ 0x1008f3a28 // > @ 0x100904e20 // > @ 0x1009099f8 // > @ 0x10091e020 // > @ 0x100928050 // > @ 0x10092ada8 // > @ 0x1009342a8 // > @ 0x10093c948 // > @ 0x10094e8a0 // > @ 0x1009749c8 // > @ 0x10097a528 // > @ 0x10097aae0 // > @ 0x1009855b0 // > @ 0x100991998 // // 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::CCSprite::setOpacity(cocos2d::CCSprite *a1, unsigned __int8 a2) { GLubyte realOpacity; // r15 GLubyte displayedOpacity; // al int v4; // ecx int v5; // edx int v6; // esi float v7; // xmm0_4 unsigned int m_uAtlasIndex; // edx realOpacity = a1->_realOpacity; if ( realOpacity != a2 ) { cocos2d::CCNodeRGBA::setOpacity(a1, a2); if ( a1->m_pobBatchNode && (realOpacity == 0 && a2 != 0 || a2 == 0 && realOpacity != 0) ) ((void (__fastcall *)(cocos2d::CCSprite *, __int64))a1->setDirty)(a1, 1); displayedOpacity = a1->_displayedOpacity; LOBYTE(v4) = a1->_displayedColor.r; LOBYTE(v5) = a1->_displayedColor.g; LOBYTE(v6) = a1->_displayedColor.b; if ( a1->m_bOpacityModifyRGB ) { v7 = (float)displayedOpacity / 255.0; v4 = (int)(float)((float)(unsigned __int8)v4 * v7); v5 = (int)(float)((float)(unsigned __int8)v5 * v7); v6 = (int)(float)((float)(unsigned __int8)v6 * v7); } a1->m_sQuad.bl.colors.r = v4; a1->m_sQuad.bl.colors.g = v5; a1->m_sQuad.bl.colors.b = v6; a1->m_sQuad.bl.colors.a = displayedOpacity; a1->m_sQuad.br.colors.r = v4; a1->m_sQuad.br.colors.g = v5; a1->m_sQuad.br.colors.b = v6; a1->m_sQuad.br.colors.a = displayedOpacity; a1->m_sQuad.tl.colors.r = v4; a1->m_sQuad.tl.colors.g = v5; a1->m_sQuad.tl.colors.b = v6; a1->m_sQuad.tl.colors.a = displayedOpacity; a1->m_sQuad.tr.colors.r = v4; a1->m_sQuad.tr.colors.g = v5; a1->m_sQuad.tr.colors.b = v6; a1->m_sQuad.tr.colors.a = displayedOpacity; if ( a1->m_pobBatchNode ) { m_uAtlasIndex = a1->m_uAtlasIndex; if ( m_uAtlasIndex == -1 ) ((void (__fastcall *)(cocos2d::CCSprite *, __int64))a1->setDirty)(a1, 1); else cocos2d::CCTextureAtlas::updateQuad(a1->m_pobTextureAtlas, &a1->m_sQuad, m_uAtlasIndex); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source