// // DailyLevelPage::createDailyNode from 0x1002315a0 to 0x10023178d (493 bytes) // // 6 xrefs: // > DailyLevelPage::init @ 0x100230c6e // > DailyLevelPage::levelDownloadFinished @ 0x100231e87 // > sub_100231E90 @ 0x100231ee8 // > DailyLevelPage::createNodeIfLoaded @ 0x100231fa6 // > DailyLevelPage::claimLevelReward @ 0x1002324fb // > DailyLevelPage::refreshDailyPage @ 0x100232677 // // 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 DailyLevelPage::createDailyNode(DailyLevelPage *a1, GJGameLevel *a2, bool a3, float a4, bool a5) { DailyLevelNode *v8; // r14 GameLevelManager *v9; // rax CCMenuItemSpriteExtra *m_skipButton; // rdi GJGameLevel *m_level; // rax cocos2d::CCDirector *v12; // rax float v13; // xmm0_4 unsigned int v14; // r12d unsigned int v15; // r13d cocos2d::CCMoveTo *v16; // rax unsigned int v17; // eax int v18; // r8d int v19; // r9d cocos2d::CCAction *v20; // rax _BYTE v21[8]; // [rsp+Ch] [rbp-44h] BYREF float v22[2]; // [rsp+14h] [rbp-3Ch] BYREF cocos2d::CCPoint v23; // [rsp+1Ch] [rbp-34h] BYREF float v24; // [rsp+24h] [rbp-2Ch] double v25; // 0:xmm0_8.8 if ( !a1->m_dailyNode ) { v24 = a4; cocos2d::CCDirector::sharedDirector(); *(cocos2d::CCSize *)&v25 = cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v22); v8 = DailyLevelNode::create(a2, a1, a5); ((void (__fastcall *)(cocos2d::CCLayer *, DailyLevelNode *, double))a1->m_mainLayer->addChild)( a1->m_mainLayer, v8, v25); sub_10028CBE0(&v23, v22[0] * 0.5, (float)(0.5 * v22[1]) + -8.0); ((void (__fastcall *)(DailyLevelNode *, cocos2d::CCPoint *))v8->setPosition)(v8, &v23); if ( a2 ) { v9 = GameLevelManager::sharedState(); if ( GameLevelManager::getDailyID(v9, a1->m_type) > a2->m_dailyID.random - a2->m_dailyID.seed ) { m_skipButton = v8->m_skipButton; if ( m_skipButton ) { m_level = v8->m_level; if ( !m_level || m_level->m_orbCompletion.random - m_level->m_orbCompletion.seed <= 99 ) { ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))m_skipButton->setVisible)(m_skipButton, 1); ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))v8->m_skipButton->__vftable[1].setScaleY)( v8->m_skipButton, 1); } } } } if ( !a3 ) { ((void (__fastcall *)(DailyLevelNode *, _QWORD))v8->setVisible)(v8, 0); ((void (__fastcall *)(DailyLevelNode *))v8->getPosition)(v8); sub_10028CC60(&v23); v12 = cocos2d::CCDirector::sharedDirector(); v13 = sub_100484DA0(v12); sub_10028CBE0(v21, v13 + 180.0, v23.y); ((void (__fastcall *)(DailyLevelNode *, _BYTE *))v8->setPosition)(v8, v21); v14 = (unsigned int)cocos2d::CCDelayTime::create(v24); v15 = (unsigned int)cocos2d::CCShow::create(); v16 = cocos2d::CCMoveTo::create(0.5, &v23); v17 = (unsigned int)cocos2d::CCEaseElasticOut::create(v16, 0.60000002); v20 = (cocos2d::CCAction *)sub_1003B5760(v14, v15, v17, 0, v18, v19); cocos2d::CCNode::runAction(v8, v20); } a1->m_dailyNode = v8; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source