// // EditLevelLayer::init from 0x10010ec88 to 0x100110074 (5100 bytes) // // 1 xrefs: // > EditLevelLayer::create @ 0x10010ec3c // // This function is hookable on this platform (idp: arm, 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 10:59:08 +0000 // __int64 __fastcall EditLevelLayer::init(_QWORD *a1, __int64 a2) { __int64 v4; // x19 __int64 v5; // x0 __int64 v6; // x8 __int128 *v7; // x8 __int64 v8; // x22 __int64 v9; // x22 __int64 v10; // x8 __int128 *v11; // x8 void **v12; // x22 __int64 v13; // x0 __int64 v14; // x0 float *v15; // x22 __int64 v16; // x23 __int64 v17; // x0 __int64 v18; // x0 double v19; // d0 float v20; // s8 __int64 v21; // x0 __int64 v22; // x0 float v23; // s0 __int64 v24; // x22 __int64 v25; // x0 __int64 v26; // x0 double v27; // d0 float v28; // s8 __int64 v29; // x0 __int64 v30; // x0 float v31; // s0 __int64 v32; // x0 __int64 v33; // x0 float *v34; // x0 float v35; // s8 __int64 v36; // x0 float v37; // s0 __int64 v38; // x22 __int64 v39; // x8 __int128 *v40; // x8 __int128 *v41; // x0 __int64 v42; // x22 __int64 v43; // x22 __int64 v44; // x8 __int128 *v45; // x8 bool v46; // w23 char *p_dst; // x1 __int64 v48; // x22 double v49; // d0 __int64 v50; // x22 __int64 v51; // x0 __int64 v52; // x0 __int64 v53; // x0 __n128 v54; // q0 __int64 v55; // x23 _QWORD *v56; // x0 __int64 v57; // x23 __int64 v58; // x23 __int64 v59; // x0 char v60; // w21 char *v61; // x1 __int64 v62; // x0 float v63; // s11 __int64 v64; // x0 __int64 v65; // x0 __int64 v66; // x21 __int64 v67; // x0 __int64 v68; // x0 __int64 v69; // x0 __int64 v70; // x22 float *v71; // x0 __int64 v72; // x0 __int64 v73; // x22 __int64 v74; // x0 __int64 v75; // x0 double v76; // d0 float v77; // s8 __int64 v78; // x0 __int64 v79; // x0 float v80; // s0 __int64 v81; // x0 __int64 v82; // x23 __n128 v83; // q0 __int64 v84; // x0 __int64 v85; // x0 double v86; // d0 float v87; // s10 __int64 v88; // x23 __int64 v89; // x23 __n128 v90; // q0 __int64 v91; // x24 __int64 v92; // x24 float32x2_t *v93; // x25 double v94; // d0 __int64 v95; // x24 __int64 v96; // x0 __int64 CString; // x0 __int64 v98; // x25 float v99; // s8 __int64 v100; // x0 __int64 v101; // x24 float32x2_t *v102; // x23 double v103; // d0 __int64 v104; // x0 __int64 v105; // x0 double v106; // d0 float v107; // s8 __int64 v108; // x0 __int64 v109; // x23 __int64 v110; // x24 __int64 v111; // x0 __int64 v112; // x25 float v113; // s9 float *v114; // x0 __int64 v115; // x0 __int64 v116; // x25 float v117; // s9 float *v118; // x0 __int64 v119; // x0 __int64 v120; // x0 __int64 v121; // x0 __int64 v122; // x0 __int64 v123; // x0 __int64 v124; // x0 __int64 v125; // x0 float v126; // s9 __int64 v127; // x24 float v128; // s8 float v129; // s9 __int64 v130; // x25 __n128 v131; // q0 __int64 v132; // x0 __int64 v133; // x22 __int64 v134; // x23 __int64 v135; // x0 __int64 v136; // x0 double v137; // d0 float v138; // s8 __int64 v139; // x0 __int64 v140; // x0 float v141; // s0 __int64 v142; // x0 __int64 v143; // x23 __int64 v144; // x0 __int64 v145; // x24 __int64 v146; // x0 __int64 v147; // x0 double v148; // d0 float v149; // s8 __int64 v150; // x0 __int64 v151; // x0 float v152; // s0 __int64 v153; // x0 __int64 v154; // x20 float v155; // s8 __int64 v156; // x0 float32x2_t v158; // [xsp+8h] [xbp-168h] BYREF float32x2_t v159; // [xsp+10h] [xbp-160h] BYREF void *v160[2]; // [xsp+18h] [xbp-158h] BYREF char v161; // [xsp+2Fh] [xbp-141h] void *v162[2]; // [xsp+30h] [xbp-140h] BYREF char v163; // [xsp+47h] [xbp-129h] void *v164[2]; // [xsp+48h] [xbp-128h] BYREF char v165; // [xsp+5Fh] [xbp-111h] float v166[2]; // [xsp+60h] [xbp-110h] BYREF void *v167[2]; // [xsp+68h] [xbp-108h] BYREF char v168; // [xsp+7Fh] [xbp-F1h] void *__p[2]; // [xsp+80h] [xbp-F0h] BYREF char v170; // [xsp+97h] [xbp-D9h] __int64 v171; // [xsp+98h] [xbp-D8h] BYREF float v172; // [xsp+A0h] [xbp-D0h] BYREF float v173[4]; // [xsp+A8h] [xbp-C8h] BYREF __int64 v174; // [xsp+B8h] [xbp-B8h] BYREF std::string __str; // [xsp+C0h] [xbp-B0h] BYREF __int128 __dst; // [xsp+E0h] [xbp-90h] BYREF __int64 v177; // [xsp+F0h] [xbp-80h] v4 = cocos2d::CCLayer::init(); if ( !(_DWORD)v4 ) return v4; a1[59] = a2; v5 = cocos2d::CCObject::retain(a2); v6 = a1[59]; if ( *(char *)(v6 + 367) < 0 ) { v5 = (__int64)sub_1000097D0(&__dst, *(void **)(v6 + 344), *(_QWORD *)(v6 + 352)); } else { v7 = (__int128 *)(v6 + 344); __dst = *v7; v177 = *((_QWORD *)v7 + 2); } if ( SHIBYTE(v177) < 0 ) { v8 = *((_QWORD *)&__dst + 1); operator delete((void *)__dst); if ( !v8 ) goto LABEL_14; } else if ( !HIBYTE(v177) ) { goto LABEL_14; } v9 = a1[59]; if ( *(char *)(v9 + 367) < 0 ) sub_1000097D0(&__str, *(void **)(v9 + 344), *(_QWORD *)(v9 + 352)); else __str = *(std::string *)(v9 + 344); v5 = (__int64)std::string::operator=((std::string *)(v9 + 1152), &__str); if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__str.__r_.__value_.__l.__data_); LABEL_14: v10 = a1[59]; if ( *(char *)(v10 + 367) < 0 ) { v5 = (__int64)sub_1000097D0(&__dst, *(void **)(v10 + 344), *(_QWORD *)(v10 + 352)); } else { v11 = (__int128 *)(v10 + 344); __dst = *v11; v177 = *((_QWORD *)v11 + 2); } v12 = (void **)(a1 + 63); if ( *((char *)a1 + 527) < 0 ) operator delete(*v12); *(_OWORD *)v12 = __dst; a1[65] = v177; *((_DWORD *)a1 + 125) = *(_DWORD *)(a2 + 1140); *(_DWORD *)(GameManager::sharedState(v5) + 964) = *(_DWORD *)(a1[59] + 1144LL); (*(void (__fastcall **)(_QWORD *, __int64))(*a1 + 1072LL))(a1, 1); v13 = (*(__int64 (__fastcall **)(_QWORD *, __int64))(*a1 + 1088LL))(a1, 1); v14 = cocos2d::CCDirector::sharedDirector(v13); cocos2d::CCDirector::getWinSize(&v174, v14); v15 = (float *)cocos2d::CCSprite::create("GJ_gradientBG.png"); sub_1000262BC((float *)&__dst, 0.0, 0.0); (*(void (__fastcall **)(float *, __int128 *))(*(_QWORD *)v15 + 296LL))(v15, &__dst); (*(void (__fastcall **)(_QWORD *, float *, __int64))(*a1 + 464LL))(a1, v15, 4294967294LL); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v15 + 128LL))(v15, (float)(*(float *)&v174 + 10.0) / v15[108]); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v15 + 144LL))( v15, (float)(*((float *)&v174 + 1) + 10.0) / v15[109]); sub_1000262BC((float *)&__dst, -5.0, -5.0); (*(void (__fastcall **)(float *, __int128 *))(*(_QWORD *)v15 + 184LL))(v15, &__dst); BYTE2(__dst) = -1; LOWORD(__dst) = 26112; (*(void (__fastcall **)(float *, __int128 *))(*(_QWORD *)v15 + 960LL))(v15, &__dst); v16 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png"); sub_1000262BC((float *)&__dst, 0.0, 0.0); v17 = (*(__int64 (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v16 + 296LL))(v16, &__dst); v18 = cocos2d::CCDirector::sharedDirector(v17); v19 = sub_100207EA8(v18); v20 = *(float *)&v19 + -1.0; v22 = cocos2d::CCDirector::sharedDirector(v21); v23 = sub_100207EA0(v22); sub_1000262BC((float *)&__dst, v20, v23 + -1.0); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v16 + 184LL))(v16, &__dst); (*(void (__fastcall **)(_QWORD *, __int64, __int64))(*a1 + 464LL))(a1, v16, 1); v24 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png"); sub_1000262BC((float *)&__dst, 1.0, 0.0); v25 = (*(__int64 (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v24 + 296LL))(v24, &__dst); v26 = cocos2d::CCDirector::sharedDirector(v25); v27 = sub_100207EB0(v26); v28 = *(float *)&v27 + 1.0; v30 = cocos2d::CCDirector::sharedDirector(v29); v31 = sub_100207EA0(v30); sub_1000262BC((float *)&__dst, v28, v31 + -1.0); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v24 + 184LL))(v24, &__dst); cocos2d::CCSprite::setFlipX(v24, 1); v32 = (*(__int64 (__fastcall **)(_QWORD *, __int64, __int64))(*a1 + 464LL))(a1, v24, 1); v33 = sub_1002E736C(v32); a1[60] = v33; cocos2d::CCObject::retain(v33); v34 = sub_1000262CC(v173, 0.0, 0.0, 80.0, 80.0); v35 = *(float *)&v174 * 0.5; v36 = cocos2d::CCDirector::sharedDirector(v34); v37 = sub_100207E98(v36); sub_1000262BC(&v172, v35, v37 + -30.0); sub_1000264D4(&__dst, (__int64)v173); v38 = cocos2d::extension::CCScale9Sprite::create("square02b_001.png", &__dst); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v38 + 912LL))(v38, 255); sub_1000262C4((float *)&v171, 365.0, 40.0); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v38 + 320LL))(v38, &v171); (*(void (__fastcall **)(_QWORD *, __int64, __int64))(*a1 + 464LL))(a1, v38, 0xFFFFFFFFLL); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v38 + 184LL))(v38, &v172); BYTE2(__dst) = -115; LOWORD(__dst) = 14336; (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v38 + 960LL))(v38, &__dst); v39 = a1[59]; if ( *(int *)(v39 + 788) <= 1 && *(_BYTE *)(v39 + 785) != 1 ) { v43 = CCTextInputNode::create("Level Name", "Thonburi", 24, "bigFont.fnt", 300.0, 50.0); (*(void (__fastcall **)(_QWORD *, __int64, __int64))(*a1 + 464LL))(a1, v43, 18); *(_QWORD *)(v43 + 584) = a1 + 51; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v43 + 72LL))(v43, 1); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v43 + 184LL))(v43, &v172); *(_DWORD *)(v43 + 592) = 20; *(_BYTE *)(v43 + 608) = 1; v44 = a1[59]; if ( *(char *)(v44 + 367) < 0 ) { sub_1000097D0(&__dst, *(void **)(v44 + 344), *(_QWORD *)(v44 + 352)); } else { v45 = (__int128 *)(v44 + 344); __dst = *v45; v177 = *((_QWORD *)v45 + 2); } sub_100009900(__p, ""); v46 = sub_1000045BC(&__dst, __p); if ( v170 < 0 ) operator delete(__p[0]); if ( SHIBYTE(v177) < 0 ) { operator delete((void *)__dst); if ( v46 ) { LABEL_49: CCTextInputNode::setLabelPlaceholderColor(v43, 15772280); CCTextInputNode::setLabelPlaceholderScale(v43, 0.7); sub_1002E74E0(a1[60], v43); goto LABEL_50; } } else if ( v46 ) { goto LABEL_49; } if ( *(char *)(a2 + 367) < 0 ) { sub_1000097D0(&__dst, *(void **)(a2 + 344), *(_QWORD *)(a2 + 352)); } else { __dst = *(_OWORD *)(a2 + 344); v177 = *(_QWORD *)(a2 + 360); } if ( v177 >= 0 ) p_dst = (char *)&__dst; else p_dst = (char *)__dst; sub_100009900(v167, p_dst); CCTextInputNode::setString(v43, v167); if ( v168 < 0 ) operator delete(v167[0]); if ( SHIBYTE(v177) < 0 ) operator delete((void *)__dst); goto LABEL_49; } if ( *(char *)(v39 + 367) < 0 ) { sub_1000097D0(&__dst, *(void **)(v39 + 344), *(_QWORD *)(v39 + 352)); } else { v40 = (__int128 *)(v39 + 344); __dst = *v40; v177 = *((_QWORD *)v40 + 2); } if ( v177 >= 0 ) v41 = &__dst; else v41 = (__int128 *)__dst; v42 = cocos2d::CCLabelBMFont::create_1(v41, "goldFont.fnt"); if ( SHIBYTE(v177) < 0 ) operator delete((void *)__dst); (*(void (__fastcall **)(_QWORD *, __int64, __int64))(*a1 + 464LL))(a1, v42, 20); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v42 + 184LL))(v42, &v172); LABEL_50: sub_1000262BC(v166, *(float *)&v174 * 0.5, (float)(*((float *)&v174 + 1) * 0.5) + 65.0); sub_1000264D4(&__dst, (__int64)v173); v48 = cocos2d::extension::CCScale9Sprite::create("square02b_001.png", &__dst); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v48 + 912LL))(v48, 255); sub_1000262C4((float *)&__dst, 365.0, 60.0); v49 = sub_100026450(&v171, (double *)&__dst); (*(void (__fastcall **)(__int64, __int64 *, double))(*(_QWORD *)v48 + 320LL))(v48, &v171, v49); (*(void (__fastcall **)(_QWORD *, __int64, __int64))(*a1 + 464LL))(a1, v48, 0xFFFFFFFFLL); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v48 + 184LL))(v48, v166); BYTE2(__dst) = -115; LOWORD(__dst) = 14336; (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v48 + 960LL))(v48, &__dst); v50 = CCTextInputNode::create("Description [Optional]", "Thonburi", 24, 0, 365.0, 50.0); *(_BYTE *)(v50 + 608) = 0; (*(void (__fastcall **)(_QWORD *, __int64, __int64))(*a1 + 464LL))(a1, v50, 20); *(_QWORD *)(v50 + 584) = a1 + 51; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v50 + 72LL))(v50, 2); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v50 + 184LL))(v50, v166); sub_100009900( v164, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,-!?:;)(/\\\"'`*=+-_%[]<>|@&^#{}%$~"); CCTextInputNode::setAllowedChars(v50, v164); if ( v165 < 0 ) operator delete(v164[0]); v51 = sub_1001FBB2C(v50, 1); v52 = EmoteSprite::maxEmotesComment(v51); *(_DWORD *)(v50 + 592) = 17 * v52 + 180; v53 = EmoteSprite::maxEmotesComment(v52); CCTextInputNode::setParseEmotes(v50, v53); v54 = sub_1002E74E0(a1[60], v50); (*(void (__fastcall **)(_QWORD, _QWORD, __n128))(**(_QWORD **)(v50 + 576) + 344LL))(*(_QWORD *)(v50 + 576), 0, v54); sub_100009900(v162, ""); sub_1000262BC((float *)&__dst, 0.5, 0.5); v55 = TextArea::create(v162, "chatFont.fnt", &__dst, 1, 0, 1.0, 346.5, 20.0); if ( v163 < 0 ) operator delete(v162[0]); CCTextInputNode::addTextArea(v50, v55); sub_1001FCC58(v50, 54.0); CCTextInputNode::setLabelPlaceholderColor(v50, 15772280); v56 = sub_100009900(&__dst, "easy"); v57 = EmoteSprite::createWithName(v56); if ( SHIBYTE(v177) < 0 ) operator delete((void *)__dst); EmoteSprite::fitToHeight(v57, 18.0, 0.0); a1[68] = CCMenuItemSpriteExtra::create(v57, 0, a1, sub_1001101C0, 0); CCMenuItemSpriteExtra::setSizeMult(1.5); v58 = sub_100270434(a1[68]); sub_1000262BC((float *)&__dst, (float)(v166[0] + 182.5) + 17.0, v166[1]); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v58 + 184LL))(v58, &__dst); (*(void (__fastcall **)(_QWORD *, __int64, __int64))(*a1 + 464LL))(a1, v58, 25); GJGameLevel::getUnpackedLevelDescription(a2, &__dst); sub_100009900(__p, ""); v59 = sub_1000045BC(&__dst, __p); v60 = v59; if ( (v170 & 0x80000000) == 0 ) { if ( (v59 & 1) != 0 ) goto LABEL_65; LABEL_60: if ( v177 >= 0 ) v61 = (char *)&__dst; else v61 = (char *)__dst; sub_100009900(v160, v61); v59 = CCTextInputNode::setString(v50, v160); if ( v161 < 0 ) operator delete(v160[0]); goto LABEL_65; } operator delete(__p[0]); if ( (v60 & 1) == 0 ) goto LABEL_60; LABEL_65: v62 = AppDelegate::get(v59); if ( *(_BYTE *)(v62 + 37) ) v63 = 55.0; else v63 = 30.0; a1[58] = cocos2d::CCMenu::create(v62); (*(void (__fastcall **)(_QWORD *))(*a1 + 456LL))(a1); v64 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_editBtn_001.png"); v65 = CCMenuItemSpriteExtra::create(v64, 0, a1, EditLevelLayer::onEdit, 0); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)a1[58] + 456LL))(a1[58], v65); v66 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_playBtn2_001.png"); v67 = CCMenuItemSpriteExtra::create(v66, 0, a1, EditLevelLayer::onPlay, 0); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)a1[58] + 456LL))(a1[58], v67); v68 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_shareBtn_001.png"); v69 = CCMenuItemSpriteExtra::create(v68, 0, a1, EditLevelLayer::onShare, 0); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)a1[58] + 456LL))(a1[58], v69); cocos2d::CCMenu::alignItemsHorizontallyWithPadding(a1[58], 20.0); v70 = a1[58]; v71 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v70 + 192LL))(v70); sub_1000262BC((float *)__p, *v71, (float)(*((float *)&v174 + 1) * 0.5) + -25.0); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v70 + 184LL))(v70, __p); v72 = sub_100110828(a1); v73 = cocos2d::CCMenu::create(v72); v74 = (*(__int64 (__fastcall **)(_QWORD *, __int64))(*a1 + 456LL))(a1, v73); v75 = cocos2d::CCDirector::sharedDirector(v74); v76 = sub_100207EB0(v75); v77 = *(float *)&v76; v79 = cocos2d::CCDirector::sharedDirector(v78); v80 = sub_100207E98(v79); sub_1000262BC((float *)__p, v77 - v63, v80 - v63); v81 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_deleteBtn_001.png"); v82 = CCMenuItemSpriteExtra::create(v81, 0, a1, sub_100111060, 0); v83.n128_f64[0] = (*(double (__fastcall **)(__int64, __int64))(*(_QWORD *)v73 + 456LL))(v73, v82); cocos2d::CCNode::convertToNodeSpace(&v159, v73, __p, v83); v84 = (*(__int64 (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v82 + 184LL))(v82, &v159); v85 = cocos2d::CCDirector::sharedDirector(v84); v86 = sub_100207EB0(v85); v87 = *(float *)&v86; v88 = cocos2d::CCSprite::createWithSpriteFrameName("edit_leftBtn_001.png"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v88 + 160LL))(v88, 0.9); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v88 + 360LL))(v88, 90.0); v89 = CCMenuItemSpriteExtra::create(v88, 0, a1, sub_100111114, 0); CCMenuItemSpriteExtra::setSizeMult(1.1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v73 + 456LL))(v73, v89); sub_1000262BC((float *)&v158, v87 - v63, (float)(*((float *)&v174 + 1) * 0.5) + 2.5); cocos2d::CCNode::convertToNodeSpace(&v159, v73, &v158, v90); (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v89 + 184LL))(v89, &v159); v91 = cocos2d::CCSprite::createWithSpriteFrameName("edit_leftBtn_001.png"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v91 + 160LL))(v91, 0.9); cocos2d::CCSprite::setFlipY(v91, 1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v91 + 360LL))(v91, -90.0); v92 = CCMenuItemSpriteExtra::create(v91, 0, a1, sub_1001111C8, 0); CCMenuItemSpriteExtra::setSizeMult(1.1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v73 + 456LL))(v73, v92); v93 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v89 + 192LL))(v89); sub_1000262BC((float *)&v158, 0.0, -30.0); *(float32x2_t *)&v94 = sub_100026318(v93, &v158, &v159); (*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v92 + 184LL))(v92, &v159, v94); v95 = cocos2d::CCSprite::createWithSpriteFrameName("gj_folderBtn_001.png"); v96 = sub_1003065B0("%i", *(_DWORD *)(a1[59] + 916LL)); CString = cocos2d::CCString::getCString(v96); a1[61] = cocos2d::CCLabelBMFont::create_1(CString, "bigFont.fnt"); (*(void (__fastcall **)(__int64))(*(_QWORD *)v95 + 464LL))(v95); v98 = a1[61]; v99 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v95 + 328LL))(v95); v100 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v95 + 328LL))(v95); sub_1000262BC((float *)&v159, v99 * 0.5, (float)(*(float *)(v100 + 4) * 0.5) + 1.0); (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v98 + 184LL))(v98, &v159); cocos2d::CCLabelBMFont::limitLabelWidth(a1[61], 24.0, 0.55, 0.0); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v95 + 160LL))(v95, 0.8); v101 = CCMenuItemSpriteExtra::create(v95, 0, a1, sub_10011127C, 0); CCMenuItemSpriteExtra::setSizeMult(1.2); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v73 + 456LL))(v73, v101); v102 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v89 + 192LL))(v89); sub_1000262BC((float *)&v158, 0.0, 25.0); *(float32x2_t *)&v103 = sub_100026318(v102, &v158, &v159); v104 = (*(__int64 (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v101 + 184LL))(v101, &v159, v103); v105 = cocos2d::CCDirector::sharedDirector(v104); v106 = sub_100207EA8(v105); v107 = *(float *)&v106; v109 = sub_1002E736C(v108); v110 = cocos2d::CCSprite::createWithSpriteFrameName("sideBtn_config_001.png"); v111 = CCMenuItemSpriteExtra::create(v110, 0, a1, EditLevelLayer::onCreatorSettings, 0); sub_1002E74E0(v109, v111); v112 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_duplicateBtn_001.png"); v113 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v110 + 328LL))(v110); v114 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v112 + 328LL))(v112); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v112 + 160LL))(v112, v113 / *v114); v115 = CCMenuItemSpriteExtra::create(v112, 0, a1, sub_10011133C, 0); sub_1002E74E0(v109, v115); if ( GJGameLevel::isPlatformer(a1[59]) ) { v116 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_levelLeaderboardBtn_001.png"); v117 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v110 + 328LL))(v110); v118 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v116 + 328LL))(v116); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v116 + 160LL))(v116, v117 / *v118); v119 = CCMenuItemSpriteExtra::create(v116, 0, a1, sub_1001113F0, 0); sub_1002E74E0(v109, v119); } v120 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_exportBtn_001.png"); v121 = CCMenuItemSpriteExtra::create(v120, 0, a1, sub_100111434, 0); sub_1002E74E0(v109, v121); if ( !GJGameLevel::isPlatformer(a1[59]) ) { v122 = cocos2d::CCSprite::createWithSpriteFrameName("sideBtn_death_001.png"); v123 = CCMenuItemSpriteExtra::create(v122, 0, a1, sub_100111594, 0); sub_1002E74E0(v109, v123); } v124 = cocos2d::CCSprite::createWithSpriteFrameName("sideBtn_options_001.png"); v125 = CCMenuItemSpriteExtra::create(v124, 0, a1, sub_1001115D0, 0); sub_1002E74E0(v109, v125); v126 = *((float *)&v174 + 1); v127 = 0; v128 = v63 + v107; v129 = (float)(v126 * 0.5) + (float)((float)((float)((unsigned int)sub_1002E757C(v109) - 1) * 34.0) * 0.5); while ( (unsigned int)v127 < (unsigned int)sub_1002E757C(v109) ) { v130 = sub_1002E75A0(v109, v127); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v73 + 456LL))(v73, v130); sub_1000262BC((float *)&v158, v128, v129 + (float)((float)(unsigned int)v127 * -34.0)); cocos2d::CCNode::convertToNodeSpace(&v159, v73, &v158, v131); (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v130 + 184LL))(v130, &v159); v127 = (unsigned int)(v127 + 1); } v132 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); v133 = CCMenuItemSpriteExtra::create(v132, 0, a1, sub_1001115F0, 0); CCMenuItemSpriteExtra::setSizeMult(1.6); v134 = sub_100270434(v133); v135 = (*(__int64 (__fastcall **)(_QWORD *, __int64, __int64))(*a1 + 464LL))(a1, v134, 1); v136 = cocos2d::CCDirector::sharedDirector(v135); v137 = sub_100207EA8(v136); v138 = *(float *)&v137; v140 = cocos2d::CCDirector::sharedDirector(v139); v141 = sub_100207E98(v140); sub_1000262BC((float *)&v159, v138 + 24.0, v141 + -23.0); v142 = (*(__int64 (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v134 + 184LL))(v134, &v159); v143 = cocos2d::CCMenu::create(v142); (*(void (__fastcall **)(_QWORD *, __int64, __int64))(*a1 + 464LL))(a1, v143, 2); v144 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); v145 = CCMenuItemSpriteExtra::create(v144, 0, a1, EditLevelLayer::onLevelInfo, 0); CCMenuItemSpriteExtra::setSizeMult(2.0); v146 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v143 + 456LL))(v143, v145); v147 = cocos2d::CCDirector::sharedDirector(v146); v148 = sub_100207EA8(v147); v149 = *(float *)&v148; v151 = cocos2d::CCDirector::sharedDirector(v150); v152 = sub_100207EA0(v151); sub_1000262BC((float *)&v159, v149 + 30.0, v152 + 30.0); v153 = (*(__int64 (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v143 + 184LL))(v143, &v159); if ( (unsigned int)PlatformToolbox::isControllerConnected(v153) ) { GameToolbox::addBackButton((__int64)a1, v133); v154 = cocos2d::CCSprite::createWithSpriteFrameName("controllerBtn_Start_001.png"); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v66 + 456LL))(v66, v154); v155 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v66 + 328LL))(v66); v156 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v66 + 328LL))(v66); sub_1000262BC((float *)&v159, v155 * 0.5, (float)(*(float *)(v156 + 4) * 0.5) + -40.0); (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v154 + 184LL))(v154, &v159); } if ( SHIBYTE(v177) < 0 ) operator delete((void *)__dst); return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source