// // GameObject::opacityModForMode from 0x100262304 to 0x10026237c (120 bytes) // // 4 xrefs: // > PlayLayer::updateVisibility @ 0x10011c73c // > PlayLayer::updateVisibility @ 0x10011c80c // > GameObject::updateMainColor @ 0x1002621e4 // > GameObject::updateSecondaryColor @ 0x1002623dc // // 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 // float __fastcall GameObject::opacityModForMode(GameObject *a1, int a2, bool a3) { __int64 v3; // x8 unsigned int v4; // w8 float v5; // s8 if ( a2 < 1 ) { v5 = 1.0; } else { v3 = 1272; if ( a3 ) v3 = 1264; v4 = (int)*((float *)&(*(GameObject_vtbl **)((char *)&a1->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + v3))->getContentSize + 1); if ( v4 >= 0xFA ) v5 = 1.0; else v5 = (float)v4 * 0.004; } if ( a1->m_opacityGroupCount >= 1 ) return v5 * GameObject::groupOpacityMod(a1); return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source