// // ColorChannelSprite::updateCopyLabel from 0x140258a10 to 0x140258bcf (447 bytes) // // 6 xrefs: // > CustomizeObjectLayer::updateColorSprite @ 0x1400a85f9 // > GJColorSetupLayer::updateSpriteColor @ 0x140256aac // > LevelSettingsLayer::updateColorSprite @ 0x140321b17 // > @ 0x1406846c8 // > @ 0x140684700 // > @ 0x1406cfb58 // // 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::updateCopyLabel(ColorChannelSprite *a1, int a2, bool a3) { float v3; // xmm0_4 cocos2d::CCLabelBMFont *v7; // rax ColorChannelSprite_vtbl *v8; // r9 cocos2d::CCLabelBMFont_vtbl *v9; // rbx const cocos2d::CCSize *v10; // rax const cocos2d::CCPoint *v11; // rax cocos2d::CCString *v12; // rax const char *CString; // rax _BOOL8 v14; // rdx const cocos2d::ccColor3B *v15; // rdx if ( a2 ) { if ( !a1->m_copyLabel ) { v7 = cocos2d::CCLabelBMFont::create(" ", (const char *)&qword_14052A4D8); v8 = a1->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_copyLabel = v7; v8->addChild_0(a1, v7, 1); v9 = a1->m_copyLabel->__vftable; a1->getContentSize(a1); v10 = a1->getContentSize(a1); cocos2d::CCPoint::CCPoint(v3, v10->width * 0.5); v9->setPosition_0(a1->m_copyLabel, v11); ((void (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_copyLabel->setScale_0)(a1->m_copyLabel); } if ( a2 >= 1000 ) { CString = GJSpecialColorSelect::textForColorIdx(a2); } else { v12 = cocos2d::CCString::createWithFormat("%i", a2); CString = cocos2d::CCString::getCString(v12); } a1->m_copyLabel->setString(&a1->m_copyLabel->cocos2d::CCLabelProtocol, CString); cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_copyLabel, 28.0, 0.5, 0.0); LOBYTE(v14) = 1; a1->m_copyLabel->setVisible(a1->m_copyLabel, v14); v15 = (const cocos2d::ccColor3B *)&word_140529AB0; if ( a3 ) v15 = (const cocos2d::ccColor3B *)&unk_140529AA8; a1->m_copyLabel->setColor(&a1->m_copyLabel->cocos2d::CCRGBAProtocol, v15); } else if ( a1->m_copyLabel ) { ((void (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_copyLabel->setVisible)(a1->m_copyLabel); } }