// // EndLevelLayer::showLayer from 0x1002f7714 to 0x1002f7894 (384 bytes) // // 1 xrefs: // > @ 0x1007e94f8 // // 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 EndLevelLayer::showLayer(EndLevelLayer *a1, bool a2) { _BOOL4 v2; // w20 GameManager *v4; // x0 bool GameVariable; // w21 cocos2d::CCMoveTo *v6; // x0 cocos2d::CCEaseBounceOut *v7; // x20 char v8; // w0 __int64 v9; // x1 __int64 v10; // x2 __int64 v11; // x3 __int64 v12; // x4 __int64 v13; // x5 __int64 v14; // x6 __int64 v15; // x7 cocos2d::CCSequence *v16; // x0 cocos2d::CCFadeTo *v17; // x0 float v18; // s8 cocos2d::CCArray *m_coinsToAnimate; // x0 cocos2d::SEL_CallFunc v20; // 0:x1.16 v2 = a2; v4 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v4, "0168"); cocos2d::CCNode::stopAllActions(a1->m_mainLayer); ((void (__fastcall *)(EndLevelLayer *))a1->layerVisible)(a1); if ( GameVariable || v2 ) { ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCPoint *))a1->m_mainLayer->setPosition)( a1->m_mainLayer, &a1->m_endPosition); ((void (__fastcall *)(EndLevelLayer *, __int64))a1->setOpacity)(a1, 100); ((void (__fastcall *)(EndLevelLayer *))a1->enterAnimFinished)(a1); v18 = 0.0; EndLevelLayer::playStarEffect(a1, 0.0); EndLevelLayer::playCoinEffect(a1, 0.0); } else { v6 = cocos2d::CCMoveTo::create(1.0, &a1->m_endPosition); v7 = cocos2d::CCEaseBounceOut::create(v6); v20.ptr = (void (*)(void))1344; v20.adj = 1; v8 = (unsigned __int8)cocos2d::CCCallFunc::create(a1, v20); v16 = sub_10018A494(v7, v9, v10, v11, v12, v13, v14, v15, v8); cocos2d::CCNode::runAction(a1->m_mainLayer, v16); ((void (__fastcall *)(EndLevelLayer *, _QWORD))a1->setOpacity)(a1, 0); v17 = cocos2d::CCFadeTo::create(1.0, 0x64u); cocos2d::CCNode::runAction(a1, v17); v18 = 0.7; EndLevelLayer::playCoinEffect(a1, 0.7); m_coinsToAnimate = a1->m_coinsToAnimate; if ( m_coinsToAnimate ) v18 = (float)((float)(unsigned int)sub_10024A36C((__int64)m_coinsToAnimate) * 0.35) + 0.7; EndLevelLayer::playStarEffect(a1, v18); } EndLevelLayer::playCurrencyEffect(a1, v18); EndLevelLayer::playDiamondEffect(a1, v18); }