// // LevelSettingsLayer::updateColorSprite from 0x140321a90 to 0x140321bef (351 bytes) // // 7 xrefs: // > LevelSettingsLayer::updateColorSprites @ 0x140321a30 // > LevelSettingsLayer::updateColorSprites @ 0x140321a3f // > LevelSettingsLayer::updateColorSprites @ 0x140321a4e // > LevelSettingsLayer::updateColorSprites @ 0x140321a5d // > LevelSettingsLayer::updateColorSprites @ 0x140321a6c // > LevelSettingsLayer::updateColorSprites @ 0x140321a80 // > @ 0x1406d4c88 // // 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 LevelSettingsLayer::updateColorSprite(LevelSettingsLayer *a1, ColorChannelSprite *a2) { int v4; // r8d int v5; // r9d GJEffectManager *m_effectManager; // rcx ColorAction *ColorAction; // rax ColorAction *v8; // rdi bool v9; // zf const cocos2d::ccColor3B *v10; // rdx cocos2d::CCLabelBMFont *m_copyLabel; // rcx __int16 v12; // [rsp+30h] [rbp+8h] BYREF char b; // [rsp+32h] [rbp+Ah] if ( a1->m_editorLayer ) { v4 = a2->getTag(a2); v5 = v4; if ( v4 < 0 ) v4 = 0; m_effectManager = a1->m_editorLayer->m_levelSettings->m_effectManager; if ( v4 > 1101 ) v4 = 1101; if ( !m_effectManager->m_colorActionVector._Mypair._Myval2._Myfirst[v4] ) { v10 = (const cocos2d::ccColor3B *)&unk_140529B78; LABEL_17: a2->setColor(&a2->cocos2d::CCRGBAProtocol, v10); return; } ColorAction = GJEffectManager::getColorAction(m_effectManager, v5); v8 = ColorAction; if ( ColorAction ) { ColorChannelSprite::updateCopyLabel(a2, ColorAction->m_copyID, ColorAction->m_copyColorLoop); ColorChannelSprite::updateOpacity(a2, v8->m_fromOpacity); ColorChannelSprite::updateBlending(a2, v8->m_blending); v9 = v8->m_copyID == 0; v12 = *(_WORD *)&v8->m_fromColor.r; b = v8->m_fromColor.b; if ( !v9 && !v8->m_copyColorLoop ) { v12 = -22874; b = -90; } v10 = (const cocos2d::ccColor3B *)&v12; goto LABEL_17; } 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