// // ColorChannelSprite::updateCopyLabel from 0x10000cd54 to 0x10000cef4 (416 bytes) // // 1 xrefs: // > ColorChannelSprite::updateValues @ 0x10000d168 // // 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::updateCopyLabel(ColorChannelSprite *a1, int a2, bool a3) { cocos2d::CCLabelBMFont *m_copyLabel; // x0 _BOOL4 v5; // w19 cocos2d::CCLabelBMFont *v7; // x0 cocos2d::CCLabelBMFont *v8; // x22 float v9; // s8 __n128 v10; // q1 __n128 v11; // q0 cocos2d::CCString *v12; // x0 const char *CString; // x0 void *v14; // x1 _BYTE v15[8]; // [xsp+8h] [xbp-38h] BYREF cocos2d::CCPoint v16; // 0:kr00_8.8 m_copyLabel = a1->m_copyLabel; if ( a2 ) { v5 = a3; if ( !m_copyLabel ) { v7 = cocos2d::CCLabelBMFont::create_1(" ", "bigFont.fnt"); a1->m_copyLabel = v7; ((void (__fastcall *)(ColorChannelSprite *, cocos2d::CCLabelBMFont *, __int64))a1->addChild_0)(a1, v7, 1); v8 = a1->m_copyLabel; v9 = *(float *)((__int64 (__fastcall *)(ColorChannelSprite *))a1->getContentSize)(a1) * 0.5; v10.n128_f32[0] = (float)(*(float *)(((__int64 (__fastcall *)(ColorChannelSprite *))a1->getContentSize)(a1) + 4) * 0.5) + 3.0; v11.n128_f32[0] = v9; v16 = sub_100022980(v11, v10); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _BYTE *, float, float))v8->setPosition)(v8, v15, v16.x, v16.y); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))a1->m_copyLabel->setScale)(a1->m_copyLabel, 0.5); } if ( a2 > 999 ) { CString = GJSpecialColorSelect::textForColorIdx(a2); } else { v12 = (cocos2d::CCString *)sub_100268F4C("%i", a2); CString = cocos2d::CCString::getCString(v12); } ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_copyLabel->setString)(a1->m_copyLabel, CString); cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_copyLabel, 28.0, 0.5, 0.0); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))a1->m_copyLabel->setVisible)(a1->m_copyLabel, 1); if ( v5 ) v14 = &unk_1006354D0; else v14 = &unk_1006354D3; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))a1->m_copyLabel->setColor)(a1->m_copyLabel, v14); } else if ( m_copyLabel ) { ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD))m_copyLabel->setVisible)(m_copyLabel, 0); } }