// // CreatorLayer::init from 0x1401356b0 to 0x140136a94 (5092 bytes) // // 5 xrefs: // > CreatorLayer::scene @ 0x140135629 // > CreatorLayer::scene @ 0x140135630 // > CreatorLayer::scene @ 0x14013561a // > @ 0x1407379a8 // > @ 0x140917108 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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:27:05 +0000 // // Hidden C++ exception states: #wind=19 bool __fastcall CreatorLayer::init(cocos2d::CCLayer *a1) { bool result; // al __int64 v3; // rdx __int64 v4; // rax __int64 v5; // rdx __int64 v6; // rcx __int64 v7; // rax struct cocos2d::CCSprite *v8; // rdi __int64 v9; // rbx __int64 v10; // rax __int64 v11; // rbx __int64 v12; // rax __int64 v13; // r12 struct cocos2d::CCSprite *v14; // rax float v15; // xmm6_4 float v16; // xmm6_4 __int64 v17; // rax signed int v18; // ebx char v19; // r15 char v20; // r13 char *v21; // rdx __int64 (__fastcall *v22)(); // r14 char *v23; // r8 char *v24; // rdx size_t v25; // r8 cocos2d::CCSprite *v26; // rdi void *v27; // rcx const char *v28; // rcx cocos2d::CCObject *v29; // r14 float v30; // xmm0_4 __int64 v31; // rax unsigned __int8 canCollectQuests; // al __int64 v33; // rcx int v34; // eax __int64 v35; // rdi void *v36; // rcx __int64 v37; // rax __int64 v38; // rcx __int64 v39; // rcx struct cocos2d::CCSprite *v40; // rdi __int64 v41; // rbx __int64 v42; // rax __int64 v43; // rbx __int64 v44; // rcx cocos2d::CCDirector *v45; // rax float v46; // xmm6_4 __int64 v47; // rcx cocos2d::CCDirector *v48; // rax float v49; // xmm0_4 __int64 v50; // rax struct cocos2d::CCSprite *v51; // rdi __int64 v52; // rbx __int64 v53; // rax __int64 v54; // rbx __int64 v55; // rcx cocos2d::CCDirector *v56; // rax float v57; // xmm6_4 __int64 v58; // rcx cocos2d::CCDirector *v59; // rax float v60; // xmm0_4 __int64 v61; // rax struct cocos2d::CCSprite *v62; // rdi __int64 v63; // rbx __int64 v64; // rax __int64 v65; // rbx __int64 v66; // rcx cocos2d::CCDirector *v67; // rax float v68; // xmm6_4 __int64 v69; // rcx cocos2d::CCDirector *v70; // rax float v71; // xmm0_4 __int64 v72; // rax struct cocos2d::CCSprite *v73; // rdi __int64 v74; // rbx __int64 v75; // rax __int64 v76; // rbx __int64 v77; // rcx cocos2d::CCDirector *v78; // rax float v79; // xmm6_4 __int64 v80; // rcx cocos2d::CCDirector *v81; // rax float v82; // xmm0_4 __int64 v83; // rax __int64 v84; // rcx int Stat; // r15d const char *v86; // rcx __int64 *v87; // r14 cocos2d::CCObject *v88; // rdi __int64 v89; // rbx __int64 v90; // rax __int64 v91; // rax float v92; // xmm6_4 float *v93; // rax struct cocos2d::CCSprite *v94; // rbx __int64 v95; // rax cocos2d::CCString *v96; // rax const char *CString; // rax struct cocos2d::CCLabelBMFont *v98; // rbx __int64 v99; // rax __int64 v100; // rcx char UGV; // al const char *v102; // rcx __int64 *v103; // rbx __int64 v104; // rdi __int64 v105; // rbx __int64 v106; // rax __int64 v107; // rax __int64 *v108; // rbx cocos2d::CCObject *v109; // r14 struct cocos2d::CCMenu *v110; // rdi __int64 v111; // rbx __int64 v112; // rcx cocos2d::CCDirector *v113; // rax float v114; // xmm6_4 __int64 v115; // rcx cocos2d::CCDirector *v116; // rax float v117; // xmm0_4 __int64 v118; // rax __int64 v119; // rcx __int64 v120; // rax __int64 v121; // rdx __int16 v122; // [rsp+38h] [rbp-D0h] BYREF char v123; // [rsp+3Ah] [rbp-CEh] void *v124; // [rsp+40h] [rbp-C8h] BYREF void *v125; // [rsp+48h] [rbp-C0h] BYREF float v126; // [rsp+50h] [rbp-B8h] BYREF float v127; // [rsp+54h] [rbp-B4h] __int16 v128; // [rsp+58h] [rbp-B0h] BYREF char v129; // [rsp+5Ah] [rbp-AEh] void *v130; // [rsp+60h] [rbp-A8h] BYREF void *v131; // [rsp+68h] [rbp-A0h] BYREF _QWORD v132[3]; // [rsp+70h] [rbp-98h] BYREF __int64 v133; // [rsp+88h] [rbp-80h] unsigned __int64 v134; // [rsp+90h] [rbp-78h] __int128 v135; // [rsp+98h] [rbp-70h] BYREF __int64 v136; // [rsp+A8h] [rbp-60h] unsigned __int64 v137; // [rsp+B0h] [rbp-58h] result = cocos2d::CCLayer::init(a1); if ( result ) { v4 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v125 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v125); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v4 = qword_14090BFD0; } *(_QWORD *)(v4 + 996) = -1; LOBYTE(v3) = 1; (*(void (__fastcall **)(cocos2d::CCLayer *, __int64))(*(_QWORD *)a1 + 992LL))(a1, v3); LOBYTE(v5) = 1; (*(void (__fastcall **)(cocos2d::CCLayer *, __int64))(*(_QWORD *)a1 + 1008LL))(a1, v5); v7 = cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(v7, &v126); v8 = cocos2d::CCSprite::create("GJ_gradientBG.png"); v9 = *(_QWORD *)v8; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v125, 0.0, 0.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v9 + 288))(v8, v10); (*(void (__fastcall **)(cocos2d::CCLayer *, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a1 + 456LL))( a1, v8, 4294967294LL); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v8 + 120LL))(v8); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v8 + 136LL))(v8); v11 = *(_QWORD *)v8; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v125, -5.0, -5.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v11 + 184))(v8, v12); v122 = 26112; v123 = -1; (**((void (__fastcall ***)(__int64, __int16 *))v8 + 40))((__int64)v8 + 320, &v122); v13 = cocos2d::CCMenu::create(); (*(void (__fastcall **)(cocos2d::CCLayer *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v13); v14 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_searchBtn_001.png"); v15 = fmaxf(0.89999998, (float)(v126 - 100.0) / (float)((float)(*((float *)v14 + 108) * 0.80000001) + 360.0)); if ( v15 > 1.0 ) v15 = 1.0; v16 = v15 * 90.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v125, v126 * 0.5, v127 * 0.5); cocos2d::CCNode::convertToNodeSpace(v13, v132, v17); v18 = 0; while ( 2 ) { *(_OWORD *)&v132[1] = 0; v133 = 0; v134 = 15; LOBYTE(v132[1]) = 0; v19 = 0; v20 = 0; switch ( v18 ) { case 1: v21 = (char *)sub_14003D460(0x20u); v133 = 19; v134 = 31; strcpy(v21, "GJ_savedBtn_001.png"); v132[1] = v21; v22 = CreatorLayer::onSavedLevels; goto LABEL_34; case 2: v21 = (char *)sub_14003D460(0x20u); v133 = 23; v134 = 31; strcpy(v21, "GJ_highscoreBtn_001.png"); v22 = CreatorLayer::onLeaderboards; goto LABEL_33; case 3: v21 = (char *)sub_14003D460(0x20u); v133 = 23; v134 = 31; strcpy(v21, "GJ_challengeBtn_001.png"); v22 = CreatorLayer::onChallenge; v19 = 1; goto LABEL_33; case 4: v23 = (char *)sub_14003D460(0x20u); v133 = 20; v134 = 31; strcpy(v23, "GJ_versusBtn_001.png"); v132[1] = v23; v22 = CreatorLayer::onMultiplayer; goto LABEL_12; case 5: v23 = (char *)sub_14003D460(0x20u); v133 = 17; v134 = 31; strcpy(v23, "GJ_mapBtn_001.png"); v132[1] = v23; v22 = CreatorLayer::onAdventureMap; LABEL_12: v24 = (char *)&v132[1]; if ( v134 > 0xF ) v24 = v23; v135 = 0; v136 = 0; v137 = 0; v25 = -1; do ++v25; while ( v24[v25] ); sub_14003D230(&v135, v24, v25); v26 = CCSpriteGrayscale::createWithSpriteFrameName((__int64)&v135); if ( v137 > 0xF ) { v27 = (void *)v135; if ( v137 + 1 >= 0x1000 ) { v27 = *(void **)(v135 - 8); if ( (unsigned __int64)(v135 - (_QWORD)v27 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v27); } v136 = 0; v137 = 15; LOBYTE(v135) = 0; *((_DWORD *)v26 + 151) = 1051260355; *((_DWORD *)v26 + 152) = 1051260355; *((_DWORD *)v26 + 153) = 1051260355; v122 = -20561; v128 = -20561; v129 = -81; (**((void (__fastcall ***)(__int64, __int16 *))v26 + 40))((__int64)v26 + 320, &v128); goto LABEL_37; case 6: v21 = (char *)sub_14003D460(0x20u); v133 = 19; v134 = 31; strcpy(v21, "GJ_dailyBtn_001.png"); v22 = CreatorLayer::onDailyLevel; goto LABEL_33; case 7: v21 = (char *)sub_14003D460(0x20u); v133 = 20; v134 = 31; *(_OWORD *)v21 = xmmword_140737158; v22 = CreatorLayer::onWeeklyLevel; goto LABEL_32; case 8: v21 = (char *)sub_14003D460(0x20u); v133 = 19; v134 = 31; strcpy(v21, "GJ_eventBtn_001.png"); v22 = CreatorLayer::onEventLevel; goto LABEL_33; case 9: v21 = (char *)sub_14003D460(0x20u); v133 = 23; v134 = 31; strcpy(v21, "GJ_gauntletsBtn_001.png"); v22 = CreatorLayer::onGauntlets; goto LABEL_33; case 10: v21 = (char *)sub_14003D460(0x20u); v133 = 22; v134 = 31; strcpy(v21, "GJ_featuredBtn_001.png"); v22 = CreatorLayer::onFeaturedLevels; goto LABEL_33; case 11: v21 = (char *)sub_14003D460(0x20u); v133 = 19; v134 = 31; strcpy(v21, "GJ_listsBtn_001.png"); v22 = CreatorLayer::onTopLists; goto LABEL_33; case 12: v21 = (char *)sub_14003D460(0x20u); v133 = 19; v134 = 31; strcpy(v21, "GJ_pathsBtn_001.png"); v22 = CreatorLayer::onPaths; goto LABEL_33; case 13: v21 = (char *)sub_14003D460(0x20u); v133 = 22; v134 = 31; strcpy(v21, "GJ_mapPacksBtn_001.png"); v22 = CreatorLayer::onMapPacks; goto LABEL_33; case 14: v21 = (char *)sub_14003D460(0x20u); v133 = 20; v134 = 31; strcpy(v21, "GJ_searchBtn_001.png"); v22 = CreatorLayer::onOnlineLevels; v20 = 1; goto LABEL_33; default: v21 = (char *)sub_14003D460(0x20u); v133 = 20; v134 = 31; *(_OWORD *)v21 = xmmword_1407372F0; v22 = CreatorLayer::onMyLevels; LABEL_32: strcpy(v21 + 16, ".png"); LABEL_33: v132[1] = v21; LABEL_34: v28 = (const char *)&v132[1]; if ( v134 > 0xF ) v28 = v21; v26 = cocos2d::CCSprite::createWithSpriteFrameName(v28); LABEL_37: (*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v26 + 160LL))(v26); v29 = CCMenuItemSpriteExtra::create((int)v26, 0, (int)a1, (__int64)v22); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v13 + 464LL))(v13, v29); v30 = floorf((float)v18 / 5.0); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v130, (float)((float)((float)(v18 % 5) - 1.5) * v16) - (float)(v16 * 0.5), (float)-(float)(v30 - 1.0) * v16); cocos2d::CCPoint::operator+(v132, &v125, v31); (*(void (__fastcall **)(cocos2d::CCObject *, void **))(*(_QWORD *)v29 + 184LL))(v29, &v125); if ( v19 ) { *((_QWORD *)a1 + 55) = v26; canCollectQuests = ChallengesPage::canCollectQuests(); sub_140139470(v26, canCollectQuests); } switch ( v18 ) { case 6: *((_QWORD *)a1 + 56) = v26; break; case 7: *((_QWORD *)a1 + 57) = v26; break; case 8: *((_QWORD *)a1 + 58) = v26; break; case 9: *((_QWORD *)a1 + 59) = v26; break; } v33 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v131 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v131); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v33 = qword_14090BFD0; } if ( (unsigned __int8)GameManager::getGameVariable(v33, "0219") ) { if ( (unsigned int)v18 > 0xC ) goto LABEL_60; v34 = 4107; if ( !_bittest(&v34, v18) ) goto LABEL_60; } else { v35 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v124 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v124); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v35 = qword_14090BFD0; } if ( ((unsigned __int8)GameManager::getGameVariable(v35, "0218") || (unsigned __int8)GameManager::getGameVariable(v35, "0219") || (unsigned __int8)GameManager::getGameVariable(v35, "0077")) && (v18 == 11 || v20) ) { LABEL_60: (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v29 + 936LL))(v29, 0); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v29 + 336LL))(v29, 0); } } if ( v134 > 0xF ) { v36 = (void *)v132[1]; if ( v134 + 1 >= 0x1000 ) { v36 = *(void **)(v132[1] - 8LL); if ( (unsigned __int64)(v132[1] - (_QWORD)v36 - 8LL) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v36); } if ( ++v18 < 15 ) continue; CreatorLayer::checkTimedStatus(a1); v37 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v124 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v124); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v37 = *(_QWORD *)&qword_14090BFB0; } if ( !*(_BYTE *)(v37 + 1008) ) { v38 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v124 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v124); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v38 = qword_14090BFD0; } if ( !(unsigned __int8)GameManager::getGameVariable(v38, "0219") ) { v39 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v124 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v124); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v39 = *(_QWORD *)&qword_14090BFB0; } *(_QWORD *)(v39 + 1568) = (char *)a1 + 424; GameLevelManager::getGJContentStatus(); } } v40 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png"); v41 = *(_QWORD *)v40; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v124, 0.0, 0.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v41 + 288))(v40, v42); v43 = *(_QWORD *)v40; v45 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v44); v46 = cocos2d::CCDirector::getScreenBottom(v45) - 1.0; v48 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v47); v49 = cocos2d::CCDirector::getScreenLeft(v48) - 1.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v124, v49, v46); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v43 + 184))(v40, v50); (*(void (__fastcall **)(cocos2d::CCLayer *, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a1 + 456LL))( a1, v40, 1); v51 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png"); v52 = *(_QWORD *)v51; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v124, 1.0, 0.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v52 + 288))(v51, v53); v54 = *(_QWORD *)v51; v56 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v55); v57 = cocos2d::CCDirector::getScreenBottom(v56) - 1.0; v59 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v58); v60 = cocos2d::CCDirector::getScreenRight(v59) + 1.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v124, v60, v57); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v54 + 184))(v51, v61); cocos2d::CCSprite::setFlipX(v51, 1); v62 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png"); v63 = *(_QWORD *)v62; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v124, 0.0, 1.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v63 + 288))(v62, v64); v65 = *(_QWORD *)v62; v67 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v66); v68 = cocos2d::CCDirector::getScreenTop(v67) + 1.0; v70 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v69); v71 = cocos2d::CCDirector::getScreenLeft(v70) - 1.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v124, v71, v68); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v65 + 184))(v62, v72); cocos2d::CCSprite::setFlipY(v62, 1); (*(void (__fastcall **)(cocos2d::CCLayer *, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a1 + 456LL))( a1, v62, 0xFFFFFFFFLL); v73 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png"); v74 = *(_QWORD *)v73; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v124, 1.0, 1.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v74 + 288))(v73, v75); v76 = *(_QWORD *)v73; v78 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v77); v79 = cocos2d::CCDirector::getScreenTop(v78) + 1.0; v81 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v80); v82 = cocos2d::CCDirector::getScreenRight(v81) + 1.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v124, v82, v79); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v76 + 184))(v73, v83); cocos2d::CCSprite::setFlipY(v73, 1); cocos2d::CCSprite::setFlipX(v73, 1); v84 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v124 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480(v124); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v84 = qword_14090BFE0; } Stat = GameStatsManager::getStat(v84, "13"); v86 = (const char *)&xmmword_14071C878; if ( Stat >= 50 ) v86 = "GJ_lock_open_001.png"; v87 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName(v86); v124 = operator new(0x208u); v88 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v124); if ( !v88 ) goto LABEL_85; if ( CCMenuItemSpriteExtra::init((__int64 *)v88, v87, 0, (__int64)a1, (__int64)CreatorLayer::onSecretVault) ) { cocos2d::CCObject::autorelease(v88); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v88 + 8LL))(v88, 1); LABEL_85: v88 = nullptr; } (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v13 + 464LL))(v13, v88); v89 = *(_QWORD *)v88; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v124, v126 - 22.0, v127 - 18.0); cocos2d::CCNode::convertToNodeSpace(v13, &v131, v90); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v89 + 184))(v88, v91); if ( Stat < 50 ) { v92 = (float)(*(float *)((*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v88 + 320LL))(v88) + 4) * 0.5) - 22.0; v93 = (float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v88 + 320LL))(v88); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v128, *v93 * 0.5, v92); v94 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_diamondsIcon_001.png"); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCSprite *))(*v87 + 464))(v87, v94); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v130, 9.0, -1.0); cocos2d::CCPoint::operator+(&v128, &v125, v95); (*(void (__fastcall **)(struct cocos2d::CCSprite *, void **))(*(_QWORD *)v94 + 184LL))(v94, &v125); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v94 + 160LL))(v94); v96 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, 50); CString = cocos2d::CCString::getCString(v96); v98 = cocos2d::CCLabelBMFont::create(CString, (const char *)&qword_140704F78); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCLabelBMFont *))(*v87 + 464))(v87, v98); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v130, -8.5, 0.0); cocos2d::CCPoint::operator+(&v128, &v125, v99); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v98 + 184LL))(v98, &v125); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v98 + 160LL))(v98); } *((_DWORD *)v88 + 93) = 0x40000000; v100 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v130 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v130); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v100 = qword_14090BFD0; } UGV = GameManager::getUGV(v100, &word_14070D048); v102 = "secretDoorBtn_closed_001.png"; if ( UGV ) v102 = "secretDoorBtn_open_001.png"; v103 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName(v102); *((_QWORD *)a1 + 54) = v103; v124 = operator new(0x208u); v104 = CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v124); if ( !v104 ) goto LABEL_96; if ( CCMenuItemSpriteExtra::init((__int64 *)v104, v103, 0, (__int64)a1, (__int64)CreatorLayer::onTreasureRoom) ) { cocos2d::CCObject::autorelease((cocos2d::CCObject *)v104); } else { (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v104 + 8LL))(v104, 1); LABEL_96: v104 = 0; } *(_WORD *)(v104 + 408) = 256; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 464LL))(v13, v104); v105 = *(_QWORD *)v104; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v124, v126 - 22.0, 24.0); cocos2d::CCNode::convertToNodeSpace(v13, &v131, v106); (*(void (__fastcall **)(__int64, __int64))(v105 + 184))(v104, v107); *(_DWORD *)(v104 + 372) = 1067030938; v108 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_03_001.png"); v124 = operator new(0x208u); v109 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v124); if ( !v109 ) goto LABEL_101; if ( CCMenuItemSpriteExtra::init((__int64 *)v109, v108, 0, (__int64)a1, (__int64)CreatorLayer::onBack) ) { cocos2d::CCObject::autorelease(v109); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v109 + 8LL))(v109, 1); LABEL_101: v109 = nullptr; } *((_DWORD *)v109 + 93) = 1070386381; v110 = cocos2d::CCMenu::create(v109, 0); (*(void (__fastcall **)(cocos2d::CCLayer *, struct cocos2d::CCMenu *, __int64))(*(_QWORD *)a1 + 456LL))( a1, v110, 1); v111 = *(_QWORD *)v110; v113 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v112); v114 = cocos2d::CCDirector::getScreenTop(v113) - 23.0; v116 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v115); v117 = cocos2d::CCDirector::getScreenLeft(v116) + 24.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v124, v117, v114); (*(void (__fastcall **)(struct cocos2d::CCMenu *, __int64))(v111 + 184))(v110, v118); v120 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v124 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v124); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v120 = qword_14090BFD0; } *(_QWORD *)(v120 + 996) = 0; if ( *(_BYTE *)(cocos2d::CCApplication::sharedApplication(v119) + 209) ) GameToolbox::addBackButton((__int64)a1, (__int64)v109); v121 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v124 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v124); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v121 = qword_14090BFD0; } if ( *(_DWORD *)(v121 + 692) == *(_DWORD *)(v121 + 696) ) { if ( !*(_QWORD *)&qword_14090BFB0 ) { v124 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v124); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); } GameLevelManager::updateUserScore(); } result = 1; break; } break; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source