// // GJColorSetupLayer::updateSpriteColor from 0x140256a10 to 0x140256b7a (362 bytes) // // 2 xrefs: // > GJColorSetupLayer::updateSpriteColors @ 0x1402569b3 // > @ 0x1406cf984 // // 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 GJColorSetupLayer::updateSpriteColor( GJColorSetupLayer *a1, ColorChannelSprite *a2, cocos2d::CCLabelBMFont *a3, int a4) { cocos2d::CCLabelProtocol *v5; // rbx cocos2d::CCLabelProtocol_vtbl *v6; // rdi cocos2d::CCString *v9; // rax const char *CString; // rax int v11; // r8d GJEffectManager *m_effectManager; // rcx ColorAction *ColorAction; // rax ColorAction *v14; // rbx bool v15; // zf cocos2d::CCLabelBMFont *m_copyLabel; // rcx __int16 v17; // [rsp+58h] [rbp+20h] BYREF char b; // [rsp+5Ah] [rbp+22h] v5 = &a3->cocos2d::CCLabelProtocol; v6 = a3->cocos2d::CCLabelProtocol::__vftable; v9 = cocos2d::CCString::createWithFormat("Col %i", a4); CString = cocos2d::CCString::getCString(v9); v6->setString(v5, CString); v11 = a4; if ( a4 < 0 ) v11 = 0; if ( v11 > 1101 ) v11 = 1101; m_effectManager = a1->m_settingsObject->m_effectManager; if ( m_effectManager->m_colorActionVector._Mypair._Myval2._Myfirst[v11] && (ColorAction = GJEffectManager::getColorAction(m_effectManager, a4), (v14 = ColorAction) != nullptr) ) { ColorChannelSprite::updateCopyLabel(a2, ColorAction->m_copyID, ColorAction->m_copyColorLoop); ColorChannelSprite::updateOpacity(a2, v14->m_fromOpacity); ColorChannelSprite::updateBlending(a2, v14->m_blending); v15 = v14->m_copyID == 0; v17 = *(_WORD *)&v14->m_fromColor.r; b = v14->m_fromColor.b; if ( !v15 && !v14->m_copyColorLoop ) { v17 = -22874; b = -90; } a2->setColor(&a2->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v17); } else { a2->setColor(&a2->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&word_140529AB0); m_copyLabel = a2->m_copyLabel; if ( m_copyLabel ) m_copyLabel->setVisible(m_copyLabel, 0); ColorChannelSprite::updateOpacity(a2, 1.0); if ( a2->m_blendingLabel ) a2->m_blendingLabel->setVisible(a2->m_blendingLabel, 0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source