// // ShareListLayer::init from 0x100247fb8 to 0x100248d78 (3520 bytes) // // 1 xrefs: // > ShareListLayer::create @ 0x100247020 // // 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 ShareListLayer::init(ShareListLayer *a1, GJLevelList *a2) { _BOOL4 v4; // w0 cocos2d::CCDirector *v5; // x0 cocos2d::CCLayer *v6; // x0 cocos2d::extension::CCScale9Sprite *v7; // x21 __n128 v8; // q0 __n128 v9; // q1 GJLevelList *m_list; // x8 std::string *p_dst; // x0 cocos2d::CCLabelBMFont *v12; // x21 __n128 v13; // q0 __n128 v14; // q1 __n128 v15; // q0 __n128 v16; // q1 cocos2d::CCObject *v17; // x22 float32x2_t *v18; // x21 __n128 v19; // q0 __n128 v20; // q1 double v21; // d0 __n128 v22; // q0 __n128 v23; // q1 double v24; // d0 cocos2d::extension::CCScale9Sprite *v25; // x21 bool v26; // w0 bool v27; // w21 float32x2_t *v28; // x1 std::string::size_type v29; // x21 std::string::size_type v30; // x8 unsigned __int8 v31; // w10 std::string::size_type v32; // x11 std::string::size_type size; // x28 std::string *v34; // x27 std::string::size_type v35; // x19 unsigned __int64 v36; // x20 std::string::size_type v37; // x26 void **v38; // x22 signed __int64 v39; // x23 signed __int64 v40; // x9 char *v41; // x25 char *v42; // x0 int v43; // w21 char *v44; // x0 char *v45; // x24 std::string::size_type v46; // x2 const std::string::value_type *v47; // x3 std::string::size_type v48; // x4 std::string::size_type v49; // x8 ShareListLayer *v50; // x20 float v51; // s9 std::string *v52; // x1 __n128 v53; // q0 __n128 v54; // q1 cocos2d::CCObject *v55; // x21 __n128 v56; // q0 __n128 v57; // q1 double v58; // d0 __int64 v59; // x0 cocos2d::CCArray *v60; // x21 ButtonSprite *v61; // x0 CCMenuItemSpriteExtra *v62; // x22 const char *v63; // x5 ButtonSprite *v64; // x0 CCMenuItemSpriteExtra *v65; // x22 __n128 v66; // q0 cocos2d::CCNode *m_buttonMenu; // x22 __n128 v68; // q1 cocos2d::CCSprite *v69; // x0 CCMenuItemSpriteExtra *v70; // x21 __n128 v71; // q0 cocos2d::CCNode *v72; // x22 __n128 v73; // q1 cocos2d::CCNode *v74; // x22 __n128 v75; // q0 __n128 v76; // q1 cocos2d::CCObject *m_mainLayer; // x23 __n128 v78; // q0 __n128 v79; // q1 CCMenuItemToggler *ToggleButton; // x21 char *v81; // x21 __n128 v82; // q0 cocos2d::CCNode *v83; // x22 __n128 v84; // q1 __int64 v85; // x0 __int64 v86; // x21 cocos2d::CCNode *v87; // x23 __n128 v88; // q0 __n128 v89; // q1 cocos2d::CCObject *v90; // x24 __n128 v91; // q0 __n128 v92; // q1 CCMenuItemToggler *m_friendsOnlyToggler; // x0 char *v94; // x21 __n128 v95; // q0 cocos2d::CCNode *v96; // x22 __n128 v97; // q1 void **v98; // x0 cocos2d::CCSprite *v99; // x21 __n128 v100; // q0 __n128 v101; // q1 int v102; // w0 cocos2d::CCString *v103; // x0 const char *CString; // x0 cocos2d::CCLabelBMFont *v105; // x22 __n128 v106; // q0 __n128 v107; // q1 float32x2_t *v108; // x20 __n128 v109; // q0 __n128 v110; // q1 double v111; // d0 float v112; // s1 float v113; // s2 float v114; // s3 bool v116; // [xsp+24h] [xbp-1FCh] ShareListLayer *v117; // [xsp+28h] [xbp-1F8h] std::string::size_type v118; // [xsp+30h] [xbp-1F0h] unsigned __int8 v119; // [xsp+38h] [xbp-1E8h] float32x2_t v120; // [xsp+40h] [xbp-1E0h] BYREF void *v121[2]; // [xsp+48h] [xbp-1D8h] BYREF char v122; // [xsp+5Fh] [xbp-1C1h] void *v123[2]; // [xsp+60h] [xbp-1C0h] BYREF char v124; // [xsp+77h] [xbp-1A9h] void *v125[2]; // [xsp+78h] [xbp-1A8h] BYREF char v126; // [xsp+8Fh] [xbp-191h] void *v127[2]; // [xsp+90h] [xbp-190h] BYREF char v128; // [xsp+A7h] [xbp-179h] void *v129[2]; // [xsp+A8h] [xbp-178h] BYREF char v130; // [xsp+BFh] [xbp-161h] void *v131[2]; // [xsp+C0h] [xbp-160h] BYREF char v132; // [xsp+D7h] [xbp-149h] void *v133[2]; // [xsp+D8h] [xbp-148h] BYREF char v134; // [xsp+EFh] [xbp-131h] float32x2_t v135; // [xsp+F0h] [xbp-130h] BYREF void *__p[2]; // [xsp+F8h] [xbp-128h] BYREF char v137; // [xsp+10Fh] [xbp-111h] void *v138; // [xsp+110h] [xbp-110h] BYREF std::string::size_type v139; // [xsp+118h] [xbp-108h] unsigned __int8 v140; // [xsp+127h] [xbp-F9h] void **v141; // [xsp+128h] [xbp-F8h] BYREF signed __int64 v142; // [xsp+130h] [xbp-F0h] char v143; // [xsp+13Fh] [xbp-E1h] float32x2_t v144[2]; // [xsp+140h] [xbp-E0h] BYREF char v145; // [xsp+157h] [xbp-C9h] float v146; // [xsp+158h] [xbp-C8h] BYREF float v147[4]; // [xsp+160h] [xbp-C0h] BYREF float32x2_t v148; // [xsp+170h] [xbp-B0h] BYREF void *v149[2]; // [xsp+178h] [xbp-A8h] BYREF char v150; // [xsp+18Fh] [xbp-91h] std::string __dst; // [xsp+190h] [xbp-90h] BYREF float v152; // [xsp+1B0h] [xbp-70h] float v153; // [xsp+1B4h] [xbp-6Ch] cocos2d::CCPoint v154; // 0:kr10_8.8 cocos2d::CCPoint v155; // 0:kr18_8.8 cocos2d::CCPoint v156; // 0:kr20_8.8 cocos2d::SEL_MenuHandler v157; // 0:x3.16 cocos2d::SEL_MenuHandler v158; // 0:x3.16 cocos2d::SEL_MenuHandler v159; // 0:x3.16 cocos2d::CCRect v160; // 0:kr30_16.16 cocos2d::CCPoint v161; // 0:s1.4,4:s2.4 cocos2d::CCRect v162; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4 LODWORD(__dst.__r_.__value_.__l.__data_) = -1778384896; v4 = cocos2d::CCLayerColor::initWithColor(a1, (const cocos2d::ccColor4B *)&__dst); if ( !v4 ) return v4; v116 = v4; FLAlertLayer::incrementForcePrio(a1); a1->m_list = a2; cocos2d::CCObject::retain(a2); ((void (__fastcall *)(ShareListLayer *, __int64))a1->setTouchEnabled)(a1, 1); ((void (__fastcall *)(ShareListLayer *, __int64))a1->setKeypadEnabled)(a1, 1); v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v5); v6 = cocos2d::CCLayer::create(); a1->m_mainLayer = v6; ((void (__fastcall *)(ShareListLayer *, cocos2d::CCLayer *))a1->addChild)(a1, v6); sub_100022990((float *)&__dst, 0.0, 0.0, 80.0, 80.0); v7 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v162); sub_100022988((float *)&__dst, 420.0, 300.0); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, std::string *))v7->setContentSize)(v7, &__dst); v8 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v7, 0xFFFFFFFFLL); v8.n128_f32[0] = v152 * 0.5; v9.n128_f32[0] = v153 * 0.5; sub_100022980(v8, v9, &__dst); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, std::string *))v7->setPosition)(v7, &__dst); m_list = a1->m_list; if ( m_list->m_listName.m_data.m_short.shortStorage.__elems_[22] < 0 ) sub_1000097D0(&__dst, (void *)m_list->m_listName.m_data.m_long.capacitym1, m_list->m_listName.m_data.m_long.size); else __dst = (std::string)m_list->m_listName; if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) p_dst = &__dst; else p_dst = (std::string *)__dst.__r_.__value_.__r.__words[0]; v12 = cocos2d::CCLabelBMFont::create_1((const char *)p_dst, "goldFont.fnt"); if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__dst.__r_.__value_.__l.__data_); v13 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)( a1->m_mainLayer, v12); v13.n128_f32[0] = v152 * 0.5; v14.n128_f32[0] = (float)((float)(v153 * 0.5) + 150.0) + -20.0; sub_100022980(v13, v14, &__dst); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v12->setPosition)(v12, &__dst); sub_100009900(v149, "You cannot change the name once it is shared."); v15.n128_u32[0] = 0.5; v16.n128_u32[0] = 1.0; sub_100022980(v15, v16, &__dst); v17 = TextArea::create((__int64)v149, (__int64)"chatFont.fnt", (__int64 *)&__dst, 0, 1.0, 400.0, 20.0); if ( v150 < 0 ) operator delete(v149[0]); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCObject *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v17); v18 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v12->getPosition)(v12); v19.n128_u32[0] = 0; v20.n128_u32[0] = -20.0; sub_100022980(v19, v20, v144); *(float32x2_t *)&v21 = sub_1000229DC(v18, v144, (float32x2_t *)&__dst); ((void (__fastcall *)(cocos2d::CCObject *, std::string *, double))v17->__vftable[2].isEqual)(v17, &__dst, v21); v22 = ((__n128 (__fastcall *)(cocos2d::CCObject *, float))v17->__vftable[2].copyWithZone)(v17, 0.8); v22.n128_f32[0] = v152 * 0.5; v23.n128_f32[0] = (float)(v153 * 0.5) + 45.0; sub_100022980(v22, v23, &v148); sub_100022990(v147, 0.0, 0.0, 80.0, 80.0); v24 = sub_100022B98(&__dst, (__int64)v147); v160.origin.x = *(float *)&v24; v160.origin.y = v112; v160.size.width = v113; v160.size.height = v114; v25 = cocos2d::extension::CCScale9Sprite::create("square02b_001.png", v160); sub_100022988(&v146, 380.0, 80.0); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, float *))v25->setContentSize)(v25, &v146); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v25, 0xFFFFFFFFLL); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, float32x2_t *))v25->setPosition)(v25, &v148); __dst.__r_.__value_.__s.__data_[2] = 33; LOWORD(__dst.__r_.__value_.__l.__data_) = 16514; ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, std::string *))v25->setColor)(v25, &__dst); sub_100009900(&__dst, "(No description provided)"); GJLevelList::getUnpackedDescription((__int64)a1->m_list, v144); sub_100009900(&v141, ""); v26 = sub_1000045BC(v144, &v141); v27 = v26; if ( (v143 & 0x80000000) == 0 ) { if ( v26 ) goto LABEL_20; LABEL_16: if ( v145 >= 0 ) v28 = v144; else v28 = (float32x2_t *)v144[0]; std::string::assign(&__dst, (const std::string::value_type *)v28); goto LABEL_20; } operator delete(v141); if ( !v27 ) goto LABEL_16; LABEL_20: sub_100009900(&v141, "\xA0"); v117 = a1; sub_100009900(&v138, ""); v29 = 0; v30 = HIBYTE(__dst.__r_.__value_.__r.__words[2]); v31 = HIBYTE(__dst.__r_.__value_.__r.__words[2]); size = __dst.__r_.__value_.__l.__size_; v32 = __dst.__r_.__value_.__r.__words[0]; if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v34 = &__dst; else v34 = (std::string *)__dst.__r_.__value_.__r.__words[0]; if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) v30 = __dst.__r_.__value_.__l.__size_; v35 = v143; v36 = (unsigned __int64)v143 >> 63; v37 = v142; if ( v143 >= 0 ) v38 = (void **)&v141; else v38 = v141; if ( v143 >= 0 ) v39 = v143; else v39 = v142; while ( !v39 ) { LABEL_41: if ( v29 != -1 ) { if ( (v36 & 1) != 0 ) v46 = v37; else v46 = v35; if ( (v140 & 0x80u) == 0 ) v47 = (const std::string::value_type *)&v138; else v47 = (const std::string::value_type *)v138; if ( (v140 & 0x80u) == 0 ) v48 = v140; else v48 = v139; std::string::replace(&__dst, v29, v46, v47, v48); v49 = v140; if ( (v140 & 0x80u) != 0 ) v49 = v139; v29 += v49; v30 = HIBYTE(__dst.__r_.__value_.__r.__words[2]); v31 = HIBYTE(__dst.__r_.__value_.__r.__words[2]); size = __dst.__r_.__value_.__l.__size_; v32 = __dst.__r_.__value_.__r.__words[0]; if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v34 = &__dst; else v34 = (std::string *)__dst.__r_.__value_.__r.__words[0]; if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) v30 = __dst.__r_.__value_.__l.__size_; v35 = v143; v36 = (unsigned __int64)v143 >> 63; v37 = v142; v38 = v143 >= 0 ? (void **)&v141 : v141; v39 = v143 >= 0 ? v143 : v142; if ( v30 >= v29 ) continue; } goto LABEL_67; } v40 = v30 - v29; if ( (__int64)(v30 - v29) >= v39 ) { v118 = v32; v119 = v31; v41 = (char *)v34 + v30; v42 = (char *)v34 + v29; v43 = *(char *)v38; do { if ( v40 - v39 == -1 ) break; v44 = (char *)memchr(v42, v43, v40 - v39 + 1); if ( !v44 ) break; v45 = v44; if ( !memcmp(v44, v38, v39) ) { if ( v45 != v41 ) { v29 = v45 - (char *)v34; v32 = v118; v31 = v119; goto LABEL_41; } break; } v42 = v45 + 1; v40 = v41 - (v45 + 1); } while ( v40 >= v39 ); v32 = v118; v31 = v119; } LABEL_67: if ( (v31 & 0x80) != 0 ) { v50 = v117; if ( size > 0x12C ) { LODWORD(size) = 300; LABEL_72: v51 = (float)((float)((float)(180 - (int)size) / 300.0) * 0.2) + 0.8; goto LABEL_73; } } else { size = v31; v50 = v117; } v51 = 1.0; if ( size >= 0x47 ) goto LABEL_72; LABEL_73: if ( (v31 & 0x80u) == 0 ) v52 = &__dst; else v52 = (std::string *)v32; sub_100009900(__p, (char *)v52); v53.n128_u32[0] = 0.5; v54.n128_u32[0] = 0.5; sub_100022980(v53, v54, v121); v55 = TextArea::create((__int64)__p, (__int64)"chatFont.fnt", (__int64 *)v121, 1, 1.0, 320.0 / v51, 20.0); if ( v137 < 0 ) operator delete(__p[0]); v56 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCObject *))v50->m_mainLayer->addChild)( v50->m_mainLayer, v55); v56.n128_u32[0] = 0; v57.n128_u32[0] = 1.0; sub_100022980(v56, v57, &v135); *(float32x2_t *)&v58 = sub_1000229DC(&v148, &v135, (float32x2_t *)v121); ((void (__fastcall *)(cocos2d::CCObject *, void **, double))v55->__vftable[2].isEqual)(v55, v121, v58); ((void (__fastcall *)(cocos2d::CCObject *, float))v55->__vftable[2].copyWithZone)(v55, v51); v50->m_joystickConnected = -1; v50->m_buttonMenu = cocos2d::CCMenu::create(); v59 = ((__int64 (__fastcall *)(cocos2d::CCLayer *))v50->m_mainLayer->addChild_0)(v50->m_mainLayer); v60 = (cocos2d::CCArray *)sub_10024A15C(v59); v61 = sub_10005F294("Cancel"); v157.ptr = (void (__cdecl *)(cocos2d::CCObject *))ShareListLayer::onClose; v157.adj = 0; v62 = CCMenuItemSpriteExtra::create(v61, nullptr, v50, v157); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v50->m_buttonMenu->addChild)(v50->m_buttonMenu, v62); sub_10024A2D0(v60, v62); if ( v50->m_list->m_uploaded ) v63 = "GJ_button_04.png"; else v63 = "GJ_button_01.png"; v64 = sub_10005F3A0("Share List", 0, 0, 0, "goldFont.fnt", v63, 1.0); v158.ptr = (void (__cdecl *)(cocos2d::CCObject *))ShareListLayer::onShare; v158.adj = 0; v65 = CCMenuItemSpriteExtra::create(v64, nullptr, v50, v158); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v50->m_buttonMenu->addChild)(v50->m_buttonMenu, v65); v66 = sub_10024A2D0(v60, v65); m_buttonMenu = v50->m_buttonMenu; v66.n128_f32[0] = v152 * 0.5; v68.n128_f32[0] = (float)((float)(v153 * 0.5) + -150.0) + 25.0; sub_100022980(v66, v68, &v135); LODWORD(v161.x) = COERCE_UNSIGNED_INT(cocos2d::CCNode::convertToNodeSpace( m_buttonMenu, (const cocos2d::CCPoint *)&v135).y); GameToolbox::alignItemsHorisontally(v60, 15.0, v161, (bool)v121); v69 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); v159.ptr = (void (__cdecl *)(cocos2d::CCObject *))ShareListLayer::onInfo; v159.adj = 0; v70 = CCMenuItemSpriteExtra::create(v69, nullptr, v50, v159); CCMenuItemSpriteExtra::setSizeMult(v70, 2.0); v71 = ((__n128 (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v50->m_buttonMenu->addChild)( v50->m_buttonMenu, v70); v71.n128_f32[0] = (float)((float)(v152 * 0.5) + -210.0) + 20.0; v72 = v50->m_buttonMenu; v73.n128_f32[0] = (float)((float)(v153 * 0.5) + 150.0) + -20.0; sub_100022980(v71, v73, &v135); v154 = cocos2d::CCNode::convertToNodeSpace(v72, (const cocos2d::CCPoint *)&v135); ((void (__fastcall *)(CCMenuItemSpriteExtra *, void **, float, float))v70->setPosition)(v70, v121, v154.x, v154.y); sub_100009900(v133, "Unlisted"); LOBYTE(v70) = v50->m_list->m_unlisted; v74 = v50->m_buttonMenu; v75.n128_f32[0] = (float)(v152 * 0.5) + -120.0; v76.n128_f32[0] = (float)(v153 * 0.5) + -70.0; sub_100022980(v75, v76, v121); m_mainLayer = v50->m_mainLayer; v78.n128_u32[0] = 8.0; v79.n128_u32[0] = 0; sub_100022980(v78, v79, &v135); ToggleButton = GameToolbox::createToggleButton( (const char *)v133, (void (__cdecl *)(cocos2d::CCObject *))ShareListLayer::onUnlisted, 0, (bool)v70, v74, (cocos2d::CCPoint *)v121, v50, m_mainLayer, 0.8, 0.4, 0.0, (float *)&v135, "bigFont.fnt", 0, 0, 0); if ( v134 < 0 ) operator delete(v133[0]); ((void (__fastcall *)(CCMenuItemToggler *, _QWORD))ToggleButton->setTag)(ToggleButton, 0); sub_100009900(v131, "Info"); sub_100009900( v129, "Makes it so that your list can only be found by searching for the exact ID. It will not be visible o" "n your profile, from search, or anywhere else."); v81 = InfoAlertButton::create((__int64)v131, (__int64)v129, 0.8); if ( v130 < 0 ) operator delete(v129[0]); if ( v132 < 0 ) operator delete(v131[0]); v82 = ((__n128 (__fastcall *)(cocos2d::CCMenu *, char *))v50->m_buttonMenu->addChild)(v50->m_buttonMenu, v81); v83 = v50->m_buttonMenu; v82.n128_f32[0] = (float)((float)(v152 * 0.5) + -120.0) + -30.0; v84.n128_f32[0] = (float)(v153 * 0.5) + -70.0; sub_100022980(v82, v84, &v135); v155 = cocos2d::CCNode::convertToNodeSpace(v83, (const cocos2d::CCPoint *)&v135); v85 = (*(__int64 (__fastcall **)(char *, void **, float, float))(*(_QWORD *)v81 + 184LL))(v81, v121, v155.x, v155.y); v86 = sub_10024A15C(v85); sub_100009900(v127, "Friends Only"); LOBYTE(v83) = v50->m_list->m_friendsOnly; v87 = v50->m_buttonMenu; v88.n128_f32[0] = (float)(v152 * 0.5) + 40.0; v89.n128_f32[0] = (float)(v153 * 0.5) + -70.0; sub_100022980(v88, v89, v121); v90 = v50->m_mainLayer; v91.n128_u32[0] = 8.0; v92.n128_u32[0] = 0; sub_100022980(v91, v92, &v135); m_friendsOnlyToggler = GameToolbox::createToggleButton( (const char *)v127, (void (__cdecl *)(cocos2d::CCObject *))ShareListLayer::onUnlisted, 0, (bool)v83, v87, (cocos2d::CCPoint *)v121, v50, v90, 0.8, 0.4, 0.0, (float *)&v135, "bigFont.fnt", 0, 0, v86); v50->m_friendsOnlyToggler = m_friendsOnlyToggler; if ( v128 < 0 ) { operator delete(v127[0]); m_friendsOnlyToggler = v50->m_friendsOnlyToggler; } ((void (__fastcall *)(CCMenuItemToggler *, __int64))m_friendsOnlyToggler->setTag)(m_friendsOnlyToggler, 1); v50->m_friendsOnlyLabel = (cocos2d::CCLabelBMFont *)sub_10024A388(v86, 1); sub_100009900(v125, "Info"); sub_100009900( v123, "Makes it so that your list can only be found by friends who search for the exact ID. It will not" " be visible on your profile, from search, or anywhere else."); v94 = InfoAlertButton::create((__int64)v125, (__int64)v123, 0.8); if ( v124 < 0 ) operator delete(v123[0]); if ( v126 < 0 ) operator delete(v125[0]); v95 = ((__n128 (__fastcall *)(cocos2d::CCMenu *, char *))v50->m_buttonMenu->addChild)(v50->m_buttonMenu, v94); v96 = v50->m_buttonMenu; v95.n128_f32[0] = (float)((float)(v152 * 0.5) + 40.0) + -30.0; v97.n128_f32[0] = (float)(v153 * 0.5) + -70.0; sub_100022980(v95, v97, &v135); v156 = cocos2d::CCNode::convertToNodeSpace(v96, (const cocos2d::CCPoint *)&v135); (*(void (__fastcall **)(char *, void **, float, float))(*(_QWORD *)v94 + 184LL))(v94, v121, v156.x, v156.y); ShareListLayer::updateUnlistedF(v50); GJLevelList::frameForListDifficulty(v50->m_list->m_difficulty, 2, v121); if ( v122 >= 0 ) v98 = v121; else v98 = (void **)v121[0]; v99 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v98); v100 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v50->m_mainLayer->addChild_0)( v50->m_mainLayer, v99, 1); v100.n128_f32[0] = (float)(v152 * 0.5) + -50.0; v101.n128_f32[0] = (float)(v153 * 0.5) + -25.0; sub_100022980(v100, v101, &v135); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *))v99->setPosition)(v99, &v135); v102 = GJLevelList::totalLevels(v50->m_list); v103 = (cocos2d::CCString *)sub_100268F4C("%i Levels", v102); CString = cocos2d::CCString::getCString(v103); v105 = cocos2d::CCLabelBMFont::create_1(CString, "goldFont.fnt"); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v105->setScale)(v105, 0.8); v106 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))v50->m_mainLayer->addChild_0)( v50->m_mainLayer, v105, 1); v106.n128_u32[0] = 0; v107.n128_u32[0] = 0.5; sub_100022980(v106, v107, &v135); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float32x2_t *))v105->setAnchorPoint)(v105, &v135); v108 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v99->getPosition)(v99); v109.n128_u32[0] = 30.0; v110.n128_u32[0] = 0; sub_100022980(v109, v110, &v120); *(float32x2_t *)&v111 = sub_1000229DC(v108, &v120, &v135); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float32x2_t *, double))v105->setPosition)(v105, &v135, v111); if ( v122 < 0 ) operator delete(v121[0]); if ( (char)v140 < 0 ) operator delete(v138); if ( v143 < 0 ) operator delete(v141); if ( v145 < 0 ) operator delete(*(void **)v144); if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__dst.__r_.__value_.__l.__data_); LOBYTE(v4) = v116; return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source