// // cocos2d::CCSprite::setColor from 0x10028a7a0 to 0x10028a8f6 (342 bytes) // // 79 xrefs: // > AnimatedGameObject::setObjectColor @ 0x1001b748d // > GJChestSprite::setColor @ 0x10021f91c // > sub_10028A900 @ 0x10028a90c // > CCAnimatedSprite::setColor @ 0x1003510bc // > sub_1003510D0 @ 0x100351123 // > CCPartAnimSprite::setColor @ 0x10037545c // > PlayerObject::setColor @ 0x100419ded // > sub_100419E50 @ 0x100419e64 // > @ 0x1008b4170 // > @ 0x1008b8158 // > @ 0x1008c4418 // > @ 0x1008c4c50 // > @ 0x1008c5448 // > @ 0x1008c5c40 // > @ 0x1008c6438 // > @ 0x1008c6c30 // > @ 0x1008c7428 // > @ 0x1008c7c20 // > @ 0x1008c8408 // > @ 0x1008c8c18 // > @ 0x1008c9490 // > @ 0x1008c9ca0 // > @ 0x1008ca4b0 // > @ 0x1008cacc0 // > @ 0x1008cb4d0 // > @ 0x1008cbce0 // > @ 0x1008cc4f0 // > @ 0x1008ccd00 // > @ 0x1008cd510 // > @ 0x1008cdd20 // > @ 0x1008ce548 // > @ 0x1008ceda0 // > @ 0x1008cf5c8 // > @ 0x1008cfdf0 // > @ 0x1008d0618 // > @ 0x1008d0e40 // > @ 0x1008d1650 // > @ 0x1008d1e60 // > @ 0x1008d2670 // > @ 0x1008d2e80 // > @ 0x1008d3690 // > @ 0x1008d3ea0 // > @ 0x1008d46b0 // > @ 0x1008d4ec0 // > @ 0x1008d56d0 // > @ 0x1008d5ee0 // > @ 0x1008d66f0 // > @ 0x1008d6f00 // > @ 0x1008d7710 // > @ 0x1008d7f20 // > @ 0x1008d8730 // > @ 0x1008d8f40 // > @ 0x1008dd520 // > @ 0x1008f06c8 // > @ 0x1008f3a58 // > @ 0x100904e50 // > @ 0x100909a28 // > @ 0x10090ba60 // > @ 0x100913508 // > @ 0x10091c658 // > @ 0x10091dab0 // > @ 0x10091e050 // > @ 0x1009236e8 // > @ 0x100928080 // > @ 0x10092add8 // > @ 0x1009342d8 // > @ 0x10093c978 // > @ 0x10093cf28 // > @ 0x1009421b8 // > @ 0x10094e8d0 // > @ 0x100971798 // > @ 0x100971f80 // > @ 0x100972790 // > @ 0x1009749f8 // > @ 0x10097a558 // > @ 0x10097ab10 // > @ 0x1009855e0 // > @ 0x1009919c8 // > @ 0x1009961f0 // // 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::setColor(cocos2d::CCSprite *a1, const cocos2d::ccColor3B *a2) { GLubyte displayedOpacity; // al int v3; // ecx int v4; // edx float v5; // xmm0_4 unsigned int m_uAtlasIndex; // edx if ( a1->_realColor.r != a2->r || a1->_realColor.g != a2->g || a1->_realColor.b != a2->b ) { cocos2d::CCNodeRGBA::setColor(a1, a2); displayedOpacity = a1->_displayedOpacity; LOBYTE(v3) = a1->_displayedColor.r; LOBYTE(v4) = a1->_displayedColor.g; LOBYTE(a2) = a1->_displayedColor.b; if ( a1->m_bOpacityModifyRGB ) { v5 = (float)displayedOpacity / 255.0; v3 = (int)(float)((float)(unsigned __int8)v3 * v5); v4 = (int)(float)((float)(unsigned __int8)v4 * v5); LODWORD(a2) = (int)(float)((float)(unsigned __int8)a2 * v5); } a1->m_sQuad.bl.colors.r = v3; a1->m_sQuad.bl.colors.g = v4; a1->m_sQuad.bl.colors.b = (unsigned __int8)a2; a1->m_sQuad.bl.colors.a = displayedOpacity; a1->m_sQuad.br.colors.r = v3; a1->m_sQuad.br.colors.g = v4; a1->m_sQuad.br.colors.b = (unsigned __int8)a2; a1->m_sQuad.br.colors.a = displayedOpacity; a1->m_sQuad.tl.colors.r = v3; a1->m_sQuad.tl.colors.g = v4; a1->m_sQuad.tl.colors.b = (unsigned __int8)a2; a1->m_sQuad.tl.colors.a = displayedOpacity; a1->m_sQuad.tr.colors.r = v3; a1->m_sQuad.tr.colors.g = v4; a1->m_sQuad.tr.colors.b = (unsigned __int8)a2; 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