// // LevelInfoLayer::init from 0x1002bd470 to 0x1002bf75c (8940 bytes) // // 1 xrefs: // > LevelInfoLayer::create @ 0x1002bd416 // // 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 // bool __fastcall LevelInfoLayer::init(LevelInfoLayer *a1, GJGameLevel *a2, bool a3) { bool result; // al cocos2d::CCArray *v6; // rax GJGameLevel *m_level; // rax LoadingCircle *v8; // rax cocos2d::CCMenu *v9; // rax cocos2d::CCMenu *v10; // rsi LevelInfoLayer_vtbl *v11; // rax GJGameLevel *v12; // rax int random; // r13d int v14; // r13d bool v15; // r12 cocos2d::CCSprite *v16; // r14 bool m_challenge; // r15 const char *v18; // r14 cocos2d::CCSprite *v19; // r12 cocos2d::CCDirector *v20; // rax cocos2d::CCDirector *v21; // rax double v22; // xmm0_8 LevelInfoLayer *v23; // rbx cocos2d::CCSprite *v24; // r14 cocos2d::CCDirector *v25; // rax cocos2d::CCDirector *v26; // rax double v27; // xmm0_8 float v28; // xmm1_4 double v29; // xmm0_8 bool v30; // r15 const char *v31; // rdi GJGameLevel *v32; // rax std::string *p_m_levelName; // rax cocos2d::CCLabelBMFont *v34; // r14 cocos2d::CCObject *v35; // rbx cocos2d::CCDirector *v36; // rax double v37; // xmm0_8 int v38; // ecx double v39; // xmm0_8 const std::string::value_type *v40; // rsi const char *data; // rdi cocos2d::CCLabelBMFont *v42; // r12 unsigned __int64 *v43; // r13 float v44; // xmm0_4 double v45; // xmm2_8 __int64 v46; // rax GameLevelManager *v47; // rax cocos2d::CCString *v48; // rax const char *CString; // r15 cocos2d::CCLabelBMFont *v50; // r13 __int64 v51; // rax CCMenuItemSpriteExtra *v52; // r15 cocos2d::CCObject *v53; // r14 const cocos2d::CCPoint *v54; // rbx _DWORD *v55; // rax double v56; // xmm0_8 int v57; // ebx GameManager *v58; // rax bool GameVariable; // al LevelInfoLayer *v60; // rbx cocos2d::CCSprite *v61; // r14 cocos2d::CCObject *v62; // r12 cocos2d::CCSprite *v63; // r14 bool v64; // cc cocos2d::CCSprite *v65; // r14 cocos2d::CCSprite *v66; // rax CCMenuItemSpriteExtra *v67; // r14 __int128 v68; // xmm0 GJGameLevel *v69; // rax GJGameLevel *v70; // r14 const cocos2d::CCPoint *v71; // r13 std::string *p_m_levelString; // rax unsigned int v73; // eax bool v74; // bl bool v75; // zf cocos2d::CCDirector *v76; // rax cocos2d::CCDirector *v77; // rax double v78; // xmm0_8 cocos2d::CCSprite *v79; // rax CCMenuItemSpriteExtra *v80; // r14 cocos2d::CCSprite *v81; // rax CCMenuItemSpriteExtra *v82; // r15 cocos2d::CCSprite *v83; // rax CCMenuItemSpriteExtra *v84; // r12 cocos2d::CCSprite *v85; // rax CCMenuItemSpriteExtra *v86; // r14 unsigned __int64 *v87; // r15 cocos2d::CCSprite *v88; // rax CCMenuItemSpriteExtra *v89; // rax CCMenuItemSpriteExtra *m_likeBtn; // r15 unsigned __int64 *v91; // r14 double *v92; // rax double v93; // xmm0_8 GJGameLevel *v94; // rax cocos2d::CCSprite *v95; // rax CCMenuItemSpriteExtra *v96; // rax CCMenuItemSpriteExtra *m_starRateBtn; // r14 double *v98; // rax const cocos2d::CCPoint *v99; // r12 GameManager *v100; // rax const char *v101; // rdi GJGameLevel *v102; // rax cocos2d::CCSprite *v103; // rax CCMenuItemSpriteExtra *v104; // rax CCMenuItemSpriteExtra *m_demonRateBtn; // r14 double *v106; // rax GameManager *v107; // rax _BOOL8 v108; // rbx cocos2d::CCDirector *v109; // rax float v110; // xmm0_4 float v111; // xmm1_4 cocos2d::CCObject *v112; // rbx double v113; // xmm0_8 GameManager *v114; // rax cocos2d::CCSprite *v115; // rax CCMenuItemSpriteExtra *v116; // r14 double *v117; // rax GameManager *v118; // rax int v119; // edx char v120; // bl GJAccountManager *v121; // rax GJAccountManager *v122; // rax GameManager *v123; // rax cocos2d::CCSprite *v124; // rax CCMenuItemSpriteExtra *v125; // r14 double *v126; // rax GameManager *v127; // rax cocos2d::CCSprite *v128; // rax LevelInfoLayer *v129; // rbx CCMenuItemSpriteExtra *v130; // r14 LevelInfoLayer *v131; // r12 double *v132; // rax const char *v133; // rdi cocos2d::CCSprite *v134; // rax LevelInfoLayer *v135; // rbx CCMenuItemSpriteExtra *v136; // rax CCMenuItemSpriteExtra *m_cloneBtn; // r14 double *v138; // rax double v139; // xmm0_8 CCMenuItemSpriteExtra *v140; // r14 unsigned __int8 v141; // al cocos2d::CCSprite *v142; // rax CCMenuItemSpriteExtra *v143; // r14 int v144; // edx int v145; // ecx int v146; // r8d int v147; // r9d __int64 v148; // r14 cocos2d::CCDirector *v149; // rax cocos2d::CCDirector *v150; // rax double v151; // xmm0_8 GameStatsManager *v152; // rax GJGameLevel *v153; // rax GameStatsManager *v154; // rax GameStatsManager *v155; // rax cocos2d::CCMenu *v156; // rbx cocos2d::CCSprite *v157; // rax CCMenuItemSpriteExtra *v158; // r14 cocos2d::CCDirector *v159; // rax cocos2d::CCDirector *v160; // rax double v161; // xmm0_8 cocos2d::CCMenu *v162; // r14 cocos2d::CCSprite *v163; // rax CCMenuItemSpriteExtra *v164; // r15 const char *v165; // rdi cocos2d::CCSprite *v166; // rax CCMenuItemSpriteExtra *v167; // r12 unsigned __int64 *v168; // r14 CCMenuItemSpriteExtra_vtbl *v169; // rax cocos2d::CCSprite *v170; // r15 CCMenuItemSpriteExtra *v171; // r13 cocos2d::CCSprite *v172; // r14 CCMenuItemSpriteExtra *v173; // r12 CCMenuItemSpriteExtra_vtbl *v174; // rax unsigned __int64 *v175; // r14 CCMenuItemSpriteExtra_vtbl *v176; // rax CCMenuItemSpriteExtra *v177; // rdi cocos2d::CCObject *v178; // r12 __int64 v179; // rax int v180; // r13d SongInfoObject *SongObject; // rax SongInfoObject *v182; // r14 CustomSongWidget *v183; // rax __int64 v184; // r15 cocos2d::CCDirector *v185; // rax double v186; // xmm0_8 float v187; // xmm1_4 __int128 v188; // xmm0 __int64 v189; // rax __int64 v190; // r14 cocos2d::CCMenu *v191; // r14 cocos2d::CCDirector *v192; // rax cocos2d::CCDirector *v193; // rax double v194; // xmm0_8 cocos2d::CCSprite *v195; // r15 CCMenuItemSpriteExtra *v196; // r15 cocos2d::CCObject *v197; // rbx cocos2d::CCSprite *v198; // r14 cocos2d::CCString *v199; // rax const char *v200; // rax cocos2d::CCLabelBMFont *v201; // rax __int64 v202; // r13 __int64 v203; // rax CCMenuItemSpriteExtra *v204; // r13 const cocos2d::CCPoint *v205; // r12 cocos2d::CCSprite *v206; // r14 CCMenuItemSpriteExtra *v207; // r14 __int64 v208; // r15 unsigned __int64 *v209; // rsi GJGameLevel *v210; // r15 CCMenuItemSpriteExtra *v211; // rbx CCMenuItemSpriteExtra *v212; // rbx CCMenuItemSpriteExtra *v213; // rbx LevelInfoLayer *v214; // rbx GJGameLevel *v215; // rax LevelInfoLayer *v216; // rbx cocos2d::CCSprite *v217; // r14 __int64 v218; // rax GJGameLevel *v219; // rax GameLevelManager *v220; // rax GameLevelManager *v221; // rax std::string::size_type size; // rbx GJGameLevel *v223; // rax int m_levelVersion; // ebx GameLevelManager *v225; // rax char v226; // [rsp+0h] [rbp-140h] char v227; // [rsp+0h] [rbp-140h] float v228; // [rsp+18h] [rbp-128h] BYREF unsigned __int64 v229; // [rsp+20h] [rbp-120h] BYREF CCMenuItemSpriteExtra *v230; // [rsp+28h] [rbp-118h] __int128 v231; // [rsp+30h] [rbp-110h] BYREF void *v232; // [rsp+40h] [rbp-100h] __int128 v233; // [rsp+50h] [rbp-F0h] BYREF void *v234; // [rsp+60h] [rbp-E0h] unsigned __int64 v235; // [rsp+68h] [rbp-D8h] BYREF CCMenuItemSpriteExtra *v236; // [rsp+70h] [rbp-D0h] unsigned __int64 v237; // [rsp+78h] [rbp-C8h] BYREF GJGameLevel *v238; // [rsp+80h] [rbp-C0h] CCMenuItemSpriteExtra *v239; // [rsp+88h] [rbp-B8h] _BYTE v240[4]; // [rsp+90h] [rbp-B0h] BYREF float v241; // [rsp+94h] [rbp-ACh] CCMenuItemSpriteExtra *v242; // [rsp+98h] [rbp-A8h] __int128 v243; // [rsp+A0h] [rbp-A0h] BYREF void *__p; // [rsp+B0h] [rbp-90h] unsigned __int64 v245; // [rsp+BCh] [rbp-84h] BYREF unsigned __int64 v246; // [rsp+C4h] [rbp-7Ch] BYREF unsigned __int64 v247; // [rsp+CCh] [rbp-74h] BYREF float v248; // [rsp+D4h] [rbp-6Ch] BYREF float v249; // [rsp+D8h] [rbp-68h] bool v250; // [rsp+DFh] [rbp-61h] cocos2d::CCMenu *v251; // [rsp+E0h] [rbp-60h] LevelInfoLayer *v252; // [rsp+E8h] [rbp-58h] std::string m_levelString; // [rsp+F0h] [rbp-50h] BYREF unsigned __int64 v254; // [rsp+10Ch] [rbp-34h] BYREF float v255; // [rsp+114h] [rbp-2Ch] double v256; // 0:xmm0_8.8 double v257; // 0:xmm0_8.8 cocos2d::CCPoint v258; // 0:xmm0_8.8 double v259; // 0:xmm0_8.8 double v260; // 0:xmm0_8.8 double v261; // 0:xmm0_8.8 double v262; // 0:xmm0_8.8 result = cocos2d::CCLayer::init(a1); if ( result ) { v250 = result; a1->m_level = a2; cocos2d::CCObject::retain(a2); a1->m_challenge = a3; v6 = (cocos2d::CCArray *)sub_10071F9E0(a2, a2); a1->m_coins = v6; cocos2d::CCObject::retain(v6); m_level = a1->m_level; m_level->m_levelNotDownloaded = 0; a1->m_levelType = a2->m_levelType; if ( m_level->m_dailyID.random <= m_level->m_dailyID.seed && !m_level->m_gauntletLevel ) GameManager::sharedState()->m_currentLevelID = a1->m_level->m_levelID.random - a1->m_level->m_levelID.seed; v8 = LoadingCircle::create(); a1->m_circle = v8; v8->m_parentLayer = a1; v8->m_fade = 0; cocos2d::CCObject::retain(v8); LoadingCircle::show(a1->m_circle); ((void (__fastcall *)(LoadingCircle *, _QWORD))a1->m_circle->setVisible)(a1->m_circle, 0); ((void (__fastcall *)(LevelInfoLayer *, __int64))a1->setKeypadEnabled)(a1, 1); ((void (__fastcall *)(LevelInfoLayer *, __int64))a1->setKeyboardEnabled)(a1, 1); cocos2d::CCDirector::sharedDirector(); *(cocos2d::CCSize *)&v256 = cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v248); v9 = cocos2d::CCMenu::create(); a1->m_playBtnMenu = v9; ((void (__fastcall *)(LevelInfoLayer *, cocos2d::CCMenu *, __int64, double))a1->addChild_0)(a1, v9, 3, v256); v10 = cocos2d::CCMenu::create(); v11 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v251 = v10; ((void (__fastcall *)(LevelInfoLayer *, cocos2d::CCMenu *, __int64))v11->addChild_0)(a1, v10, 2); v12 = a1->m_level; LODWORD(v242) = v12->m_dailyID.random; LODWORD(v239) = v12->m_dailyID.seed; random = a2->m_dailyID.random; v238 = a2; v14 = random - a2->m_dailyID.seed; LODWORD(v236) = v14 - 100001; v15 = v12->m_gauntletLevel || (unsigned int)(v14 - 100001) < 0x186A0; v16 = cocos2d::CCSprite::create_1("GJ_gradientBG.png"); sub_10028CBE0((float *)&v243, 0.0, 0.0); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *))v16->setAnchorPoint)(v16, &v243); ((void (__fastcall *)(LevelInfoLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v16, 4294967294LL); ((void (__fastcall *)(cocos2d::CCSprite *, float))v16->setScaleX)( v16, (float)(v248 + 10.0) / v16->m_obRect.size.width); ((void (__fastcall *)(cocos2d::CCSprite *, float))v16->setScaleY)( v16, (float)(v249 + 10.0) / v16->m_obRect.size.height); sub_10028CBE0((float *)&v243, -5.0, -5.0); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *))v16->setPosition)(v16, &v243); BYTE2(v243) = -1; LOWORD(v243) = 26112; ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *))v16->setColor)(v16, &v243); v252 = a1; if ( v15 ) { m_challenge = 1; if ( v14 < 200001 ) goto LABEL_13; } else { m_challenge = a1->m_challenge; if ( v14 <= 200000 ) { if ( m_challenge ) { LABEL_13: memset(&v243, 51, 3); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *))v16->setColor)(v16, &v243); v18 = "gauntletCorner_001.png"; goto LABEL_15; } v18 = "GJ_sideArt_001.png"; LABEL_15: v19 = cocos2d::CCSprite::createWithSpriteFrameName(v18); sub_10028CBE0((float *)&v243, 0.0, 0.0); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *))v19->setAnchorPoint)(v19, &v243); v20 = cocos2d::CCDirector::sharedDirector(); v255 = sub_100484D90(v20) + -1.0; v21 = cocos2d::CCDirector::sharedDirector(); v22 = sub_100484D80(v21); sub_10028CBE0((float *)&v243, v255, *(float *)&v22 + -1.0); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *))v19->setPosition)(v19, &v243); v23 = v252; ((void (__fastcall *)(LevelInfoLayer *, cocos2d::CCSprite *, __int64))v252->addChild_0)(v252, v19, 1); v24 = cocos2d::CCSprite::createWithSpriteFrameName(v18); sub_10028CBE0((float *)&v243, 1.0, 0.0); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *))v24->setAnchorPoint)(v24, &v243); v25 = cocos2d::CCDirector::sharedDirector(); v255 = sub_100484DA0(v25) + 1.0; v26 = cocos2d::CCDirector::sharedDirector(); v27 = sub_100484D80(v26); v28 = *(float *)&v27 + -1.0; *(_QWORD *)&v29 = LODWORD(v255); sub_10028CBE0((float *)&v243, v255, v28); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *))v24->setPosition)(v24, &v243); cocos2d::CCSprite::setFlipX(v24, 1); ((void (__fastcall *)(LevelInfoLayer *, cocos2d::CCSprite *, __int64))v23->addChild_0)(v23, v24, 1); v30 = v23->m_challenge; if ( v30 ) { v31 = "Challenge"; LABEL_22: v34 = cocos2d::CCLabelBMFont::create_3(v31, "bigFont.fnt"); if ( !v30 && (v243 & 1) != 0 ) operator delete(__p); v35 = v252; ((void (__fastcall *)(LevelInfoLayer *, cocos2d::CCLabelBMFont *, __int64))v252->addChild_0)(v252, v34, 20); v255 = v248 * 0.5; v36 = cocos2d::CCDirector::sharedDirector(); v37 = sub_100484D70(v36); sub_10028CBE0((float *)&m_levelString, v255, *(float *)&v37 + -17.0); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v34->setPosition)(v34, &m_levelString); v38 = 300; if ( (int)v242 > (int)v239 ) v38 = 260; HIDWORD(v39) = 0; *(float *)&v39 = (float)v38; cocos2d::CCLabelBMFont::limitLabelWidth(v34, (float)v38, 0.80000001, 0.0); if ( (int)v242 > (int)v239 ) { m_levelString.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(m_levelString.__r_.__value_.__s.__data_, "(Daily)"); if ( v14 > 100000 ) { v40 = "(Event)"; if ( (unsigned int)v236 < 0x186A0 ) v40 = "(Weekly)"; std::string::assign(&m_levelString, v40); } if ( (*(_BYTE *)&m_levelString.__r_.__value_.__s.0 & 1) != 0 ) data = m_levelString.__r_.__value_.__l.__data_; else data = m_levelString.__r_.__value_.__s.__data_; v42 = cocos2d::CCLabelBMFont::create_3(data, "goldFont.fnt"); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v42->setScale)(v42, 0.60000002); ((void (__fastcall *)(cocos2d::CCObject *, cocos2d::CCLabelBMFont *, __int64))v35->__vftable[5].encodeWithCoder)( v35, v42, 20); sub_10028CBE0((float *)&v245, 0.0, 0.5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, unsigned __int64 *))v42->setAnchorPoint)(v42, &v245); v43 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v34->getPosition)(v34); v255 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v34->getContentSize)(v34); v44 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *))v34->getScale)(v34); *(_QWORD *)&v45 = LODWORD(v255); *(float *)&v45 = (float)((float)(v255 * 0.5) * v44) + 3.0; v39 = v45; sub_10028CBE0((float *)&v237, *(float *)&v45, -0.5); sub_10028CCE0((double *)&v245, v43, &v237); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, unsigned __int64 *))v42->setPosition)(v42, &v245); if ( (*(_BYTE *)&m_levelString.__r_.__value_.__s.0 & 1) != 0 ) operator delete(m_levelString.__r_.__value_.__l.__data_); } v46 = *(_QWORD *)&v35[8].m_uOrderOfArrival; LODWORD(v255) = *(_DWORD *)(v46 + 580) - *(_DWORD *)(v46 + 584); if ( v255 == 0.0 ) { v47 = GameLevelManager::sharedState(); v255 = COERCE_FLOAT( GameLevelManager::accountIDForUserID( v47, *(_DWORD *)(*(_QWORD *)&v35[8].m_uOrderOfArrival + 568LL) - *(_DWORD *)(*(_QWORD *)&v35[8].m_uOrderOfArrival + 572LL))); v46 = *(_QWORD *)&v35[8].m_uOrderOfArrival; if ( (*(_BYTE *)(v46 + 416) & 1) == 0 ) goto LABEL_39; } else if ( (*(_BYTE *)(v46 + 416) & 1) == 0 ) { LABEL_39: m_levelString = *(std::string *)(v46 + 416); goto LABEL_42; } sub_100006B70(&m_levelString, *(const void **)(v46 + 432), *(_QWORD *)(v46 + 424), v39); LABEL_42: v48 = (cocos2d::CCString *)sub_1007AB580("By %s", v226); CString = cocos2d::CCString::getCString(v48); if ( (*(_BYTE *)&m_levelString.__r_.__value_.__s.0 & 1) != 0 ) operator delete(m_levelString.__r_.__value_.__l.__data_); v50 = cocos2d::CCLabelBMFont::create_3(CString, "goldFont.fnt"); *(float *)&v242 = v248 * 0.5; v51 = ((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v34->getPosition)(v34); sub_10028CBE0((float *)&v245, *(float *)&v242, *(float *)(v51 + 4) + -26.0); cocos2d::CCLabelBMFont::limitLabelWidth(v50, 300.0, 0.80000001, 0.0); v52 = CCMenuItemSpriteExtra::create( v50, nullptr, v35, (cocos2d::SEL_MenuHandler)(unsigned __int64)LevelInfoLayer::onViewProfile); v53 = v35; v54 = (const cocos2d::CCPoint *)v251; ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v251->addChild)(v251, v52); *(cocos2d::CCPoint *)&v257 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&m_levelString, v54); ((void (__fastcall *)(CCMenuItemSpriteExtra *, std::string *, double))v52->setPosition)( v52, &m_levelString, v257); if ( v255 == 0.0 ) { m_levelString.__r_.__value_.__s.__data_[1] = -1; *(_WORD *)&m_levelString.__r_.__value_.__l.0 = -166; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v50->setColor)(v50, &m_levelString); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v52->setEnabled)(v52, 0); } LODWORD(v242) = v245; v55 = (_DWORD *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v50->getContentSize)(v50); *(_QWORD *)&v56 = (unsigned int)*v55; LODWORD(v239) = *v55; *(float *)&v56 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *))v50->getScale)(v50); *(float *)&v56 = (float)((float)((float)(*(float *)&v56 * *(float *)&v239) * 0.5) + *(float *)&v242) + 6.0; sub_10028CBE0((float *)&v237, *(float *)&v56, *((float *)&v245 + 1) + -1.0); if ( LOBYTE(v53[12].m_nTag) == 1 ) { ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD))v50->setVisible)(v50, 0); v56 = sub_10028CC90(&v237, (double *)&v245); } v57 = *(_DWORD *)(*(_QWORD *)&v53[8].m_uOrderOfArrival + 612LL) - *(_DWORD *)(*(_QWORD *)&v53[8].m_uOrderOfArrival + 616LL); if ( v238->m_originalLevel.random == v238->m_originalLevel.seed ) { if ( v57 <= 40000 && SLODWORD(v255) > 0 ) { v58 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v58, "0047"); v60 = v252; if ( !GameVariable && !v252->m_challenge ) { v61 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_viewProfileTxt_001.png"); ((void (__fastcall *)(LevelInfoLayer *, cocos2d::CCSprite *, __int64, double))v60->addChild_0)( v60, v61, 2, v56); *(_QWORD *)&v56 = *(unsigned int *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v50->getContentSize)(v50); v255 = *(float *)&v56 * 0.5; *(float *)&v56 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *))v50->getScale)(v50); *(float *)&v56 = (float)(*(float *)&v56 * v255) + 48.0; sub_10028CBE0((float *)&v235, *(float *)&v56, -1.0); sub_10028CCE0((double *)&m_levelString, &v245, &v235); ((void (__fastcall *)(cocos2d::CCSprite *, std::string *))v61->setPosition)(v61, &m_levelString); } goto LABEL_57; } } else { v62 = v53; v63 = cocos2d::CCSprite::createWithSpriteFrameName("collaborationIcon_001.png"); sub_10028CBE0((float *)&m_levelString, 0.0, 0.5); ((void (__fastcall *)(cocos2d::CCSprite *, std::string *))v63->setAnchorPoint)(v63, &m_levelString); ((void (__fastcall *)(cocos2d::CCObject *, cocos2d::CCSprite *))v62->__vftable[5].update)(v62, v63); ((void (__fastcall *)(cocos2d::CCSprite *, unsigned __int64 *))v63->setPosition)(v63, &v237); sub_10028CBE0((float *)&v235, 18.0, 0.0); sub_10028CCE0((double *)&m_levelString, &v237, &v235); v56 = sub_10028CC90(&v237, (double *)&m_levelString); } v64 = v57 < 40001; v60 = v252; if ( !v64 ) { v65 = cocos2d::CCSprite::createWithSpriteFrameName("highObjectIcon_001.png"); sub_10028CBE0((float *)&m_levelString, 0.0, 0.5); ((void (__fastcall *)(cocos2d::CCSprite *, std::string *))v65->setAnchorPoint)(v65, &m_levelString); ((void (__fastcall *)(LevelInfoLayer *, cocos2d::CCSprite *, __int64))v60->addChild_0)(v60, v65, 10); ((void (__fastcall *)(cocos2d::CCSprite *, unsigned __int64 *))v65->setPosition)(v65, &v237); sub_10028CBE0((float *)&v235, 18.0, 0.0); sub_10028CCE0((double *)&m_levelString, &v237, &v235); v56 = sub_10028CC90(&v237, (double *)&m_levelString); } LABEL_57: v66 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_playBtn2_001.png"); v60->m_playSprite = v66; v67 = CCMenuItemSpriteExtra::create( v66, nullptr, v60, (cocos2d::SEL_MenuHandler)(unsigned __int64)LevelInfoLayer::onPlay); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *, double))v60->m_playBtnMenu->addChild)( v60->m_playBtnMenu, v67, v56); sub_10028CBE0((float *)&v235, v248 * 0.5, (float)(v249 * 0.5) + 51.0); *(cocos2d::CCPoint *)&v68 = cocos2d::CCNode::convertToNodeSpace( (cocos2d::CCNode *)&m_levelString, (const cocos2d::CCPoint *)v60->m_playBtnMenu); ((void (__fastcall *)(CCMenuItemSpriteExtra *, std::string *, double))v67->setPosition)( v67, &m_levelString, *(double *)&v68); ((void (__fastcall *)(cocos2d::CCSprite *, unsigned __int64 *))v60->m_circle->m_sprite->setPosition)( v60->m_circle->m_sprite, &v235); v69 = v60->m_level; v70 = v238; v71 = (const cocos2d::CCPoint *)v251; if ( v69->m_levelType == SearchResult ) { LABEL_68: LevelInfoLayer::downloadLevel(v60); goto LABEL_69; } if ( (v69->m_levelString.m_data.m_short.sizex2 & 1) != 0 ) { sub_100006B70( &m_levelString, v69->m_levelString.m_data.m_long.longStorage, v69->m_levelString.m_data.m_long.size, *(double *)&v68); v73 = (unsigned int)m_levelString.__r_.__value_.__l.0; if ( (*(_BYTE *)&m_levelString.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_60: if ( v73 >> 1 ) goto LABEL_65; LABEL_64: if ( GameLevelManager::sharedState()->m_searchType != SavedLevels ) { v74 = GameLevelManager::sharedState()->m_searchType != FavouriteLevels; if ( (*(_BYTE *)&m_levelString.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_67: v75 = !v74; v60 = v252; if ( !v75 ) goto LABEL_68; v102 = v252->m_level; if ( (v102->m_levelString.m_data.m_short.sizex2 & 1) != 0 ) sub_100006B70( &m_levelString, v102->m_levelString.m_data.m_long.longStorage, v102->m_levelString.m_data.m_long.size, *(double *)&v68); else m_levelString = (std::string)v102->m_levelString; if ( (*(_BYTE *)&m_levelString.__r_.__value_.__s.0 & 1) != 0 ) { size = m_levelString.__r_.__value_.__l.__size_; operator delete(m_levelString.__r_.__value_.__l.__data_); v75 = size == 0; v60 = v252; if ( !v75 ) goto LABEL_69; } else { v60 = v252; if ( *(_BYTE *)&m_levelString.__r_.__value_.__l.0 >> 1 ) goto LABEL_69; } v60->m_noUpdateAlert = 1; ((void (__fastcall *)(cocos2d::CCMenu *, _QWORD))v60->m_playBtnMenu->setVisible)( v60->m_playBtnMenu, 0); ((void (__fastcall *)(LoadingCircle *, __int64))v60->m_circle->setVisible)(v60->m_circle, 1); GameLevelManager::sharedState()->m_levelUpdateDelegate = &v60->LevelUpdateDelegate; v223 = v60->m_level; m_levelVersion = v223->m_levelVersion; v223->m_levelVersion = -1; v225 = GameLevelManager::sharedState(); GameLevelManager::updateLevel(v225, v252->m_level); v70->m_levelVersion = m_levelVersion; v60 = v252; LABEL_69: LevelInfoLayer::setupLevelInfo(v60); if ( !v60->m_challenge ) { if ( GJGameLevel::isPlatformer(v60->m_level) ) LevelInfoLayer::setupPlatformerStats(v60); else LevelInfoLayer::setupProgressBars(v60); } v76 = cocos2d::CCDirector::sharedDirector(); v255 = sub_100484DA0(v76) + -30.0; v77 = cocos2d::CCDirector::sharedDirector(); v78 = sub_100484D70(v77); sub_10028CBE0(&v228, v255, *(float *)&v78 + -30.0); v258 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v240, v71); if ( v60->m_level->m_dailyID.random <= v60->m_level->m_dailyID.seed ) { v79 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_deleteBtn_001.png"); v80 = CCMenuItemSpriteExtra::create( v79, nullptr, v60, (cocos2d::SEL_MenuHandler)(unsigned __int64)LevelInfoLayer::confirmDelete); (*(void (__fastcall **)(const cocos2d::CCPoint *, CCMenuItemSpriteExtra *, double))(*(_QWORD *)v71 + 440LL))( v71, v80, *(double *)&v258); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _BYTE *))v80->setPosition)(v80, v240); v258 = (cocos2d::CCPoint)LODWORD(v241); v258.x = v241 + -50.0; v241 = v241 + -50.0; } v81 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_updateBtn_001.png"); v82 = CCMenuItemSpriteExtra::create( v81, nullptr, v60, (cocos2d::SEL_MenuHandler)(unsigned __int64)LevelInfoLayer::onUpdate); (*(void (__fastcall **)(const cocos2d::CCPoint *, CCMenuItemSpriteExtra *, double))(*(_QWORD *)v71 + 440LL))( v71, v82, *(double *)&v258); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _BYTE *))v82->setPosition)(v82, v240); v241 = v241 + -50.0; v83 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoBtn_001.png"); v84 = CCMenuItemSpriteExtra::create( v83, nullptr, v60, (cocos2d::SEL_MenuHandler)(unsigned __int64)LevelInfoLayer::onInfo); (*(void (__fastcall **)(const cocos2d::CCPoint *, CCMenuItemSpriteExtra *))(*(_QWORD *)v71 + 440LL))( v71, v84); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _BYTE *))v84->setPosition)(v84, v240); v85 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_levelLeaderboardBtn_001.png"); v86 = CCMenuItemSpriteExtra::create( v85, nullptr, v60, (cocos2d::SEL_MenuHandler)(unsigned __int64)LevelInfoLayer::onLevelLeaderboard); (*(void (__fastcall **)(const cocos2d::CCPoint *, CCMenuItemSpriteExtra *))(*(_QWORD *)v71 + 440LL))( v71, v86); v87 = (unsigned __int64 *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v84->getPosition)(v84); sub_10028CBE0((float *)&v246, 0.0, -50.0); sub_10028CCE0((double *)&m_levelString, v87, &v246); ((void (__fastcall *)(CCMenuItemSpriteExtra *, std::string *))v86->setPosition)(v86, &m_levelString); v88 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_like2Btn_001.png"); v89 = CCMenuItemSpriteExtra::create( v88, nullptr, v60, (cocos2d::SEL_MenuHandler)(unsigned __int64)LevelInfoLayer::onLike); v60->m_likeBtn = v89; (*(void (__fastcall **)(const cocos2d::CCPoint *, CCMenuItemSpriteExtra *))(*(_QWORD *)v71 + 440LL))( v71, v89); m_likeBtn = v60->m_likeBtn; v91 = (unsigned __int64 *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v86->getPosition)(v86); sub_10028CBE0((float *)&v246, 0.0, -50.0); sub_10028CCE0((double *)&m_levelString, v91, &v246); ((void (__fastcall *)(CCMenuItemSpriteExtra *, std::string *))m_likeBtn->setPosition)( m_likeBtn, &m_levelString); v92 = (double *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v60->m_likeBtn->getPosition)(v60->m_likeBtn); v93 = sub_10028CC60(&v246, v92); v94 = v60->m_level; if ( v94->m_stars.random == v94->m_stars.seed ) { v95 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_starBtn_001.png"); v96 = CCMenuItemSpriteExtra::create( v95, nullptr, v60, (cocos2d::SEL_MenuHandler)(unsigned __int64)LevelInfoLayer::onRateStars); v60->m_starRateBtn = v96; ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *, double))v251->addChild)( v251, v96, v93); m_starRateBtn = v60->m_starRateBtn; sub_10028CBE0((float *)&v254, 0.0, -50.0); sub_10028CCE0((double *)&m_levelString, &v246, &v254); ((void (__fastcall *)(CCMenuItemSpriteExtra *, std::string *))m_starRateBtn->setPosition)( m_starRateBtn, &m_levelString); v98 = (double *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v60->m_starRateBtn->getPosition)(v60->m_starRateBtn); v93 = sub_10028CC90(&v246, v98); v94 = v60->m_level; } v99 = (const cocos2d::CCPoint *)v251; if ( v94->m_demon.random - v94->m_demon.seed == 1 ) { strcpy((char *)&m_levelString, ",GJ_rateDiffBtn_001.png"); v100 = GameManager::sharedState(); if ( (unsigned int)(v100->m_hasRP.seed - v100->m_hasRP.random) > 0xFFFFFFFD || GameManager::sharedState()->m_hasDRP ) { std::string::assign(&m_levelString, "GJ_rateDiffBtnMod_001.png"); } if ( (*(_BYTE *)&m_levelString.__r_.__value_.__s.0 & 1) != 0 ) v101 = m_levelString.__r_.__value_.__l.__data_; else v101 = m_levelString.__r_.__value_.__s.__data_; v103 = cocos2d::CCSprite::createWithSpriteFrameName(v101); v104 = CCMenuItemSpriteExtra::create( v103, nullptr, v60, (cocos2d::SEL_MenuHandler)(unsigned __int64)LevelInfoLayer::onRateDemon); v60->m_demonRateBtn = v104; (*(void (__fastcall **)(const cocos2d::CCPoint *, CCMenuItemSpriteExtra *))(*(_QWORD *)v99 + 440LL))( v99, v104); m_demonRateBtn = v60->m_demonRateBtn; sub_10028CBE0((float *)&v247, 0.0, -50.0); sub_10028CCE0((double *)&v254, &v246, &v247); ((void (__fastcall *)(CCMenuItemSpriteExtra *, unsigned __int64 *))m_demonRateBtn->setPosition)( m_demonRateBtn, &v254); v106 = (double *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v60->m_demonRateBtn->getPosition)(v60->m_demonRateBtn); v93 = sub_10028CC90(&v246, v106); if ( (*(_BYTE *)&m_levelString.__r_.__value_.__s.0 & 1) != 0 ) operator delete(m_levelString.__r_.__value_.__l.__data_); } if ( v60->m_challenge ) (*(void (__fastcall **)(const cocos2d::CCPoint *, _QWORD, double))(*(_QWORD *)v99 + 328LL))( v99, 0, v93); LevelInfoLayer::updateSideButtons(v60); v107 = GameManager::sharedState(); v108 = (unsigned int)(v107->m_hasRP.seed - v107->m_hasRP.random) >= 0xFFFFFFFE; v109 = cocos2d::CCDirector::sharedDirector(); v110 = sub_100484D90(v109); v111 = (float)((float)(v249 * 0.5) + 50.0) + flt_100819258[v108]; v112 = v252; sub_10028CBE0((float *)&m_levelString, v110 + 30.0, v111); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v254, v99); v113 = sub_10028CC90(&v246, (double *)&v254); v114 = GameManager::sharedState(); if ( (unsigned int)(v114->m_hasRP.seed - v114->m_hasRP.random) >= 0xFFFFFFFE ) { v115 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_starBtnMod_001.png"); v116 = CCMenuItemSpriteExtra::create( v115, nullptr, v112, (cocos2d::SEL_MenuHandler)(unsigned __int64)LevelInfoLayer::onRateStarsMod); (*(void (__fastcall **)(const cocos2d::CCPoint *, CCMenuItemSpriteExtra *, double))(*(_QWORD *)v99 + 440LL))( v99, v116, v113); sub_10028CBE0((float *)&v247, 0.0, -50.0); sub_10028CCE0((double *)&v254, &v246, &v247); ((void (__fastcall *)(CCMenuItemSpriteExtra *, unsigned __int64 *))v116->setPosition)(v116, &v254); v117 = (double *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v116->getPosition)(v116); v99 = (const cocos2d::CCPoint *)v251; v113 = sub_10028CC90(&v246, v117); } v118 = GameManager::sharedState(); v119 = *(_DWORD *)(*(_QWORD *)&v112[8].m_uOrderOfArrival + 568LL) - *(_DWORD *)(*(_QWORD *)&v112[8].m_uOrderOfArrival + 572LL); v120 = 1; if ( v118->m_playerUserID.random - v118->m_playerUserID.seed != v119 ) { v121 = GJAccountManager::sharedState(); if ( v121->m_accountID == v121->m_unkInt1 || (v122 = GJAccountManager::sharedState(), v122->m_accountID - v122->m_unkInt1 != v252->m_level->m_accountID.random - v252->m_level->m_accountID.seed) ) { v123 = GameManager::sharedState(); if ( v123->m_hasRP.random - v123->m_hasRP.seed < 2 ) { LABEL_98: v127 = GameManager::sharedState(); if ( v127->m_hasRP.random <= v127->m_hasRP.seed ) { v133 = "GJ_duplicateLockedBtn_001.png"; if ( v238->m_password.random - v238->m_password.seed == 1 ) v133 = "GJ_duplicateBtn_001.png"; v134 = cocos2d::CCSprite::createWithSpriteFrameName(v133); v135 = v252; v136 = CCMenuItemSpriteExtra::create( v134, nullptr, v252, (cocos2d::SEL_MenuHandler)(unsigned __int64)LevelInfoLayer::tryCloneLevel); v135->m_cloneBtn = v136; (*(void (__fastcall **)(const cocos2d::CCPoint *, CCMenuItemSpriteExtra *, double))(*(_QWORD *)v99 + 440LL))( v99, v136, v113); m_cloneBtn = v135->m_cloneBtn; sub_10028CBE0((float *)&v247, 0.0, -50.0); sub_10028CCE0((double *)&v254, &v246, &v247); v131 = v135; ((void (__fastcall *)(CCMenuItemSpriteExtra *, unsigned __int64 *))m_cloneBtn->setPosition)( m_cloneBtn, &v254); v138 = (double *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v135->m_cloneBtn->getPosition)(v135->m_cloneBtn); v139 = sub_10028CC90(&v246, v138); ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool, double))v135->m_cloneBtn->setVisible)( v135->m_cloneBtn, v135->m_level->m_password.random != v135->m_level->m_password.seed, v139); v140 = v135->m_cloneBtn; v141 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v140->isVisible)(v140); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v140->setEnabled)(v140, v141); LABEL_103: v142 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); v143 = CCMenuItemSpriteExtra::create( v142, nullptr, v131, (cocos2d::SEL_MenuHandler)(unsigned __int64)LevelInfoLayer::onBack); CCMenuItemSpriteExtra::setSizeMult(v143, 1.6); v230 = v143; v148 = sub_100792C50((_DWORD)v143, 0, v144, v145, v146, v147); ((void (__fastcall *)(LevelInfoLayer *, __int64, __int64))v131->addChild_0)(v131, v148, 1); v149 = cocos2d::CCDirector::sharedDirector(); *(float *)&v251 = sub_100484D90(v149) + 24.0; v150 = cocos2d::CCDirector::sharedDirector(); v151 = sub_100484D70(v150); sub_10028CBE0((float *)&v254, *(float *)&v251, *(float *)&v151 + -23.0); (*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v148 + 184LL))(v148, &v254); if ( v131->m_level->m_dailyID.random <= v131->m_level->m_dailyID.seed ) { v152 = GameStatsManager::sharedState(); if ( GameStatsManager::hasCompletedLevel(v152, v131->m_level) ) { v153 = v131->m_level; if ( v153->m_demon.random - v153->m_demon.seed == 1 ) { v154 = GameStatsManager::sharedState(); GameStatsManager::completedDemonLevel(v154, v131->m_level); v153 = v131->m_level; } if ( v153->m_stars.random > v153->m_stars.seed ) { v155 = GameStatsManager::sharedState(); GameStatsManager::completedStarLevel(v155, v131->m_level); } } } v156 = cocos2d::CCMenu::create(); v157 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); v158 = CCMenuItemSpriteExtra::create( v157, nullptr, v131, (cocos2d::SEL_MenuHandler)(unsigned __int64)LevelInfoLayer::onLevelInfo); CCMenuItemSpriteExtra::setSizeMult(v158, 1.2); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v156->addChild)(v156, v158); v159 = cocos2d::CCDirector::sharedDirector(); *(float *)&v251 = sub_100484D90(v159) + 30.0; v160 = cocos2d::CCDirector::sharedDirector(); v161 = sub_100484D80(v160); sub_10028CBE0((float *)&v254, *(float *)&v251, *(float *)&v161 + 30.0); ((void (__fastcall *)(cocos2d::CCMenu *, unsigned __int64 *))v156->setPosition)(v156, &v254); ((void (__fastcall *)(LevelInfoLayer *, cocos2d::CCMenu *, __int64))v131->addChild_0)( v131, v156, 2); v162 = cocos2d::CCMenu::create(); ((void (__fastcall *)(LevelInfoLayer *, cocos2d::CCMenu *, __int64))v131->addChild_0)( v131, v162, 21); sub_10028CBE0((float *)&v254, v248 + -85.0, v249 + -25.0); ((void (__fastcall *)(cocos2d::CCMenu *, unsigned __int64 *))v162->setPosition)(v162, &v254); v163 = cocos2d::CCSprite::createWithSpriteFrameName("garageRope_001.png"); v164 = CCMenuItemSpriteExtra::create( v163, nullptr, v131, (cocos2d::SEL_MenuHandler)(unsigned __int64)LevelInfoLayer::onGarage); CCMenuItemSpriteExtra::setSizeMult(v164, 1.2); CCMenuItemSpriteExtra::useAnimationType(v164, Move); sub_10028CBE0((float *)&v254, 0.0, -8.0); sub_10028CC90(&v164->m_offset, (double *)&v254); *(_QWORD *)&v164->m_duration = 0x3E4CCCCD3E4CCCCDLL; ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v162->addChild)(v162, v164); v165 = "gj_heartOff_001.png"; if ( v131->m_level->m_levelFavorited ) v165 = "gj_heartOn_001.png"; v166 = cocos2d::CCSprite::createWithSpriteFrameName(v165); v167 = CCMenuItemSpriteExtra::create( v166, nullptr, v131, (cocos2d::SEL_MenuHandler)(unsigned __int64)LevelInfoLayer::onFavorite); CCMenuItemSpriteExtra::setSizeMult(v167, 1.1); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *, __int64))v156->addChild_0)( v156, v167, 100); v168 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCMenu *))v156->getPosition)(v156); sub_10028CBE0((float *)&v229, 38.0, 0.0); sub_10028CCE0((double *)&v247, v168, &v229); *(cocos2d::CCPoint *)&v259 = cocos2d::CCNode::convertToNodeSpace( (cocos2d::CCNode *)&v254, (const cocos2d::CCPoint *)v156); v169 = v167->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v242 = v167; ((void (__fastcall *)(CCMenuItemSpriteExtra *, unsigned __int64 *, double))v169->setPosition)( v167, &v254, v259); v170 = cocos2d::CCSprite::createWithSpriteFrameName("edit_leftBtn_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v170->setScale)(v170, 0.89999998); ((void (__fastcall *)(cocos2d::CCSprite *, float))v170->setRotation)(v170, 90.0); v171 = CCMenuItemSpriteExtra::create( v170, nullptr, v252, (cocos2d::SEL_MenuHandler)(unsigned __int64)LevelInfoLayer::confirmMoveToTop); CCMenuItemSpriteExtra::setSizeMult(v171, 1.1); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *, __int64))v156->addChild_0)( v156, v171, 100); sub_10028CBE0((float *)&v247, v248 + -73.0, 55.0); *(cocos2d::CCPoint *)&v260 = cocos2d::CCNode::convertToNodeSpace( (cocos2d::CCNode *)&v254, (const cocos2d::CCPoint *)v156); ((void (__fastcall *)(CCMenuItemSpriteExtra *, unsigned __int64 *, double))v171->setPosition)( v171, &v254, v260); v172 = cocos2d::CCSprite::createWithSpriteFrameName("edit_leftBtn_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v172->setScale)(v172, 0.89999998); cocos2d::CCSprite::setFlipY(v172, 1); ((void (__fastcall *)(cocos2d::CCSprite *, float))v172->setRotation)(v172, -90.0); v173 = CCMenuItemSpriteExtra::create( v172, nullptr, v252, (cocos2d::SEL_MenuHandler)(unsigned __int64)LevelInfoLayer::confirmMoveToBottom); CCMenuItemSpriteExtra::setSizeMult(v173, 1.1); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *, __int64))v156->addChild_0)( v156, v173, 100); v174 = v171->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v239 = v171; v175 = (unsigned __int64 *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v174->getPosition)(v171); sub_10028CBE0((float *)&v247, 0.0, -30.0); sub_10028CCE0((double *)&v254, v175, &v247); v176 = v173->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v236 = v173; v177 = v173; v178 = v252; ((void (__fastcall *)(CCMenuItemSpriteExtra *, unsigned __int64 *))v176->setPosition)( v177, &v254); if ( LOBYTE(v178[12].m_nTag) == 1 ) ((void (__fastcall *)(cocos2d::CCMenu *, _QWORD))v156->setVisible)(v156, 0); v179 = *(_QWORD *)&v178[8].m_uOrderOfArrival; v180 = *(_DWORD *)(v179 + 600); if ( v180 ) SongObject = SongInfoObject::create_1(v180); else SongObject = LevelTools::getSongObject(*(_DWORD *)(v179 + 596)); v182 = SongObject; v183 = CustomSongWidget::create(SongObject, nullptr, 0, 0, 1, v180 == 0, 0, 0, 0); *(_QWORD *)&v178[12].m_uOrderOfArrival = v183; ((void (__fastcall *)(cocos2d::CCObject *, CustomSongWidget *))v178->__vftable[5].update)( v178, v183); v184 = *(_QWORD *)&v178[12].m_uOrderOfArrival; *(float *)&v251 = v248 * 0.5; v185 = cocos2d::CCDirector::sharedDirector(); v186 = sub_100484D80(v185); v187 = *(float *)&v186 + 45.0; *(_QWORD *)&v188 = (unsigned int)v251; sub_10028CBE0((float *)&v254, *(float *)&v251, v187); (*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v184 + 184LL))(v184, &v254); if ( v182->m_unloaded ) CustomSongWidget::onGetSongInfo(*(CustomSongWidget **)&v178[12].m_uOrderOfArrival, nullptr); v189 = *(_QWORD *)&v178[8].m_uOrderOfArrival; v190 = *(_QWORD *)&v178[12].m_uOrderOfArrival; if ( (*(_BYTE *)(v189 + 1128) & 1) != 0 ) { sub_100006B70( &v231, *(const void **)(v189 + 1144), *(_QWORD *)(v189 + 1136), *(double *)&v188); v189 = *(_QWORD *)&v178[8].m_uOrderOfArrival; if ( (*(_BYTE *)(v189 + 1152) & 1) != 0 ) goto LABEL_120; } else { v232 = *(void **)(v189 + 1144); v188 = *(_OWORD *)(v189 + 1128); v231 = v188; if ( (*(_BYTE *)(v189 + 1152) & 1) != 0 ) { LABEL_120: sub_100006B70( &v233, *(const void **)(v189 + 1168), *(_QWORD *)(v189 + 1160), *(double *)&v188); v189 = *(_QWORD *)&v178[8].m_uOrderOfArrival; goto LABEL_123; } } v234 = *(void **)(v189 + 1168); v233 = *(_OWORD *)(v189 + 1152); LABEL_123: CustomSongWidget::updateWithMultiAssets(v190, &v231, &v233, *(unsigned int *)(v189 + 1176)); if ( (v233 & 1) != 0 ) operator delete(v234); v251 = v156; if ( (v231 & 1) != 0 ) operator delete(v232); v191 = cocos2d::CCMenu::create(); v192 = cocos2d::CCDirector::sharedDirector(); v255 = sub_100484D90(v192) + 30.0; v193 = cocos2d::CCDirector::sharedDirector(); v194 = sub_100484D80(v193); sub_10028CBE0((float *)&v254, v255, *(float *)&v194 + 30.0); ((void (__fastcall *)(cocos2d::CCMenu *, unsigned __int64 *))v191->setPosition)(v191, &v254); ((void (__fastcall *)(cocos2d::CCObject *, cocos2d::CCMenu *, __int64))v178->__vftable[5].encodeWithCoder)( v178, v191, 2); v195 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_optionsBtn_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v195->setScale)(v195, 0.60000002); v196 = CCMenuItemSpriteExtra::create( v195, nullptr, v178, (cocos2d::SEL_MenuHandler)(unsigned __int64)LevelInfoLayer::onLevelOptions); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v191->addChild)(v191, v196); sub_10028CBE0((float *)&v247, 30.0, 70.0); v197 = v178; *(cocos2d::CCPoint *)&v261 = cocos2d::CCNode::convertToNodeSpace( (cocos2d::CCNode *)&v254, (const cocos2d::CCPoint *)v191); ((void (__fastcall *)(CCMenuItemSpriteExtra *, unsigned __int64 *, double))v196->setPosition)( v196, &v254, v261); v198 = cocos2d::CCSprite::createWithSpriteFrameName("gj_folderBtn_001.png"); v199 = (cocos2d::CCString *)sub_1007AB580("%i", v227); v200 = cocos2d::CCString::getCString(v199); v201 = cocos2d::CCLabelBMFont::create_3(v200, "bigFont.fnt"); *(_QWORD *)&v178[10].m_uAutoReleaseCount = v201; ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCLabelBMFont *, __int64))v198->addChild_0)( v198, v201, 1); v202 = *(_QWORD *)&v178[10].m_uAutoReleaseCount; v255 = *(float *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v198->getContentSize)(v198) * 0.5; v203 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v198->getContentSize)(v198); sub_10028CBE0((float *)&v254, v255, (float)(*(float *)(v203 + 4) * 0.5) + 1.0); (*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v202 + 184LL))(v202, &v254); cocos2d::CCLabelBMFont::limitLabelWidth( *(cocos2d::CCLabelBMFont **)&v178[10].m_uAutoReleaseCount, 24.0, 0.55000001, 0.0); ((void (__fastcall *)(cocos2d::CCSprite *, float))v198->setScale)(v198, 0.80000001); v204 = CCMenuItemSpriteExtra::create( v198, nullptr, v178, (cocos2d::SEL_MenuHandler)(unsigned __int64)LevelInfoLayer::onSetFolder); v205 = (const cocos2d::CCPoint *)v251; ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v251->addChild)(v251, v204); sub_10028CBE0((float *)&v247, v248 + -73.0, 80.0); *(cocos2d::CCPoint *)&v262 = cocos2d::CCNode::convertToNodeSpace( (cocos2d::CCNode *)&v254, v205); ((void (__fastcall *)(CCMenuItemSpriteExtra *, unsigned __int64 *, double))v204->setPosition)( v204, &v254, v262); v206 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_listAddBtn_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v206->setScale)(v206, 0.89999998); v207 = CCMenuItemSpriteExtra::create( v206, nullptr, v197, (cocos2d::SEL_MenuHandler)(unsigned __int64)LevelInfoLayer::onAddToList); (*(void (__fastcall **)(const cocos2d::CCPoint *, CCMenuItemSpriteExtra *))(*(_QWORD *)v205 + 440LL))( v205, v207); v208 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v204->getPosition)(v204); sub_10028CBE0((float *)&v247, 0.0, 35.0); v209 = (unsigned __int64 *)v208; v210 = v238; sub_10028CCE0((double *)&v254, v209, &v247); ((void (__fastcall *)(CCMenuItemSpriteExtra *, unsigned __int64 *))v207->setPosition)( v207, &v254); if ( v210->m_dailyID.random > v210->m_dailyID.seed || v210->m_gauntletLevel ) { ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v204->setVisible)(v204, 0); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v204->setEnabled)(v204, 0); v211 = v239; ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v239->setVisible)(v239, 0); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v211->setEnabled)(v211, 0); v212 = v236; ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v236->setVisible)(v236, 0); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v212->setEnabled)(v212, 0); v213 = v242; ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v242->setVisible)(v242, 0); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v213->setEnabled)(v213, 0); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v207->setVisible)(v207, 0); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v207->setEnabled)(v207, 0); if ( !PlatformToolbox::isControllerConnected() ) goto LABEL_130; } else if ( !PlatformToolbox::isControllerConnected() ) { LABEL_130: v214 = v252; v215 = v252->m_level; if ( v215->m_savedTime ) goto LABEL_135; LABEL_134: if ( !v215->m_savedPoints ) { LABEL_142: GameManager::sharedState()->m_somethingInMenuLayer = 0; return v250; } LABEL_135: if ( v215->m_levelType != Editor && v215->m_demon.random - v215->m_demon.seed == 1 && PlatformToolbox::isNetworkAvailable() ) { v219 = v214->m_level; if ( v219->m_savedTime ) { v220 = GameLevelManager::sharedState(); GameLevelManager::getLevelLeaderboard( v220, v214->m_level, (LevelLeaderboardType)4, Time); v219 = v214->m_level; } if ( v219->m_savedPoints ) { v221 = GameLevelManager::sharedState(); GameLevelManager::getLevelLeaderboard( v221, v214->m_level, (LevelLeaderboardType)4, Points); } } goto LABEL_142; } v216 = v252; GameToolbox::addBackButton(v252, v230); v217 = cocos2d::CCSprite::createWithSpriteFrameName("controllerBtn_Start_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSprite *))v216->m_playSprite->addChild)( v216->m_playSprite, v217); *(float *)&v251 = *(float *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v216->m_playSprite->getContentSize)(v216->m_playSprite) * 0.5; v218 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v216->m_playSprite->getContentSize)(v216->m_playSprite); sub_10028CBE0((float *)&v254, *(float *)&v251, (float)(0.5 * *(float *)(v218 + 4)) + -40.0); ((void (__fastcall *)(cocos2d::CCSprite *, unsigned __int64 *))v217->setPosition)(v217, &v254); v214 = v252; v215 = v252->m_level; if ( v215->m_savedTime ) goto LABEL_135; goto LABEL_134; } LABEL_99: v128 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_duplicateBtn_001.png"); v129 = v252; v130 = CCMenuItemSpriteExtra::create( v128, nullptr, v252, (cocos2d::SEL_MenuHandler)(unsigned __int64)LevelInfoLayer::confirmClone); (*(void (__fastcall **)(const cocos2d::CCPoint *, CCMenuItemSpriteExtra *, double))(*(_QWORD *)v99 + 440LL))( v99, v130, v113); sub_10028CBE0((float *)&v247, 0.0, -50.0); sub_10028CCE0((double *)&v254, &v246, &v247); v131 = v129; ((void (__fastcall *)(CCMenuItemSpriteExtra *, unsigned __int64 *))v130->setPosition)( v130, &v254); v132 = (double *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v130->getPosition)(v130); sub_10028CC90(&v246, v132); goto LABEL_103; } v120 = 0; } } v124 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_deleteServerBtn_001.png"); v125 = CCMenuItemSpriteExtra::create( v124, nullptr, v252, (cocos2d::SEL_MenuHandler)(unsigned __int64)LevelInfoLayer::confirmOwnerDelete); (*(void (__fastcall **)(const cocos2d::CCPoint *, CCMenuItemSpriteExtra *, double))(*(_QWORD *)v99 + 440LL))( v99, v125, v113); sub_10028CBE0((float *)&v247, 0.0, -50.0); sub_10028CCE0((double *)&v254, &v246, &v247); ((void (__fastcall *)(CCMenuItemSpriteExtra *, unsigned __int64 *))v125->setPosition)(v125, &v254); v126 = (double *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v125->getPosition)(v125); v99 = (const cocos2d::CCPoint *)v251; v113 = sub_10028CC90(&v246, v126); if ( v120 ) goto LABEL_99; goto LABEL_98; } LABEL_66: operator delete(m_levelString.__r_.__value_.__l.__data_); goto LABEL_67; } LABEL_65: v74 = 0; if ( (*(_BYTE *)&m_levelString.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_67; goto LABEL_66; } } else { p_m_levelString = &v69->m_levelString; m_levelString.__r_.__value_.__r.__words[2] = (std::string::size_type)p_m_levelString->m_data.m_long.longStorage; v68 = *(_OWORD *)&p_m_levelString->m_data.m_short.sizex2; *(_OWORD *)&m_levelString.__r_.__value_.__l.0 = *(_OWORD *)&p_m_levelString->m_data.m_short.sizex2; v73 = (unsigned int)m_levelString.__r_.__value_.__l.0; if ( (*(_BYTE *)&m_levelString.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_60; } if ( m_levelString.__r_.__value_.__l.__size_ ) goto LABEL_65; goto LABEL_64; } v32 = v23->m_level; if ( (v32->m_levelName.m_data.m_short.sizex2 & 1) != 0 ) { sub_100006B70(&v243, v32->m_levelName.m_data.m_long.longStorage, v32->m_levelName.m_data.m_long.size, v29); if ( (v243 & 1) != 0 ) goto LABEL_19; } else { p_m_levelName = &v32->m_levelName; __p = p_m_levelName->m_data.m_long.longStorage; v243 = *(_OWORD *)&p_m_levelName->m_data.m_short.sizex2; if ( (v243 & 1) != 0 ) { LABEL_19: v31 = (const char *)__p; goto LABEL_22; } } v31 = (char *)&v243 + 1; goto LABEL_22; } } BYTE2(v243) = 126; LOWORD(v243) = 6243; ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *))v16->setColor)(v16, &v243); v18 = "GJ_sideArt_001.png"; if ( m_challenge ) v18 = "gauntletCorner_001.png"; goto LABEL_15; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source