// // WorldSelectLayer::setupWorlds from 0x62dd88 to 0x62e04a (706 bytes) // // 1 xrefs: // > WorldSelectLayer::init @ 0x62e55a // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:55:14 +0000 // unsigned int __fastcall WorldSelectLayer::setupWorlds(WorldSelectLayer *this) { GJWorldNode *v2; // r7 cocos2d::CCArray *WinSize; // r0 cocos2d::CCLayer *v4; // r0 cocos2d::CCObject *v5; // r6 WorldSelectLayer *v6; // r2 int *v7; // r8 void (__fastcall *v8)(int *, _BYTE *); // r11 float v9; // r2 const char *v10; // r2 const cocos2d::CCPoint *v11; // r2 cocos2d::CCEaseInOut *v12; // r0 float v13; // r2 cocos2d::CCSequence *v14; // r11 const cocos2d::CCPoint *v15; // r2 cocos2d::CCEaseInOut *v16; // r0 float v17; // r2 cocos2d::CCFiniteTimeAction *v18; // r0 cocos2d::CCRepeatForever *v19; // r0 cocos2d::CCActionInterval *v20; // r1 cocos2d::CCAction *v21; // r11 cocos2d::CCString *v22; // r0 cocos2d::CCSprite *CString; // r0 const char *v24; // r1 int v25; // r11 int (__fastcall *v26)(int, _BYTE *); // r6 int v27; // r0 int v28; // r11 const char *v29; // r1 int v30; // r0 cocos2d::CCMenu *v31; // r0 cocos2d::CCMenuItem *v32; // r1 int v33; // r9 unsigned int v34; // r0 cocos2d::CCDirector *v35; // r0 unsigned int v36; // r5 float v37; // s16 cocos2d::CCDirector *v38; // r0 float v39; // r0 cocos2d::CCArray *v41; // [sp+Ch] [bp-50h] void (__fastcall *v42)(int, _BYTE *); // [sp+24h] [bp-38h] float v43; // [sp+2Ch] [bp-30h] BYREF float v44; // [sp+30h] [bp-2Ch] _BYTE v45[8]; // [sp+34h] [bp-28h] BYREF _BYTE v46[8]; // [sp+3Ch] [bp-20h] BYREF _BYTE v47[8]; // [sp+44h] [bp-18h] BYREF int (__fastcall *v48)(WorldSelectLayer *, cocos2d::CCObject *); // [sp+4Ch] [bp-10h] int v49; // [sp+50h] [bp-Ch] v2 = (GJWorldNode *)(&dword_0 + 1); cocos2d::CCDirector::sharedDirector(this); WinSize = (cocos2d::CCArray *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v43); v41 = (cocos2d::CCArray *)cocos2d::CCArray::create(WinSize); v4 = (cocos2d::CCLayer *)cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v45, v43 * 0.5, (float)((float)((float)(v44 * 0.5) - 15.0) + 2.0) - 5.0); do { v5 = (cocos2d::CCObject *)cocos2d::CCLayer::create(v4); cocos2d::CCArray::addObject(v41, v5); v7 = GJWorldNode::create(v2, this, v6); (*(void (__fastcall **)(cocos2d::CCObject *, int *))(*(_DWORD *)v5 + 228))(v5, v7); (*(void (__fastcall **)(int *, GJWorldNode *))(*v7 + 36))(v7, v2); v8 = *(void (__fastcall **)(int *, _BYTE *))(*v7 + 92); if ( v2 == (GJWorldNode *)((char *)&dword_0 + 2) ) v9 = -10.0; else v9 = 0.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v46, 0.0, v9); cocos2d::CCPoint::operator+(v47, v45, v46); v8(v7, v47); if ( v2 == (GJWorldNode *)((char *)&dword_0 + 3) ) { v28 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Coming Soon", "bigFont.fnt", v10); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v5 + 228))(v5, v28); (*(void (__fastcall **)(int, int))(*(_DWORD *)v28 + 80))(v28, 1061997773); v42 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v28 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v46, 0.0, 142.0); cocos2d::CCPoint::operator+(v47, v45, v46); v42(v28, v47); v30 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_freeLevelsBtn_001.png", v29); v48 = WorldSelectLayer::onFreeLevels; v49 = 0; v31 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v30, 0, (int)this, (int)WorldSelectLayer::onFreeLevels, 0); v33 = cocos2d::CCMenu::createWithItem(v31, v32); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v5 + 228))(v5, v33); v26 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v33 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, v43 * 0.5, (float)(v44 * 0.5) - 20.0); v27 = v33; } else { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, 0.0, -4.0); v12 = (cocos2d::CCEaseInOut *)cocos2d::CCMoveBy::create((cocos2d::CCMoveBy *)0x40000000, COERCE_FLOAT(v47), v11); v14 = (cocos2d::CCSequence *)cocos2d::CCEaseInOut::create(v12, (cocos2d::CCActionInterval *)0x3FE66666, v13); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, 0.0, 4.0); v16 = (cocos2d::CCEaseInOut *)cocos2d::CCMoveBy::create((cocos2d::CCMoveBy *)0x40000000, COERCE_FLOAT(v47), v15); v18 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCEaseInOut::create( v16, (cocos2d::CCActionInterval *)0x3FE66666, v17); v19 = (cocos2d::CCRepeatForever *)cocos2d::CCSequence::create(v14, v18, 0); v21 = (cocos2d::CCAction *)cocos2d::CCRepeatForever::create(v19, v20); cocos2d::CCNode::runAction((cocos2d::CCNode *)v7, v21); (*(void (__fastcall **)(cocos2d::CCAction *, int))(*(_DWORD *)v21 + 52))(v21, 1056964608); v22 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"worldLabel_%02d_001.png", (const char *)v2); CString = (cocos2d::CCSprite *)cocos2d::CCString::getCString(v22); v25 = cocos2d::CCSprite::createWithSpriteFrameName(CString, v24); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v5 + 228))(v5, v25); v26 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v25 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v46, 0.0, 142.0); cocos2d::CCPoint::operator+(v47, v45, v46); v27 = v25; } v4 = (cocos2d::CCLayer *)v26(v27, v47); if ( v7[67] ) *((_DWORD *)this + 85) = v7; v2 = (GJWorldNode *)((char *)v2 + 1); } while ( v2 != (GJWorldNode *)byte_4 ); v34 = BoomScrollLayer::create(v41, 0, 0, nullptr, 0); *((_DWORD *)this + 81) = v34; *(_DWORD *)(*(_DWORD *)(v34 + 384) + 316) = (char *)this + 316; *(_DWORD *)(*((_DWORD *)this + 81) + 420) = (char *)this + 316; v35 = (cocos2d::CCDirector *)(*(int (__fastcall **)(WorldSelectLayer *, _DWORD))(*(_DWORD *)this + 228))( this, *((_DWORD *)this + 81)); v36 = *((_DWORD *)this + 81); v37 = v43 * 0.5; v38 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v35); v39 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v38)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, v37, v39 + 15.0); return BoomScrollLayer::setPagesIndicatorPosition(v36, (int)v47); }
GD Web Decomp Icon

GD Web Decomp

Raw Source