// // DailyLevelPage::createDailyNode from 0x91459c to 0x91477c (480 bytes) // // 6 xrefs: // > DailyLevelPage::init @ 0x914ec0 // > DailyLevelPage::levelDownloadFinished @ 0x9155e8 // > DailyLevelPage::createNodeIfLoaded @ 0x91565c // > DailyLevelPage::claimLevelReward @ 0x915748 // > DailyLevelPage::refreshDailyPage @ 0x9159f0 // > @ 0x70590 // // 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 DailyLevelPage::createDailyNode(DailyLevelPage *a1, GJGameLevel *a2, bool a3, float a4, bool a5) { _BOOL4 v8; // w24 cocos2d::CCDirector *v10; // x0 DailyLevelNode *v11; // x19 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 GameLevelManager *v13; // x0 const cocos2d::CCPoint *v14; // x0 void (__fastcall *v15)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24 cocos2d::CCDirector *v16; // x0 float v17; // s0 cocos2d::CCSequence *v18; // x23 cocos2d::CCEaseElasticOut *v19; // x0 cocos2d::CCActionInterval *v20; // x1 __int64 v21; // x0 cocos2d::CCAction *v22; // x0 cocos2d::CCShow *v23; // [xsp+58h] [xbp+58h] float v24; // [xsp+60h] [xbp+60h] float v25; // [xsp+64h] [xbp+64h] cocos2d::CCPoint v26; // [xsp+68h] [xbp+68h] BYREF cocos2d::CCPoint v27; // [xsp+70h] [xbp+70h] BYREF v8 = a3; if ( !a1->m_dailyNode ) { v10 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v10); v11 = DailyLevelNode::create(a2, a1, a5); a1->m_mainLayer->addChild(a1->m_mainLayer, v11); setPosition = v11->setPosition; cocos2d::CCPoint::CCPoint(&v27, v24 * 0.5, (float)(v25 * 0.5) + -8.0); setPosition(v11, &v27); if ( a2 && (v13 = GameLevelManager::sharedState(), GameLevelManager::getDailyID(v13, a1->m_type) > a2->m_dailyID.random - a2->m_dailyID.seed) ) { DailyLevelNode::showSkipButton(v11); if ( v8 ) goto LABEL_5; } else if ( v8 ) { LABEL_5: a1->m_dailyNode = v11; return; } v11->setVisible(v11, 0); v14 = v11->getPosition(v11); cocos2d::CCPoint::CCPoint(&v26, v14); v15 = v11->setPosition; v16 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenRight(v16); cocos2d::CCPoint::CCPoint(&v27, v17 + 180.0, v26.y); v15(v11, &v27); v18 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(a4); v23 = cocos2d::CCShow::create(); v19 = (cocos2d::CCEaseElasticOut *)cocos2d::CCMoveTo::create(0.5, &v26); v21 = cocos2d::CCEaseElasticOut::create(v19, v20, 0.6); v22 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v18, v23, v21, 0); cocos2d::CCNode::runAction(v11, v22); goto LABEL_5; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source