// // CustomSFXWidget::init from 0x6a6ed0 to 0x6a7dcc (3836 bytes) // // 1 xrefs: // > CustomSFXWidget::create @ 0x6a7eaa // // 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:56:32 +0000 // cocos2d::CCObject *__fastcall CustomSFXWidget::init( CustomSFXWidget *this, SFXInfoObject *a2, CustomSFXDelegate *a3, bool a4, bool a5, bool a6, bool a7, bool a8, bool a9, bool a10) { cocos2d::CCObject *CustomSFXObject; // r0 cocos2d::CCObject *v14; // r3 MusicDownloadManager *v15; // r0 bool v16; // r2 CustomSFXRowMenu *WinSize; // r0 int v18; // r3 int v19; // r6 int v20; // r5 _BOOL4 v21; // r3 char *v22; // r6 int v23; // r6 void (__fastcall *v24)(int, _DWORD *); // r10 float v25; // s16 _DWORD *v26; // r0 int v27; // r3 cocos2d::CCDirector *v28; // r0 int v29; // r0 cocos2d::CCTouchDispatcher *v30; // r0 cocos2d::CCDirector *isUsingForcePrio; // r0 const char *v32; // r2 int v33; // r9 void (__fastcall *v34)(int, int); // r10 int v35; // r0 int v36; // r0 const char *v37; // r2 int v38; // r0 void *v39; // r1 const char *v40; // r2 int v41; // r0 void (__fastcall *v42)(int, _DWORD *); // r3 int v43; // r11 void (__fastcall *v44)(int, _DWORD *); // r10 int v45; // r11 void (__fastcall *v46)(int, _DWORD *); // r10 int v47; // r11 void (__fastcall *v48)(int, _DWORD *); // r10 int v49; // r10 void (__fastcall *v50)(int, _DWORD *); // r11 float v51; // s17 int v52; // r10 int v53; // r11 void (__fastcall *v54)(int, _DWORD *); // r10 float v55; // s16 const char *v56; // r1 int v57; // r9 int v58; // r0 const char *v59; // r1 int v60; // r9 int v61; // r0 const char *v62; // r1 int v63; // r9 int v64; // r0 const char *v65; // r1 int v66; // r0 const char *v67; // r1 int v68; // r11 int v69; // r0 int v70; // r11 void (__fastcall *v71)(int, _DWORD *); // r11 int v72; // r9 void (__fastcall *v73)(int, int); // r10 int v74; // r0 int v75; // r9 float v76; // s16 void (__fastcall *v77)(int, int); // r10 int v78; // r0 int v79; // r11 int v80; // r11 const char *v81; // r1 int v82; // r0 int v83; // r0 int v84; // r1 int v85; // r9 int v86; // r0 int v87; // r10 int v88; // r3 int v89; // s18 int v90; // r9 void (__fastcall *v91)(int, _DWORD); // r10 float v92; // s17 int v93; // r0 int v94; // r0 int v95; // r11 int v96; // r0 int v97; // r0 int v98; // r7 int v99; // r0 int v100; // r1 int v101; // r9 int v102; // r0 int v103; // r8 void (__fastcall *v104)(int, _DWORD *); // r10 int v105; // r11 const char *v106; // r1 char *v107; // r0 int v108; // r0 int v109; // r1 int v110; // r9 int v111; // r0 int v112; // r9 void (__fastcall *v113)(int, _DWORD *); // r10 int v114; // r11 int v115; // r7 const cocos2d::CCPoint *v116; // r9 void (__fastcall *v117)(int, _DWORD *); // r10 float v118; // r1 const char *v119; // r1 cocos2d::CCSprite *v120; // r7 int v121; // r1 int v122; // r9 void (__fastcall *v123)(int, _DWORD *); // r10 int v124; // r11 int v125; // r9 void (__fastcall *v126)(int, _DWORD *); // r10 int v127; // r11 int v128; // r0 int v129; // r1 const char *v130; // r1 int v131; // r8 void (__fastcall *v132)(int, _DWORD *); // r9 void (__fastcall *v133)(int, _DWORD *); // r3 char v134; // r2 int v135; // r0 int v136; // r3 const char *v137; // r1 int v138; // r0 int v139; // r0 int v140; // r5 void (__fastcall *v141)(int, _BYTE *); // r7 int v142; // r5 void (__fastcall *v143)(int, _BYTE *); // r7 int v144; // r5 void (__fastcall *v145)(int, _BYTE *); // r7 int v146; // r0 MusicDownloadManager *updated; // r0 cocos2d::CCArray **v148; // r0 MusicDownloadManager *v149; // r0 MusicDownloadManager *v150; // r0 int v152; // r9 void (__fastcall *v153)(int, _DWORD); // r10 float v154; // s18 float v155; // s19 int v156; // r0 int v157; // r0 _BOOL4 v158; // [sp+Ch] [bp-B8h] _BOOL4 v159; // [sp+10h] [bp-B4h] int v160; // [sp+10h] [bp-B4h] int v162; // [sp+18h] [bp-ACh] int v163; // [sp+18h] [bp-ACh] void (__fastcall *v164)(int, _DWORD *); // [sp+18h] [bp-ACh] void (__fastcall *v165)(int, _DWORD *); // [sp+1Ch] [bp-A8h] cocos2d::CCObject *v166; // [sp+20h] [bp-A4h] cocos2d::CCPoint *v167; // [sp+24h] [bp-A0h] cocos2d::CCPoint *v168; // [sp+24h] [bp-A0h] cocos2d::CCPoint *v169; // [sp+24h] [bp-A0h] cocos2d::CCPoint *v170; // [sp+24h] [bp-A0h] cocos2d::CCPoint *v171; // [sp+24h] [bp-A0h] void (__fastcall *v172)(int, _DWORD *); // [sp+2Ch] [bp-98h] int v173; // [sp+2Ch] [bp-98h] void (__fastcall *v174)(int, _DWORD *); // [sp+2Ch] [bp-98h] void (__fastcall *v175)(int, _DWORD *); // [sp+2Ch] [bp-98h] void (__fastcall *v176)(int, _DWORD *); // [sp+2Ch] [bp-98h] char v177[8]; // [sp+30h] [bp-94h] BYREF _BYTE v178[8]; // [sp+38h] [bp-8Ch] BYREF GameManager *(__fastcall *v179)(CustomSFXWidget *, cocos2d::CCObject *); // [sp+40h] [bp-84h] int v180; // [sp+44h] [bp-80h] int (__fastcall *v181)(const char **, cocos2d::CCObject *); // [sp+48h] [bp-7Ch] int v182; // [sp+4Ch] [bp-78h] int (__fastcall *v183)(int, cocos2d::CCObject *); // [sp+50h] [bp-74h] int v184; // [sp+54h] [bp-70h] int (__fastcall *v185)(int, cocos2d::CCObject *); // [sp+58h] [bp-6Ch] int v186; // [sp+5Ch] [bp-68h] FMODAudioEngine *(__fastcall *v187)(FMODAudioEngine *, cocos2d::CCObject *); // [sp+60h] [bp-64h] int v188; // [sp+64h] [bp-60h] _DWORD (*v189)(CustomSFXWidget *__hidden, cocos2d::CCObject *); // [sp+68h] [bp-5Ch] int v190; // [sp+6Ch] [bp-58h] CustomSFXWidget *(__fastcall *v191)(CustomSFXWidget *, cocos2d::CCObject *); // [sp+70h] [bp-54h] int v192; // [sp+74h] [bp-50h] _DWORD *(__fastcall *v193)(_DWORD *, cocos2d::CCObject *); // [sp+78h] [bp-4Ch] int v194; // [sp+7Ch] [bp-48h] int (__fastcall *v195)(int, cocos2d::CCObject *); // [sp+80h] [bp-44h] int v196; // [sp+84h] [bp-40h] _DWORD v197[4]; // [sp+88h] [bp-3Ch] BYREF _DWORD v198[2]; // [sp+98h] [bp-2Ch] BYREF int v199; // [sp+A0h] [bp-24h] BYREF int v200; // [sp+A4h] [bp-20h] char *v201; // [sp+A8h] [bp-1Ch] _DWORD v202[4]; // [sp+ACh] [bp-18h] BYREF CustomSFXObject = (cocos2d::CCObject *)cocos2d::CCNode::init(this); v166 = CustomSFXObject; if ( !CustomSFXObject ) return v166; if ( *((SFXInfoObject **)this + 68) != a2 ) { if ( a2 ) cocos2d::CCObject::retain(a2); CustomSFXObject = *((cocos2d::CCObject **)this + 68); if ( CustomSFXObject ) CustomSFXObject = (cocos2d::CCObject *)cocos2d::CCObject::release(CustomSFXObject); *((_DWORD *)this + 68) = a2; } *((_DWORD *)this + 86) = a3; *((_BYTE *)this + 348) = a4; *((_BYTE *)this + 349) = a5; *((_BYTE *)this + 352) = a8; *((_BYTE *)this + 350) = a6; *((_BYTE *)this + 354) = a10; v14 = *((cocos2d::CCObject **)this + 68); if ( !v14 ) { v159 = 0; goto LABEL_21; } if ( *((int *)v14 + 18) > 0 ) { v15 = (MusicDownloadManager *)MusicDownloadManager::sharedState(CustomSFXObject); CustomSFXObject = (cocos2d::CCObject *)MusicDownloadManager::getCustomSFXObject( v15, *(_DWORD *)(*((_DWORD *)this + 68) + 72)); v14 = *((cocos2d::CCObject **)this + 68); v159 = v14 == CustomSFXObject; if ( a9 ) { if ( !v14 ) goto LABEL_21; goto LABEL_15; } LABEL_118: LOBYTE(v14) = a9; goto LABEL_21; } if ( !a9 ) { v159 = 0; goto LABEL_118; } v159 = 0; LABEL_15: if ( *((_BYTE *)v14 + 68) ) { LOBYTE(v14) = 0; } else { v16 = (char)v166; if ( *((_DWORD *)v14 + 18) ) v16 = v159; LOBYTE(v14) = v16; } LABEL_21: *((_BYTE *)this + 353) = (_BYTE)v14; cocos2d::CCDirector::sharedDirector(CustomSFXObject); WinSize = (CustomSFXRowMenu *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v177); v18 = *((_DWORD *)this + 68); if ( !v18 ) { if ( a7 ) { v20 = *((_DWORD *)this + 68); v158 = v20; } else { v20 = 0; v158 = 0; if ( !a8 ) { v199 = 0; v200 = 0; v201 = nullptr; std::string::__init(&v199, "GJ_square01.png", 0xFu); goto LABEL_33; } } v23 = v20; goto LABEL_45; } v19 = *(_DWORD *)(v18 + 52); v20 = *(unsigned __int8 *)(v18 + 68); if ( v19 <= 0 ) goto LABEL_27; WinSize = *((CustomSFXRowMenu **)this + 86); if ( WinSize ) { WinSize = (CustomSFXRowMenu *)(*(int (__fastcall **)(CustomSFXRowMenu *))(*(_DWORD *)WinSize + 4))(WinSize); if ( WinSize == (CustomSFXRowMenu *)v19 ) { WinSize = (CustomSFXRowMenu *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 86) + 8))(*((_DWORD *)this + 86)); v21 = WinSize == *(CustomSFXRowMenu **)(*((_DWORD *)this + 68) + 72); LABEL_28: v158 = v21; goto LABEL_29; } LABEL_27: v21 = 0; goto LABEL_28; } v158 = 0; LABEL_29: if ( a7 ) { v23 = 0; goto LABEL_40; } if ( a8 ) { v23 = 0; goto LABEL_40; } v199 = 0; v200 = 0; v201 = nullptr; std::string::__init(&v199, "GJ_square01.png", 0xFu); if ( v20 || v158 ) std::string::assign(&v199, "GJ_square06.png"); LABEL_33: if ( (v199 & 1) != 0 ) v22 = v201; else v22 = (char *)&v199 + 1; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v202, 0.0, 0.0, 80.0, 80.0); v23 = cocos2d::extension::CCScale9Sprite::create(v22, v202); (*(void (__fastcall **)(int, int))(*(_DWORD *)v23 + 456))(v23, 255); v24 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v23 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v202, 320.0, 50.0); v24(v23, v202); (*(void (__fastcall **)(CustomSFXWidget *, int, int))(*(_DWORD *)this + 232))(this, v23, -2); WinSize = (CustomSFXRowMenu *)std::string::~string((int)&v199); LABEL_40: if ( v20 ) { v25 = 50.0; goto LABEL_46; } LABEL_45: v25 = 0.0; LABEL_46: v26 = CustomSFXRowMenu::create(WinSize); v27 = *(_DWORD *)this; *((_DWORD *)this + 69) = v26; v28 = (cocos2d::CCDirector *)(*(int (__fastcall **)(CustomSFXWidget *, _DWORD *))(v27 + 228))(this, v26); v29 = cocos2d::CCDirector::sharedDirector(v28); v30 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v29 + 80))(v29); isUsingForcePrio = (cocos2d::CCDirector *)cocos2d::CCTouchDispatcher::isUsingForcePrio(v30); if ( isUsingForcePrio ) { v33 = *((_DWORD *)this + 69); v34 = *(void (__fastcall **)(int, int))(*(_DWORD *)v33 + 512); v35 = cocos2d::CCDirector::sharedDirector(isUsingForcePrio); v36 = (*(int (__fastcall **)(int))(*(_DWORD *)v35 + 80))(v35); v34(v33, *(_DWORD *)(v36 + 100) - 1); } *((_DWORD *)this + 70) = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"SFX Title", "bigFont.fnt", v32); v38 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"SFX ID", "chatFont.fnt", v37); *((_DWORD *)this + 71) = v38; if ( v20 ) v39 = &unk_BEF96C; else v39 = &unk_BEF96F; (*(void (__fastcall **)(int, void *))(*(_DWORD *)v38 + 536))(v38, v39); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 71) + 512))(*((_DWORD *)this + 71), 200); v41 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Error", "bigFont.fnt", v40); *((_DWORD *)this + 72) = v41; v42 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v41 + 536); LOWORD(v202[0]) = 13055; BYTE2(v202[0]) = 25; v42(v41, v202); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 72) + 172))(*((_DWORD *)this + 72), 0); (*(void (__fastcall **)(CustomSFXWidget *, _DWORD))(*(_DWORD *)this + 228))(this, *((_DWORD *)this + 70)); (*(void (__fastcall **)(CustomSFXWidget *, _DWORD))(*(_DWORD *)this + 228))(this, *((_DWORD *)this + 71)); (*(void (__fastcall **)(CustomSFXWidget *, _DWORD))(*(_DWORD *)this + 228))(this, *((_DWORD *)this + 72)); v43 = *((_DWORD *)this + 70); v44 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v43 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v202, 0.0, 0.5); v44(v43, v202); v45 = *((_DWORD *)this + 72); v46 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v45 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v202, 0.0, 0.5); v46(v45, v202); v47 = *((_DWORD *)this + 71); v48 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v47 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v202, 0.0, 0.5); v48(v47, v202); v49 = *((_DWORD *)this + 70); v50 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v49 + 92); if ( a8 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v202, -160.0, 0.0); v55 = 20.0; v50(v49, v202); v51 = 0.4; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 71) + 80))(*((_DWORD *)this + 71), 1053609165); } else { v51 = 0.585; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v202, v25 - 150.0, 9.0); v50(v49, v202); v52 = *((_DWORD *)this + 72); v165 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v52 + 92); v162 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 70) + 96))(*((_DWORD *)this + 70)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v198, 1.0, -18.0); cocos2d::CCPoint::operator+(v202, v162, v198); v165(v52, v202); v53 = *((_DWORD *)this + 71); v54 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v53 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v202, v25 - 149.0, -9.0); v55 = 28.0; v54(v53, v202); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 71) + 80))(*((_DWORD *)this + 71), 1056964608); } v57 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_downloadBtn_001.png", v56); (*(void (__fastcall **)(int, float))(*(_DWORD *)v57 + 80))(v57, COERCE_FLOAT(LODWORD(v51))); v180 = 0; v179 = CustomSFXWidget::onDownload; v58 = CCMenuItemSpriteExtra::create(v57, 0, (int)this, (int)CustomSFXWidget::onDownload, 0); *((_DWORD *)this + 73) = v58; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 69) + 228))(*((_DWORD *)this + 69), v58); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 73), 1.1); v60 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_cancelDownloadBtn_001.png", v59); (*(void (__fastcall **)(int, float))(*(_DWORD *)v60 + 80))(v60, COERCE_FLOAT(LODWORD(v51))); v182 = 0; v181 = CustomSFXWidget::onCancelDownload; v61 = CCMenuItemSpriteExtra::create(v60, 0, (int)this, (int)CustomSFXWidget::onCancelDownload, 0); *((_DWORD *)this + 74) = v61; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 69) + 228))(*((_DWORD *)this + 69), v61); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 74), 1.1); v63 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_trashBtn_001.png", v62); (*(void (__fastcall **)(int, float))(*(_DWORD *)v63 + 80))(v63, COERCE_FLOAT(LODWORD(v51))); v184 = 0; v183 = CustomSFXWidget::onDelete; v64 = CCMenuItemSpriteExtra::create(v63, 0, (int)this, (int)CustomSFXWidget::onDelete, 0); *((_DWORD *)this + 77) = v64; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 69) + 228))(*((_DWORD *)this + 69), v64); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 77), 1.2); v163 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_selectSongBtn_001.png", v65); (*(void (__fastcall **)(int, float))(*(_DWORD *)v163 + 80))(v163, COERCE_FLOAT(LODWORD(v51))); v186 = 0; v185 = CustomSFXWidget::onSelect; v66 = CCMenuItemSpriteExtra::create(v163, 0, (int)this, (int)CustomSFXWidget::onSelect, 0); *((_DWORD *)this + 75) = v66; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 69) + 228))(*((_DWORD *)this + 69), v66); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 75), 1.2); v68 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_playMusicBtn_001.png", v67); (*(void (__fastcall **)(int, float))(*(_DWORD *)v68 + 80))(v68, COERCE_FLOAT(LODWORD(v51))); v188 = 0; v187 = CustomSFXWidget::onPlayback; v69 = CCMenuItemSpriteExtra::create(v68, 0, (int)this, (int)CustomSFXWidget::onPlayback, 0); *((_DWORD *)this + 76) = v69; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 69) + 228))(*((_DWORD *)this + 69), v69); v70 = *((_DWORD *)this + 73); v167 = *((cocos2d::CCPoint **)this + 69); v172 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v70 + 92); if ( a8 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v198, 155.0, 0.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v202, v167); v172(v70, v202); v72 = *((_DWORD *)this + 76); v73 = *(void (__fastcall **)(int, int))(*(_DWORD *)v72 + 92); v74 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 73) + 96))(*((_DWORD *)this + 73)); v73(v72, v74); } else { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v198, 141.0, 0.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v202, v167); v172(v70, v202); v173 = *((_DWORD *)this + 76); v71 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v173 + 92); v168 = *((cocos2d::CCPoint **)this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v198, 141.0, 1.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v202, v168); v71(v173, v202); } v75 = *((_DWORD *)this + 74); v76 = -v55; v77 = *(void (__fastcall **)(int, int))(*(_DWORD *)v75 + 92); v78 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 73) + 96))(*((_DWORD *)this + 73)); v77(v75, v78); v79 = *((_DWORD *)this + 77); v174 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v79 + 92); v169 = (cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 73) + 96))(*((_DWORD *)this + 73)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v198, v76 + v76, 0.0); cocos2d::CCPoint::operator+(v202, v169, v198); v174(v79, v202); v80 = *((_DWORD *)this + 75); v175 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v80 + 92); v170 = (cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 73) + 96))(*((_DWORD *)this + 73)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v198, v76, 0.0); cocos2d::CCPoint::operator+(v202, v170, v198); v175(v80, v202); if ( !v20 ) { v82 = *((_DWORD *)this + 86); if ( v82 ) { if ( (*(int (__fastcall **)(int))(*(_DWORD *)v82 + 36))(v82) ) { v152 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoIcon_001.png", v81); v153 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v152 + 80); v154 = *(float *)((*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 71) + 164))(*((_DWORD *)this + 71)) + 4); v155 = COERCE_FLOAT((*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 71) + 84))(*((_DWORD *)this + 71))); v156 = (*(int (__fastcall **)(int))(*(_DWORD *)v152 + 164))(v152); v153(v152, (float)((float)(v154 * v155) * 1.4) / *(float *)(v156 + 4)); v190 = 0; v189 = CustomSFXWidget::onShowInfo; v157 = CCMenuItemSpriteExtra::create(v152, 0, (int)this, (int)CustomSFXWidget::onShowInfo, 0); *((_DWORD *)this + 82) = v157; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 69) + 228))(*((_DWORD *)this + 69), v157); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 82), 1.4); } } } if ( *((_BYTE *)this + 353) ) { v83 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"gj_heartOff_001.png", v81); if ( a8 ) v84 = 1053609165; else v84 = 1061410570; v85 = v83; (*(void (__fastcall **)(int, int))(*(_DWORD *)v83 + 80))(v83, v84); v192 = 0; v191 = CustomSFXWidget::onToggleFavorite; v86 = CCMenuItemSpriteExtra::create(v85, 0, (int)this, (int)CustomSFXWidget::onToggleFavorite, 0); *((_DWORD *)this + 78) = v86; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 69) + 228))(*((_DWORD *)this + 69), v86); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 78), 1.2); v87 = *((_DWORD *)this + 78); v176 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v87 + 92); v171 = (cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 73) + 96))(*((_DWORD *)this + 73)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v198, v76 + v76, 0.0); cocos2d::CCPoint::operator+(v202, v171, v198); v176(v87, v202); } if ( !*((_BYTE *)this + 354) || !*((_DWORD *)this + 68) ) { LABEL_88: if ( v20 ) goto LABEL_76; goto LABEL_98; } if ( v159 ) { if ( *((_BYTE *)this + 353) ) v88 = 3; else v88 = 2; v89 = v88; v90 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"sideBtn_options_001.png", v81); v91 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v90 + 80); v92 = v51 * *(float *)((*(int (__fastcall **)(int))(*(_DWORD *)v163 + 164))(v163) + 4); v93 = (*(int (__fastcall **)(int))(*(_DWORD *)v90 + 164))(v90); v91(v90, v92 / *(float *)(v93 + 4)); v194 = 0; v193 = CustomSFXWidget::onEditCustom; v94 = CCMenuItemSpriteExtra::create(v90, 0, (int)this, (int)CustomSFXWidget::onEditCustom, 0); *((_DWORD *)this + 80) = v94; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 69) + 228))(*((_DWORD *)this + 69), v94); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 80), 1.2); v95 = *((_DWORD *)this + 80); v164 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v95 + 92); v160 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 73) + 96))(*((_DWORD *)this + 73)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v198, v76 * (float)v89, 0.0); cocos2d::CCPoint::operator+(v202, v160, v198); v164(v95, v202); v96 = *((_DWORD *)this + 86); if ( v96 && (*(int (__fastcall **)(int))(*(_DWORD *)v96 + 32))(v96) ) { if ( (*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 86) + 28))( *((_DWORD *)this + 86), *(_DWORD *)(*((_DWORD *)this + 68) + 72)) ) { v107 = "GJ_checkOn_001.png"; } else { v107 = "GJ_checkOff_001.png"; } v108 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v107, v106); if ( a8 ) v109 = 1053609165; else v109 = 1059481190; v110 = v108; (*(void (__fastcall **)(int, int))(*(_DWORD *)v108 + 80))(v108, v109); v196 = 0; v195 = CustomSFXWidget::onToggleSelect; v111 = CCMenuItemSpriteExtra::create(v110, 0, (int)this, (int)CustomSFXWidget::onToggleSelect, 0); *((_DWORD *)this + 81) = v111; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 69) + 228))(*((_DWORD *)this + 69), v111); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 81), 1.2); v112 = *((_DWORD *)this + 81); v113 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v112 + 92); v114 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 73) + 96))(*((_DWORD *)this + 73)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v198, v76 * (float)(v89 + 1), 0.0); cocos2d::CCPoint::operator+(v202, v114, v198); v113(v112, v202); } goto LABEL_88; } if ( v20 ) { LABEL_76: v97 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"folderIcon_001.png", v81); v98 = v97; if ( *((_BYTE *)this + 352) ) (*(void (__fastcall **)(int, int))(*(_DWORD *)v97 + 80))(v97, 1056964608); v197[3] = 0; v197[2] = CustomSFXWidget::onSelect; v115 = CCMenuItemSpriteExtra::create(v98, 0, (int)this, (int)CustomSFXWidget::onSelect, 0); CCMenuItemSpriteExtra::setSizeMult(v115, 1.2); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 69) + 228))(*((_DWORD *)this + 69), v115); v116 = *((const cocos2d::CCPoint **)this + 69); v117 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v115 + 92); if ( *((_BYTE *)this + 352) ) v118 = -150.0; else v118 = -130.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v198, v118, 2.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v202, v116); v117(v115, v202); v120 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_01_001.png", v119); cocos2d::CCSprite::setFlipX(v120, 1); if ( *((_BYTE *)this + 352) ) v121 = 1053609165; else v121 = 1061997773; (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v120 + 80))(v120, v121); v198[0] = CustomSFXWidget::onSelect; v198[1] = 0; v122 = CCMenuItemSpriteExtra::create((int)v120, 0, (int)this, (int)CustomSFXWidget::onSelect, 0); CCMenuItemSpriteExtra::setSizeMult(v122, 1.2); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 69) + 228))(*((_DWORD *)this + 69), v122); v123 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v122 + 92); v124 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 73) + 96))(*((_DWORD *)this + 73)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v197, 0.0, 1.0); cocos2d::CCPoint::operator+(v202, v124, v197); v123(v122, v202); if ( *((_BYTE *)this + 352) ) { v125 = *((_DWORD *)this + 70); v126 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v125 + 92); v127 = (*(int (__fastcall **)(int))(*(_DWORD *)v125 + 96))(v125); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v197, 28.0, 0.0); cocos2d::CCPoint::operator+(v202, v127, v197); v126(v125, v202); } goto LABEL_98; } v99 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_plusBtn_001.png", v81); if ( a8 ) v100 = 1050253722; else v100 = 1056796836; v101 = v99; (*(void (__fastcall **)(int, int))(*(_DWORD *)v99 + 80))(v99, v100); v197[1] = 0; v197[0] = CustomSFXWidget::onAddToFolder; v102 = CCMenuItemSpriteExtra::create(v101, 0, (int)this, (int)CustomSFXWidget::onAddToFolder, 0); *((_DWORD *)this + 79) = v102; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 69) + 228))(*((_DWORD *)this + 69), v102); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 79), 1.2); v103 = *((_DWORD *)this + 79); v104 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v103 + 92); v105 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 73) + 96))(*((_DWORD *)this + 73)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v198, v76 * 3.0, 0.0); cocos2d::CCPoint::operator+(v202, v105, v198); v104(v103, v202); LABEL_98: v128 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_timeIcon_001.png", v81); if ( *((_BYTE *)this + 352) ) v129 = 1057803469; else v129 = 1060320051; *((_DWORD *)this + 85) = v128; (*(void (__fastcall **)(int, int))(*(_DWORD *)v128 + 80))(v128, v129); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 85) + 456))(*((_DWORD *)this + 85), 150); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 85) + 172))(*((_DWORD *)this + 85), 0); (*(void (__fastcall **)(CustomSFXWidget *, _DWORD))(*(_DWORD *)this + 228))(this, *((_DWORD *)this + 85)); if ( v23 && (v20 || v158) ) { cocos2d::CCRect::CCRect((cocos2d::CCRect *)v202, 0.0, 0.0, 80.0, 80.0); v131 = cocos2d::extension::CCScale9Sprite::create("GJ_square07.png", v202); v132 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v131 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v202, 320.0, 50.0); v132(v131, v202); (*(void (__fastcall **)(CustomSFXWidget *, int, int))(*(_DWORD *)this + 232))(this, v131, -1); v133 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v23 + 480); if ( v20 ) { LOWORD(v202[0]) = -28202; v134 = 96; } else { LOWORD(v202[0]) = -19713; v134 = 61; } BYTE2(v202[0]) = v134; v133(v23, v202); } v135 = cocos2d::CCSprite::create((cocos2d::CCSprite *)"slidergroove.png", v130); v136 = *(_DWORD *)this; *((_DWORD *)this + 83) = v135; (*(void (__fastcall **)(CustomSFXWidget *, int, int))(v136 + 232))(this, v135, 3); v138 = cocos2d::CCSprite::create((cocos2d::CCSprite *)"sliderBar.png", v137); *((_DWORD *)this + 84) = v138; v202[0] = 9729; v202[1] = 9729; v202[2] = 10497; v202[3] = 10497; v139 = (*(int (__fastcall **)(int))(*(_DWORD *)v138 + 536))(v138); cocos2d::CCTexture2D::setTexParameters(v139, v202); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 83) + 232))( *((_DWORD *)this + 83), *((_DWORD *)this + 84), -1); v140 = *((_DWORD *)this + 84); v141 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v140 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v178, 0.0, 0.0); v141(v140, v178); v142 = *((_DWORD *)this + 84); v143 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v142 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v178, 2.0, 4.0); v143(v142, v178); v144 = *((_DWORD *)this + 83); v145 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v144 + 92); v146 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 72) + 96))(*((_DWORD *)this + 72)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v178, 0.0, *(float *)(v146 + 4)); v145(v144, v178); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 83) + 72))(*((_DWORD *)this + 83), 1058642330); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 83) + 64))(*((_DWORD *)this + 83), 1053609165); CustomSFXWidget::updateProgressBar(this, 0); CustomSFXWidget::hideLoadingArt(this); if ( a2 ) updated = (MusicDownloadManager *)CustomSFXWidget::updateSFXObject(this, a2); else updated = (MusicDownloadManager *)CustomSFXWidget::updateSFXInfo(this); v148 = (cocos2d::CCArray **)MusicDownloadManager::sharedState(updated); v149 = (MusicDownloadManager *)MusicDownloadManager::addMusicDownloadDelegate( v148, (CustomSFXWidget *)((char *)this + 264)); if ( *((_DWORD *)this + 89) ) { v150 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v149); if ( MusicDownloadManager::isRunningActionForSongID(v150, *((const char **)this + 89)) ) CustomSFXWidget::startMonitorDownload(this); } CustomSFXWidget::updatePlaybackBtn(this); return v166; }