// // ColorChannelSprite::updateOpacity from 0x8a3360 to 0x8a34e4 (388 bytes) // // 3 xrefs: // > ColorChannelSprite::updateValues @ 0x8a3660 // > ColorChannelSprite::updateValues @ 0x8a3714 // > @ 0x8bb60 // // 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 ColorChannelSprite::updateOpacity(ColorChannelSprite *a1, float a2) { cocos2d::CCLabelBMFont *m_opacityLabel; // x0 const char **v5; // x21 void (__fastcall *v6)(const char **, const char *); // x22 cocos2d::CCString *v7; // x0 const char *CString; // x0 cocos2d::CCLabelBMFont *v9; // x0 cocos2d::CCLabelBMFont *v10; // x22 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23 const cocos2d::CCSize *v12; // x0 float v13; // [xsp+50h] [xbp+50h] cocos2d::CCPoint v14; // [xsp+70h] [xbp+70h] BYREF if ( a2 == 1.0 ) { m_opacityLabel = a1->m_opacityLabel; if ( m_opacityLabel ) m_opacityLabel->setVisible(m_opacityLabel, 0); } else { v5 = (const char **)a1->m_opacityLabel; if ( !v5 ) { v9 = cocos2d::CCLabelBMFont::create(); a1->m_opacityLabel = v9; a1->addChild(a1, v9); v10 = a1->m_opacityLabel; setPosition = v10->setPosition; v13 = a1->getContentSize(a1)->width * 0.5; v12 = a1->getContentSize(a1); cocos2d::CCPoint::CCPoint(&v14, v13, (float)(v12->height * 0.5) + -9.5); setPosition(v10, &v14); a1->m_opacityLabel->setScale(a1->m_opacityLabel, 0.3); v5 = (const char **)a1->m_opacityLabel; } v6 = *((void (__fastcall **)(const char **, const char *))*v5 + 114); v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%0.2f", *v5, a2); CString = cocos2d::CCString::getCString(v7); v6(v5, CString); a1->m_opacityLabel->setVisible(a1->m_opacityLabel, 1); } }