// // ColorChannelSprite::updateOpacity from 0x10000cef4 to 0x10000d038 (324 bytes) // // 1 xrefs: // > ColorChannelSprite::updateValues @ 0x10000d174 // // 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 ColorChannelSprite::updateOpacity(ColorChannelSprite *a1, float a2) { cocos2d::CCLabelBMFont *m_opacityLabel; // x8 cocos2d::CCLabelBMFont *v5; // x0 cocos2d::CCLabelBMFont *v6; // x20 float v7; // s9 __n128 v8; // q1 __n128 v9; // q0 cocos2d::CCLabelBMFont *v10; // x20 cocos2d::CCString *v11; // x0 const char *CString; // x0 _BYTE v13[8]; // [xsp+8h] [xbp-38h] BYREF cocos2d::CCPoint v14; // 0:kr00_8.8 m_opacityLabel = a1->m_opacityLabel; if ( a2 == 1.0 ) { if ( !m_opacityLabel ) return; } else { if ( !m_opacityLabel ) { v5 = cocos2d::CCLabelBMFont::create_1(" ", "bigFont.fnt"); a1->m_opacityLabel = v5; ((void (__fastcall *)(ColorChannelSprite *, cocos2d::CCLabelBMFont *))a1->addChild)(a1, v5); v6 = a1->m_opacityLabel; v7 = *(float *)((__int64 (__fastcall *)(ColorChannelSprite *))a1->getContentSize)(a1) * 0.5; v8.n128_f32[0] = (float)(*(float *)(((__int64 (__fastcall *)(ColorChannelSprite *))a1->getContentSize)(a1) + 4) * 0.5) + -9.5; v9.n128_f32[0] = v7; v14 = sub_100022980(v9, v8); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _BYTE *, float, float))v6->setPosition)(v6, v13, v14.x, v14.y); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))a1->m_opacityLabel->setScale)(a1->m_opacityLabel, 0.3); } v10 = a1->m_opacityLabel; v11 = (cocos2d::CCString *)sub_100268F4C("%0.2f", a2); CString = cocos2d::CCString::getCString(v11); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))v10->setString)(v10, CString); } ((void (__fastcall *)(cocos2d::CCLabelBMFont *, bool))a1->m_opacityLabel->setVisible)(a1->m_opacityLabel, a2 != 1.0); }