// // GameObject::setOpacity from 0x64453c to 0x644780 (580 bytes) // // 13 xrefs: // > PlayerObject::setOpacity @ 0x620cb8 // > `non-virtual thunk to'GameObject::setOpacity @ 0x644784 // > AnimatedGameObject::setOpacity @ 0x74afac // > EffectGameObject::setOpacity @ 0x74b07c // > LabelGameObject::setOpacity @ 0x74b164 // > @ 0x3e9d0 // > @ 0x1153830 // > @ 0x1154000 // > @ 0x1154800 // > @ 0x11659b0 // > @ 0x1166180 // > @ 0x1166980 // > @ 0x11771f0 // // 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 GameObject::setOpacity(GameObject *a1, unsigned __int8 a2) { float m_opacityMod2; // s0 float v4; // s9 float v5; // s8 unsigned __int8 v6; // w20 unsigned int v7; // w21 cocos2d::CCSprite *m_colorSprite; // x0 float v9; // s9 int v10; // w20 float m_blackChildOpacity; // s0 unsigned int v12; // w20 cocos2d::CCArray *v13; // x0 cocos2d::ccArray *data; // x1 char *arr; // x23 __int64 v16; // x0 char *v17; // x25 __int64 v18; // x22 __int64 v19; // x0 void (__fastcall *v20)(__int64, __int64); // x24 __int64 v21; // x1 unsigned __int8 v22; // w20 *(_DWORD *)&a2 = a2; m_opacityMod2 = a1->m_opacityMod2; a1->m_areaOpacityRelated = a2; if ( m_opacityMod2 > 0.0 ) *(_DWORD *)&a2 = (unsigned __int8)(unsigned int)(float)(m_opacityMod2 * (float)a2); v4 = 0.0; if ( !a1->m_isDisabled2 ) v4 = (float)a2; v5 = v4 * a1->m_baseColor->m_opacity; v6 = (unsigned int)v5; v7 = v6; a1->updateMainParticleOpacity(a1, v6); if ( a1->m_colorType == 2 && a1->m_shouldBlendBase ) { v5 = 0.0; v7 = 0; } if ( (float)a1->_realOpacity == v5 ) goto LABEL_7; cocos2d::CCSprite::setOpacity(a1, v7); if ( a1->m_customGlowColor ) { GameObject::setGlowOpacity(a1, v6); if ( !a1->m_hasCustomChild ) goto LABEL_7; } else { if ( a1->m_colorType == 2 ) v22 = 0; else v22 = v7; GameObject::setGlowOpacity(a1, v22); if ( !a1->m_hasCustomChild ) goto LABEL_7; } if ( a1->m_blackChildOpacityLocked ) goto LABEL_12; m_blackChildOpacity = a1->m_blackChildOpacity; if ( m_blackChildOpacity <= 0.0 ) v12 = v7; else v12 = (unsigned __int8)(unsigned int)(float)(v5 * m_blackChildOpacity); a1->updateSecondaryParticleOpacity(a1, v12); v13 = a1->getChildren(a1); if ( v13 ) { data = v13->data; if ( data->num ) { arr = (char *)data->arr; v16 = 8LL * data->num - 8; v17 = &arr[v16]; while ( v17 >= arr ) { v18 = *(_QWORD *)arr; if ( !*(_QWORD *)arr ) break; v19 = *(_QWORD *)arr; arr += 8; v20 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v18 + 896LL); v21 = (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v18 + 64LL))(v19) == 997 ? v7 : v12; v20(v18, v21); } } } LABEL_7: m_colorSprite = a1->m_colorSprite; if ( m_colorSprite && !a1->m_blackChildOpacityLocked ) { v9 = v4 * a1->m_detailColor->m_opacity; if ( a1->m_childColorType != 2 || (v10 = 0, !a1->m_shouldBlendDetail) ) v10 = (unsigned __int8)(unsigned int)v9; m_colorSprite->setOpacity(m_colorSprite, v10); a1->m_colorSprite->setChildOpacity(a1->m_colorSprite, v10); } LABEL_12: a1->updateParticleOpacity(a1, v7); }
GD Web Decomp Icon

GD Web Decomp

Raw Source