// // MenuGameLayer::updateColor from 0x10039acac to 0x10039adc4 (280 bytes) // // 2 xrefs: // > MenuGameLayer::init @ 0x10039a944 // > MenuGameLayer::init @ 0x10039a928 // // 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 MenuGameLayer::updateColor(MenuGameLayer *a1, float a2) { __int16 v3; // w22 unsigned int b; // w20 unsigned int v5; // w21 unsigned int v6; // w22 cocos2d::CCTintTo *v7; // x0 GJGroundLayer *m_groundLayer; // x8 float v9; // s8 cocos2d::CCTintTo *v10; // x0 cocos2d::CCSprite *m_ground2Sprite; // x0 cocos2d::CCTintTo *v12; // x1 cocos2d::ccColor3B BGColor; // 0:w0.3 BGColor = MenuGameLayer::getBGColor(a1, a1->m_initCount); v3 = *(_WORD *)&BGColor.r; b = BGColor.b; ++a1->m_initCount; cocos2d::CCNode::stopAllActions(a1->m_backgroundSprite); v5 = (unsigned __int8)v3; v6 = HIBYTE(v3); v7 = cocos2d::CCTintTo::create(4.0, v5, v6, b); cocos2d::CCNode::runAction(a1->m_backgroundSprite, v7); m_groundLayer = a1->m_groundLayer; v9 = flt_100645D78[m_groundLayer->m_ground2Sprite == nullptr]; cocos2d::CCNode::stopAllActions(m_groundLayer->m_ground1Sprite); v10 = cocos2d::CCTintTo::create( 4.0, (int)(float)(v9 * (float)v5), (int)(float)(v9 * (float)v6), (int)(float)(v9 * (float)b)); cocos2d::CCNode::runAction(a1->m_groundLayer->m_ground1Sprite, v10); m_ground2Sprite = a1->m_groundLayer->m_ground2Sprite; if ( m_ground2Sprite ) { cocos2d::CCNode::stopAllActions(m_ground2Sprite); v12 = cocos2d::CCTintTo::create(4.0, v5, v6, b); cocos2d::CCNode::runAction(a1->m_groundLayer->m_ground2Sprite, v12); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source