// // EditorSoundBrowserLayer::init from 0x782680 to 0x783108 (2696 bytes) // // 1 xrefs: // > EditorSoundBrowserLayer::create @ 0x7833d8 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:59:30 +0000 // GameManager *__fastcall EditorSoundBrowserLayer::init(int a1, unsigned __int8 *a2, int a3) { cocos2d::CCDirector *v4; // r0 cocos2d::CCMenu *WinSize; // r0 float v6; // s15 float v7; // s19 float v8; // s22 float v9; // s21 int v10; // r0 float v11; // s19 const char *v12; // r2 int v13; // r4 void (__fastcall *v14)(int, _DWORD *); // r6 cocos2d::CCArray *v15; // r0 cocos2d::CCObject *v16; // r0 cocos2d::CCArray *v17; // r0 cocos2d::CCObject *v18; // r0 float v19; // s17 float *v20; // r4 float v21; // s20 float v22; // s17 int v23; // r6 void (__fastcall *v24)(int, _DWORD *); // r10 const cocos2d::CCSize *v25; // r0 cocos2d::CCObject *v26; // r8 void (__fastcall *v27)(cocos2d::CCObject *, _DWORD *); // r11 const char *v28; // r2 cocos2d::CCLabelBMFont *v29; // r11 const char *v30; // r1 float *v31; // r9 float v32; // s15 float v33; // s14 float v34; // s15 float v35; // s16 float v36; // s26 void (__fastcall *v37)(float *, _DWORD *); // r11 cocos2d::CCObject *v38; // r9 GameManager *v39; // r0 GameManager *v40; // r0 int v41; // r3 int v42; // r0 const cocos2d::CCPoint *v43; // r11 void (__fastcall *v44)(cocos2d::CCObject *, _DWORD *); // r10 const char *v45; // r1 float v46; // s16 float v47; // s17 int v48; // r0 float v49; // s16 int v50; // r9 void (__fastcall *v51)(int, _DWORD *); // r11 const char *v52; // r1 cocos2d::CCSprite *v53; // r9 int v54; // r9 const cocos2d::CCPoint *v55; // r11 void (__fastcall *v56)(int, _DWORD *); // r10 const char *v57; // r2 int v58; // r0 int v59; // r10 void (__fastcall *v60)(int, _DWORD *); // r9 const char *v61; // r1 int v62; // r0 int v63; // r10 int v64; // r9 cocos2d::CCDirector *v65; // r0 float v66; // s15 const cocos2d::CCPoint *v67; // r11 void (__fastcall *v68)(int, _DWORD *); // r10 float v69; // s17 cocos2d::CCDirector *v70; // r0 float v71; // r0 float v72; // s20 cocos2d::CCDirector *v73; // r0 float v74; // r0 const char *v75; // r1 int v76; // r0 int v77; // r9 int v78; // r7 cocos2d::CCDirector *v79; // r0 float v80; // s15 const cocos2d::CCPoint *v81; // r10 void (__fastcall *v82)(int, _DWORD *); // r9 float v83; // s16 cocos2d::CCDirector *v84; // r0 float v85; // r0 float v86; // s17 cocos2d::CCDirector *v87; // r0 float v88; // r0 const char *v89; // r1 int v90; // r7 int v91; // r6 const cocos2d::CCPoint *v92; // r10 void (__fastcall *v93)(int, _BYTE *); // r7 int v94; // r4 const cocos2d::CCPoint *v95; // r7 void (__fastcall *v96)(int, _BYTE *); // r6 GameManager *v97; // r0 int v98; // r3 int v99; // r3 EditorSoundBrowserLayer *v100; // r0 int v101; // r1 int v102; // r4 GameManager *v103; // r0 int v104; // r0 cocos2d::CCPoint *v106; // [sp+14h] [bp-1D0h] cocos2d::CCPoint *v107; // [sp+14h] [bp-1D0h] GameManager *v109; // [sp+1Ch] [bp-1C8h] void (__fastcall *v110)(cocos2d::CCLabelBMFont *, _DWORD *); // [sp+34h] [bp-1B0h] float v111; // [sp+3Ch] [bp-1A8h] BYREF float v112; // [sp+40h] [bp-1A4h] _BYTE v113[8]; // [sp+44h] [bp-1A0h] BYREF _BYTE v114[8]; // [sp+4Ch] [bp-198h] BYREF _DWORD (*v115)(EditorSoundBrowserLayer *__hidden, cocos2d::CCObject *); // [sp+54h] [bp-190h] int v116; // [sp+58h] [bp-18Ch] _DWORD (__fastcall *v117)(EditorSoundBrowserLayer *__hidden, cocos2d::CCObject *); // [sp+5Ch] [bp-188h] int v118; // [sp+60h] [bp-184h] float v119; // [sp+64h] [bp-180h] BYREF float v120; // [sp+68h] [bp-17Ch] _DWORD v121[2]; // [sp+6Ch] [bp-178h] BYREF int v122[3]; // [sp+74h] [bp-170h] BYREF int v123[3]; // [sp+80h] [bp-164h] BYREF _DWORD v124[4]; // [sp+8Ch] [bp-158h] BYREF _DWORD v125[2]; // [sp+9Ch] [bp-148h] BYREF _BYTE v126[8]; // [sp+A4h] [bp-140h] BYREF int v127; // [sp+ACh] [bp-138h] _DWORD (*v128)(EditorSoundBrowserLayer *__hidden, cocos2d::CCObject *); // [sp+B0h] [bp-134h] _DWORD v129[4]; // [sp+B4h] [bp-130h] _BYTE v130[8]; // [sp+C4h] [bp-120h] BYREF int v131; // [sp+CCh] [bp-118h] _DWORD (*v132)(EditorSoundBrowserLayer *__hidden, cocos2d::CCObject *); // [sp+D0h] [bp-114h] int v133; // [sp+D4h] [bp-110h] int v134; // [sp+D8h] [bp-10Ch] const char *v135; // [sp+DCh] [bp-108h] const char *v136; // [sp+E0h] [bp-104h] _BYTE v137[8]; // [sp+E4h] [bp-100h] BYREF int v138; // [sp+ECh] [bp-F8h] _DWORD (*v139)(EditorSoundBrowserLayer *__hidden, cocos2d::CCObject *); // [sp+F0h] [bp-F4h] int v140; // [sp+F4h] [bp-F0h] int v141; // [sp+F8h] [bp-ECh] const char *v142; // [sp+FCh] [bp-E8h] const char *v143; // [sp+100h] [bp-E4h] _BYTE v144[8]; // [sp+104h] [bp-E0h] BYREF int v145; // [sp+10Ch] [bp-D8h] _DWORD (*v146)(EditorSoundBrowserLayer *__hidden, cocos2d::CCObject *); // [sp+110h] [bp-D4h] int v147; // [sp+114h] [bp-D0h] int v148; // [sp+118h] [bp-CCh] const char *v149; // [sp+11Ch] [bp-C8h] const char *v150; // [sp+120h] [bp-C4h] _BYTE v151[8]; // [sp+124h] [bp-C0h] BYREF int v152; // [sp+12Ch] [bp-B8h] _DWORD (*v153)(EditorSoundBrowserLayer *__hidden, cocos2d::CCObject *); // [sp+130h] [bp-B4h] int v154; // [sp+134h] [bp-B0h] int v155; // [sp+138h] [bp-ACh] const char *v156; // [sp+13Ch] [bp-A8h] const char *v157; // [sp+140h] [bp-A4h] _BYTE v158[8]; // [sp+144h] [bp-A0h] BYREF int v159; // [sp+14Ch] [bp-98h] _DWORD (*v160)(EditorSoundBrowserLayer *__hidden, cocos2d::CCObject *); // [sp+150h] [bp-94h] int v161; // [sp+154h] [bp-90h] int v162; // [sp+158h] [bp-8Ch] const char *v163; // [sp+15Ch] [bp-88h] const char *v164; // [sp+160h] [bp-84h] _BYTE v165[8]; // [sp+164h] [bp-80h] BYREF int v166; // [sp+16Ch] [bp-78h] _DWORD (*v167)(EditorSoundBrowserLayer *__hidden, cocos2d::CCObject *); // [sp+170h] [bp-74h] int v168; // [sp+174h] [bp-70h] int v169; // [sp+178h] [bp-6Ch] const char *v170; // [sp+17Ch] [bp-68h] const char *v171; // [sp+180h] [bp-64h] _BYTE v172[8]; // [sp+184h] [bp-60h] BYREF int v173; // [sp+18Ch] [bp-58h] _DWORD (*v174)(EditorSoundBrowserLayer *__hidden, cocos2d::CCObject *); // [sp+190h] [bp-54h] int v175; // [sp+194h] [bp-50h] int v176; // [sp+198h] [bp-4Ch] const char *v177; // [sp+19Ch] [bp-48h] const char *v178; // [sp+1A0h] [bp-44h] _BYTE v179[8]; // [sp+1A4h] [bp-40h] BYREF int v180; // [sp+1ACh] [bp-38h] _DWORD (*v181)(EditorSoundBrowserLayer *__hidden, cocos2d::CCObject *); // [sp+1B0h] [bp-34h] int v182; // [sp+1B4h] [bp-30h] int v183; // [sp+1B8h] [bp-2Ch] const char *v184; // [sp+1BCh] [bp-28h] const char *v185; // [sp+1C0h] [bp-24h] _BYTE v186[8]; // [sp+1C4h] [bp-20h] BYREF int v187; // [sp+1CCh] [bp-18h] _DWORD (*v188)(EditorSoundBrowserLayer *__hidden, cocos2d::CCObject *); // [sp+1D0h] [bp-14h] int v189; // [sp+1D4h] [bp-10h] int v190; // [sp+1D8h] [bp-Ch] *(_DWORD *)(a1 + 808) = a3; v109 = SetupTriggerPopup::init((SetupTriggerPopup *)a1, nullptr, nullptr, 400.0, 280.0, (_BYTE *)&dword_0 + 1, 0.0); if ( v109 ) { v4 = (cocos2d::CCDirector *)SetupTriggerPopup::preSetup((SetupTriggerPopup *)a1); *(_BYTE *)(a1 + 468) = 1; cocos2d::CCDirector::sharedDirector(v4); WinSize = (cocos2d::CCMenu *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v111); v6 = *(float *)(a1 + 560) * 0.5; v7 = v111; v8 = (float)(v112 * 0.5) + v6; v9 = (float)(v112 * 0.5) - v6; v10 = cocos2d::CCMenu::create(WinSize); v11 = v7 * 0.5; *(_DWORD *)(a1 + 444) = v10; (*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v10, 10); v13 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Browse Sound Packs", "goldFont.fnt", v12); (*(void (__fastcall **)(int, float))(*(_DWORD *)v13 + 80))(v13, 0.5); v14 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v13 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, v11, v8 - 10.0); v14(v13, v124); v15 = (cocos2d::CCArray *)(*(int (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 460) + 228))( *(_DWORD *)(a1 + 460), v13); v16 = (cocos2d::CCObject *)cocos2d::CCArray::create(v15); *(_DWORD *)(a1 + 792) = v16; v17 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v16); v18 = (cocos2d::CCObject *)cocos2d::CCArray::create(v17); *(_DWORD *)(a1 + 796) = v18; cocos2d::CCObject::retain(v18); v125[0] = "Create"; v125[1] = "GJ_hammerIcon_001.png"; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v126, 0.0, 0.0); v127 = 1063675494; v129[1] = 1; v129[2] = "Uploaded"; v128 = EditorSoundBrowserLayer::onSelectMode; v129[0] = 0; v129[3] = "GJ_profileButton_001.png"; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v130, 0.0, 0.0); v134 = 2; v132 = EditorSoundBrowserLayer::onSelectMode; v135 = "Favorite"; v131 = 1065353216; v133 = 0; v136 = "gj_heartOn_001.png"; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v137, 0.0, 0.0); v139 = EditorSoundBrowserLayer::onSelectMode; v142 = "Featured"; v138 = 1065353216; v140 = 0; v143 = "GJ_starsIcon_001.png"; v141 = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v144, 0.0, 0.0); v148 = 3; v149 = "Trending"; v146 = EditorSoundBrowserLayer::onSelectMode; v145 = 1064514355; v150 = "GJ_sTrendingIcon_001.png"; v147 = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v151, 0.0, 0.0); v155 = 4; v153 = EditorSoundBrowserLayer::onSelectMode; v156 = "Friends"; v152 = 1065353216; v154 = 0; v157 = "GJ_sFriendsIcon_001.png"; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v158, 0.0, 1.0); v162 = 5; v160 = EditorSoundBrowserLayer::onSelectMode; v163 = "Liked"; v159 = 1065353216; v161 = 0; v164 = "GJ_sLikeIcon_001.png"; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, 0.0, 0.0); v169 = 6; v167 = EditorSoundBrowserLayer::onSelectMode; v170 = "Download"; v166 = 1064514355; v168 = 0; v171 = "GJ_sDownloadIcon_001.png"; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v172, 0.0, 1.0); v176 = 7; v174 = EditorSoundBrowserLayer::onSelectMode; v177 = "Recent"; v173 = 1064514355; v175 = 0; v178 = "GJ_sRecentIcon_001.png"; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v179, 0.0, 1.0); v183 = 8; v181 = EditorSoundBrowserLayer::onSelectMode; v184 = "Search"; v180 = 1065353216; v182 = 0; v185 = "GJ_searchIcon_001.png"; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v186, 0.0, 0.5); v19 = *(float *)(a1 + 556); v188 = EditorSoundBrowserLayer::onSelectMode; v20 = (float *)v125; v187 = 1064514355; v189 = 0; v190 = 9; v106 = nullptr; v21 = (float)(v19 - 28.0) / 5.0; v22 = (float)((float)(v111 * 0.5) - (float)(v19 * 0.5)) + 14.0; do { cocos2d::CCRect::CCRect((cocos2d::CCRect *)v124, 0.0, 0.0, 40.0, 40.0); v23 = cocos2d::extension::CCScale9Sprite::create("GJ_button_04.png", v124); v24 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v23 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v124, v21 - 6.0, 22.0); v24(v23, v124); v25 = (const cocos2d::CCSize *)(*(int (__fastcall **)(int))(*(_DWORD *)v23 + 164))(v23); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v119, v25); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v124, 0.0, 0.0, 40.0, 40.0); v26 = (cocos2d::CCObject *)cocos2d::extension::CCScale9Sprite::create("GJ_button_02.png", v124); (*(void (__fastcall **)(cocos2d::CCObject *, float *))(*(_DWORD *)v26 + 160))(v26, &v119); v27 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v26 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, v119 * 0.5, v120 * 0.5); v27(v26, v124); (*(void (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)v26 + 172))(v26, 0); (*(void (__fastcall **)(int, cocos2d::CCObject *, _DWORD))(*(_DWORD *)v23 + 232))(v23, v26, 0); v29 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create( *(cocos2d::CCLabelBMFont **)v20, "bigFont.fnt", v28); (*(void (__fastcall **)(int, cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v23 + 232))(v23, v29, 1); v31 = (float *)cocos2d::CCSprite::createWithSpriteFrameName(*((cocos2d::CCSprite **)v20 + 1), v30); (*(void (__fastcall **)(int, float *, int))(*(_DWORD *)v23 + 232))(v23, v31, 1); v32 = v31[86]; v33 = v31[87]; if ( v32 <= 0.0 || v33 <= 0.0 ) { v35 = 1.0; } else { v34 = 15.0 / v32; v35 = 15.0 / v33; if ( v34 <= (float)(15.0 / v33) ) v35 = v34; } (*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v31 + 80))(v31, v35 * v20[4]); v36 = (float)(v119 - 5.0) - 7.5; cocos2d::CCLabelBMFont::limitLabelWidth(v29, (float)((float)(v36 - 7.5) - 2.0) - 5.0, 0.34, 0.0); v110 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v29 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v124, (float)((float)((float)((float)(v36 - 7.5) - 2.0) - 5.0) * 0.5) + 5.0, (float)(v120 * 0.5) + 1.5); v110(v29, v124); v37 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v31 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, v36 + v20[2], v20[3] + (float)(v120 * 0.5)); v37(v31, v124); v38 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v23, 0, a1, v129[8 * (_DWORD)v106 - 1], v129[8 * (_DWORD)v106]); (*(void (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)v38 + 36))(v38, *((_DWORD *)v20 + 7)); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v38); v39 = (GameManager *)cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 796), v26); v40 = (GameManager *)GameManager::sharedState(v39); if ( GameManager::safeModeEnabled(v40) || (v42 = GJAccountManager::sharedState(nullptr), *(_DWORD *)(v42 + 280) - *(_DWORD *)(v42 + 284) <= 0) ) { v41 = *((_DWORD *)v20 + 7); if ( v41 == 5 || v41 == 2 ) { (*(void (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)v38 + 172))(v38, 0); (*(void (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)v38 + 528))(v38, 0); } } v43 = *(const cocos2d::CCPoint **)(a1 + 444); v44 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v38 + 92); v20 += 8; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v121, (float)(v22 + (float)(v21 * (float)((int)v106 % 5))) + (float)(v21 * 0.5), (float)(v8 - 34.0) - (float)((float)((int)v106 / 5) * 26.0)); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v124, v43); v44(v38, v124); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 792), v38); v106 = (cocos2d::CCPoint *)((char *)v106 + 1); } while ( v106 != (cocos2d::CCPoint *)&byte_9[1] ); v46 = v112; v47 = (float)(*(float *)(a1 + 556) * 0.5) + 24.0; v48 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v45); v116 = 0; v115 = EditorSoundBrowserLayer::onPrevPage; v49 = v46 * 0.5; v50 = CCMenuItemSpriteExtra::create(v48, 0, a1, (int)EditorSoundBrowserLayer::onPrevPage, 0); CCMenuItemSpriteExtra::setSizeMult(v50, 1.5); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v50); v51 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v50 + 92); v107 = *(cocos2d::CCPoint **)(a1 + 444); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, v11 - v47, v49); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v124, v107); v51(v50, v124); *(_DWORD *)(a1 + 744) = v50; v53 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_01_001.png", v52); cocos2d::CCSprite::setFlipX(v53, 1); v118 = 0; v117 = EditorSoundBrowserLayer::onNextPage; v54 = CCMenuItemSpriteExtra::create((int)v53, 0, a1, (int)EditorSoundBrowserLayer::onNextPage, 0); CCMenuItemSpriteExtra::setSizeMult(v54, 1.5); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v54); v55 = *(const cocos2d::CCPoint **)(a1 + 444); v56 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v54 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, v11 + v47, v49); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v124, v55); v56(v54, v124); *(_DWORD *)(a1 + 748) = v54; v58 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&unk_B6B226, "goldFont.fnt", v57); *(_DWORD *)(a1 + 740) = v58; (*(void (__fastcall **)(int, int))(*(_DWORD *)v58 + 80))(v58, 1053609165); v59 = *(_DWORD *)(a1 + 740); v60 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v59 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, v11, v9 + 56.0); v60(v59, v124); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 460) + 228))( *(_DWORD *)(a1 + 460), *(_DWORD *)(a1 + 740)); v62 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_newBtn_001.png", v61); v120 = 0.0; v119 = COERCE_FLOAT(EditorSoundBrowserLayer::onSaveActive); v63 = v62; v64 = CCMenuItemSpriteExtra::create(v62, 0, a1, (int)EditorSoundBrowserLayer::onSaveActive, 0); v65 = (cocos2d::CCDirector *)(*(int (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))( *(_DWORD *)(a1 + 444), v64); v66 = *(float *)(v63 + 344); v67 = *(const cocos2d::CCPoint **)(a1 + 444); v68 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v64 + 92); v69 = (float)(v66 * 0.5) + 4.0; v70 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v65); v71 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v70)); v72 = v71 - v69; v73 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v71)); v74 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v73)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, v72, v74 + v69); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v124, v67); v68(v64, v124); *(_DWORD *)(a1 + 752) = v64; v76 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_updateBtn_001.png", v75); v121[0] = EditorSoundBrowserLayer::onRefresh; v121[1] = 0; v77 = v76; v78 = CCMenuItemSpriteExtra::create(v76, 0, a1, (int)EditorSoundBrowserLayer::onRefresh, 0); v79 = (cocos2d::CCDirector *)(*(int (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))( *(_DWORD *)(a1 + 444), v78); v80 = *(float *)(v77 + 344); v81 = *(const cocos2d::CCPoint **)(a1 + 444); v82 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v78 + 92); v83 = (float)(v80 * 0.5) + 4.0; v84 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v79); v85 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v84)); v86 = v85 + v83; v87 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v85)); v88 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v87)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, v86, v88 + v83); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v124, v81); v82(v78, v124); v90 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v89); (*(void (__fastcall **)(int, int))(*(_DWORD *)v90 + 80))(v90, 1060320051); v124[0] = 684; v124[1] = 1; v91 = CCMenuItemSpriteExtra::create(v90, 0, a1, 684, 1); CCMenuItemSpriteExtra::setSizeMult(v91, 1.2); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v91); v92 = *(const cocos2d::CCPoint **)(a1 + 444); v93 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v91 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v113, v11 - (float)(*(float *)(a1 + 556) * 0.5), v8); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v114, v92); v93(v91, v114); memset(v122, 0, sizeof(v122)); std::string::__init(v122, "Sound Packs", 0xBu); memset(v123, 0, sizeof(v123)); std::string::__init( v123, "Create a pack, open it to set a name and description, then Overwrite it with your current editor s" "ounds.\n" "Upload shares it online. To change an upload, edit the pack and Upload again.\n" "Open any pack to Load (replace) or Merge it into your editor. Favorite keeps a copy. U" "pdate re-downloads the server copy.", 0x168u); v94 = InfoAlertButton::create((char *)v122, (int)v123, 1060320051); std::string::~string((int)v123); std::string::~string((int)v122); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v94); v95 = *(const cocos2d::CCPoint **)(a1 + 444); v96 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v94 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v113, v11 + (float)(*(float *)(a1 + 556) * 0.5), v8); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v114, v95); v96(v94, v114); v97 = (GameManager *)SetupTriggerPopup::postSetup((SetupTriggerPopup *)a1); v98 = *a2; if ( (v98 & 1) != 0 ) v99 = *((_DWORD *)a2 + 1); else v99 = v98 >> 1; if ( v99 ) { *(_BYTE *)(a1 + 804) = 1; std::string::operator=((unsigned __int8 *)(a1 + 768), a2); v100 = (EditorSoundBrowserLayer *)a1; v101 = 9; } else { v102 = dword_D1E2CC; if ( (unsigned int)dword_D1E2CC >= 0xA ) v102 = 1; v103 = (GameManager *)GameManager::sharedState(v97); if ( GameManager::safeModeEnabled(v103) || (v104 = GJAccountManager::sharedState(nullptr), *(_DWORD *)(v104 + 280) - *(_DWORD *)(v104 + 284) <= 0) ) { if ( v102 == 5 ) { v102 = 1; } else if ( v102 == 2 ) { v102 = 1; } } std::string::operator=((unsigned __int8 *)(a1 + 768), (unsigned __int8 *)&dword_D2E30C); v100 = (EditorSoundBrowserLayer *)a1; v101 = v102; } EditorSoundBrowserLayer::setMode(v100, v101); } return v109; }
GD Web Decomp Icon

GD Web Decomp

Raw Source