// // cocos2d::CCSprite::setOpacity from 0x7f2154 to 0x7f21b2 (94 bytes) // // 10 xrefs: // > CCAnimatedSprite::setOpacity @ 0x3c3f14 // > CCCountdown::setOpacity @ 0x3c54b0 // > CCPartAnimSprite::setOpacity @ 0x3c709c // > MultilineBitmapFont::setOpacity @ 0x3d6874 // > TextArea::setOpacity @ 0x3da152 // > CCSpriteCOpacity::setOpacity @ 0x3e659e // > GameObject::setOpacity @ 0x44d100 // > GJItemIcon::setOpacity @ 0x510fe2 // > GJChestSprite::setOpacity @ 0x61a1b2 // > `non-virtual thunk to'cocos2d::CCSprite::setOpacity @ 0x7f21b6 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:01:05 +0000 // int __fastcall cocos2d::CCSprite::setOpacity(int this, int a2) { cocos2d::CCSprite *v2; // r4 unsigned int v4; // r3 float v5; // s16 v2 = (cocos2d::CCSprite *)this; v4 = *(unsigned __int8 *)(this + 269); if ( v4 != a2 ) { v5 = (float)v4; cocos2d::CCNodeRGBA::setOpacity(this, a2); if ( *((_DWORD *)v2 + 73) ) { if ( v5 == 0.0 ) { if ( a2 ) { LABEL_8: (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v2 + 600))(v2, 1); return cocos2d::CCSprite::updateColor(v2); } } else if ( a2 ) { return cocos2d::CCSprite::updateColor(v2); } if ( v5 > 0.0 ) goto LABEL_8; } return cocos2d::CCSprite::updateColor(v2); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source