// // GJBaseGameLayer::updateLevelColors from 0x857d34 to 0x858030 (764 bytes) // // 13 xrefs: // > PlayLayer::postUpdate @ 0x5dc1f4 // > PlayLayer::setupHasCompleted @ 0x5dc9b8 // > PlayLayer::setupHasCompleted @ 0x5dcc1c // > PlayLayer::setupHasCompleted @ 0x5dcd00 // > PlayLayer::resetLevel @ 0x5e562c // > PlayLayer::resetLevel @ 0x5e5a64 // > LevelEditorLayer::onPlaytest @ 0x664554 // > LevelEditorLayer::postUpdate @ 0x66ed24 // > LevelEditorLayer::updateGameObjects @ 0x67bcf8 // > GJBaseGameLayer::asyncBGLoaded @ 0x858054 // > GJBaseGameLayer::asyncGLoaded @ 0x8580e4 // > GJBaseGameLayer::asyncMGLoaded @ 0x858108 // > @ 0x64260 // // 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 GJBaseGameLayer::updateLevelColors(GJBaseGameLayer *a1) { GLubyte r; // w2 GLubyte g; // w5 GLubyte b; // w4 cocos2d::CCSprite *m_background; // x0 cocos2d::CCSprite_vtbl *v6; // x3 void (__fastcall *setColor)(cocos2d::CCSprite *__hidden, const cocos2d::ccColor3B *); // x2 int v8; // w0 int v9; // w2 GJEffectManager *m_effectManager; // x0 GJGroundLayer *m_groundLayer; // x20 bool shouldBlend; // w0 GJGroundLayer *m_groundLayer2; // x20 bool v14; // w0 GJMGLayer *m_middleground; // x20 GJMGLayer *v16; // x20 GJMGLayer *v17; // x20 float v18; // s0 GJMGLayer *v19; // x20 float v20; // s0 GJMGLayer *v21; // x20 bool v22; // w0 GJMGLayer *v23; // x20 bool v24; // w0 float v25; // [xsp+30h] [xbp+30h] _BYTE v26[8]; // [xsp+40h] [xbp+40h] BYREF __int64 v27; // [xsp+48h] [xbp+48h] __int16 v28; // [xsp+50h] [xbp+50h] BYREF char v29; // [xsp+52h] [xbp+52h] __int64 v30; // [xsp+58h] [xbp+58h] __int64 v31; // [xsp+60h] [xbp+60h] cocos2d::ccColor3B v32; // 0:w0.3 v32 = GJEffectManager::activeColorForIndex(a1->m_effectManager, 1000); r = v32.r; g = v32.g; b = v32.b; m_background = a1->m_background; v6 = m_background->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v26[0] = r; v26[1] = g; setColor = v6->setColor; v26[2] = b; setColor(m_background, (const cocos2d::ccColor3B *)v26); *(cocos2d::ccColor3B *)&v27 = GJEffectManager::activeColorForIndex(a1->m_effectManager, 1001); GJGroundLayer::updateGround01Color(a1->m_groundLayer, (cocos2d::ccColor3B)v27); GJGroundLayer::updateGround01Color(a1->m_groundLayer2, (cocos2d::ccColor3B)v27); if ( a1->m_groundLayer->m_ground2Sprite ) { *(cocos2d::ccColor3B *)&v31 = GJEffectManager::activeColorForIndex(a1->m_effectManager, 1009); GJGroundLayer::updateGround02Color(a1->m_groundLayer, (cocos2d::ccColor3B)v31); GJGroundLayer::updateGround02Color(a1->m_groundLayer2, (cocos2d::ccColor3B)v31); } *(cocos2d::ccColor3B *)&v8 = GJEffectManager::activeColorForIndex(a1->m_effectManager, 1002); v9 = v8; m_effectManager = a1->m_effectManager; v29 = BYTE2(v9); v28 = v9; v25 = GJEffectManager::activeOpacityForIndex(m_effectManager, 1002); a1->m_groundLayer->m_lineSprite->setColor(a1->m_groundLayer->m_lineSprite, (const cocos2d::ccColor3B *)&v28); a1->m_groundLayer2->m_lineSprite->setColor(a1->m_groundLayer2->m_lineSprite, (const cocos2d::ccColor3B *)&v28); a1->m_groundLayer->m_lineSprite->setOpacity(a1->m_groundLayer->m_lineSprite, (unsigned int)(float)(v25 * 255.0)); a1->m_groundLayer2->m_lineSprite->setOpacity(a1->m_groundLayer2->m_lineSprite, (unsigned int)(float)(v25 * 255.0)); m_groundLayer = a1->m_groundLayer; shouldBlend = GJEffectManager::shouldBlend(a1->m_effectManager, 1002); GJGroundLayer::updateLineBlend(m_groundLayer, shouldBlend); m_groundLayer2 = a1->m_groundLayer2; v14 = GJEffectManager::shouldBlend(a1->m_effectManager, 1002); GJGroundLayer::updateLineBlend(m_groundLayer2, v14); m_middleground = a1->m_middleground; if ( m_middleground ) { *(cocos2d::ccColor3B *)&v30 = GJEffectManager::activeColorForIndex(a1->m_effectManager, 1013); GJMGLayer::updateGroundColor(m_middleground, (cocos2d::ccColor3B)v30, 1); v16 = a1->m_middleground; *(cocos2d::ccColor3B *)&v31 = GJEffectManager::activeColorForIndex(a1->m_effectManager, 1014); GJMGLayer::updateGroundColor(v16, (cocos2d::ccColor3B)v31, 0); v17 = a1->m_middleground; v18 = GJEffectManager::activeOpacityForIndex(a1->m_effectManager, 1013); GJMGLayer::updateGroundOpacity(v17, (unsigned int)(float)(v18 * 255.0), 1); v19 = a1->m_middleground; v20 = GJEffectManager::activeOpacityForIndex(a1->m_effectManager, 1014); GJMGLayer::updateGroundOpacity(v19, (unsigned int)(float)(v20 * 255.0), 0); v21 = a1->m_middleground; v22 = GJEffectManager::shouldBlend(a1->m_effectManager, 1013); GJMGLayer::updateMG01Blend(v21, v22); v23 = a1->m_middleground; v24 = GJEffectManager::shouldBlend(a1->m_effectManager, 1014); GJMGLayer::updateMG02Blend(v23, v24); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source