// // LevelSettingsLayer::init from 0x6ab250 to 0x6acbea (6554 bytes) // // 1 xrefs: // > LevelSettingsLayer::create @ 0x6accfc // // 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:36 +0000 // GameManager *__fastcall LevelSettingsLayer::init(LevelSettingsLayer *this, const char **a2, LevelEditorLayer *a3) { cocos2d::CCDirector *v5; // r0 int v6; // r6 void (__fastcall *v7)(int, _DWORD *); // r8 int (__fastcall *v8)(int, _DWORD *); // r8 cocos2d::CCMenu *v9; // r0 int v10; // r0 const char *v11; // r2 int v12; // r6 int v13; // r5 const char *v14; // r2 int v15; // r10 void (__fastcall *v16)(int, _DWORD *); // r8 ButtonSprite *v17; // r0 int v18; // r0 ButtonSprite *v19; // r0 int v20; // r0 int v21; // r11 const cocos2d::CCPoint *v22; // r10 void (__fastcall *v23)(int, _DWORD *); // r5 int v24; // r11 void (__fastcall *v25)(int, _DWORD *); // r7 int v26; // r7 const char *v27; // r2 const char *v28; // r2 const char *v29; // r2 int v30; // r10 const char *v31; // r2 const char *v32; // r2 const char *v33; // r2 int v34; // r0 void (__fastcall *v35)(int, _DWORD *); // r8 float v36; // s17 void (__fastcall *v37)(cocos2d::CCPoint *, _DWORD *); // r8 void (__fastcall *v38)(cocos2d::CCPoint *, _DWORD *); // r8 void (__fastcall *v39)(int, _DWORD *); // r8 void (__fastcall *v40)(int, _DWORD *); // r8 void (__fastcall *v41)(cocos2d::CCLabelBMFont *, _DWORD *); // r8 int (__fastcall *v42)(int, _DWORD *); // r8 ColorChannelSprite *v43; // r0 cocos2d::CCSprite *v44; // r0 int v45; // r0 ColorChannelSprite *v46; // r0 cocos2d::CCSprite *v47; // r0 int v48; // r0 ColorChannelSprite *v49; // r0 cocos2d::CCSprite *v50; // r0 int v51; // r0 ColorChannelSprite *v52; // r0 cocos2d::CCSprite *v53; // r0 int v54; // r0 ColorChannelSprite *v55; // r0 cocos2d::CCSprite *v56; // r0 int v57; // r0 ColorChannelSprite *v58; // r0 cocos2d::CCSprite *v59; // r0 int v60; // r0 const char *v61; // r1 int v62; // r0 const char *v63; // r2 int v64; // r9 void (__fastcall *v65)(int, _DWORD *); // r8 float v66; // s15 int v67; // r0 int v68; // r0 int v69; // r9 int v70; // r11 int v71; // r11 int v72; // r11 const cocos2d::CCPoint *v73; // r11 int v74; // r10 const cocos2d::CCPoint *v75; // r11 int v76; // r10 const cocos2d::CCPoint *v77; // r11 int v78; // r10 const cocos2d::CCPoint *v79; // r11 int v80; // r10 int v81; // r8 float v82; // s17 int v83; // r0 const char *v84; // r1 int v85; // r0 int v86; // r0 int v87; // r0 int v88; // r0 int v89; // r0 const cocos2d::CCPoint *v90; // r5 const char *v91; // r2 int v92; // r7 int v93; // r5 void (__fastcall *v94)(int, _DWORD *); // r7 float v95; // s18 float v96; // s17 int v97; // r7 void (__fastcall *v98)(int, _DWORD *); // r6 const char *v99; // r1 cocos2d::CCString *v100; // r0 cocos2d::CCSprite *CString; // r0 const char *v102; // r1 int v103; // r0 int v104; // r6 const cocos2d::CCPoint *v105; // r10 void (__fastcall *v106)(int, _DWORD *); // r9 int v107; // r11 const char *v108; // r2 int v109; // r7 void (__fastcall *v110)(int, _DWORD *); // r6 const char *v111; // r1 cocos2d::CCString *v112; // r0 cocos2d::CCSprite *v113; // r0 const char *v114; // r1 int v115; // r0 int v116; // r6 const cocos2d::CCPoint *v117; // r10 void (__fastcall *v118)(int, _DWORD *); // r9 int v119; // r11 const char *v120; // r2 int v121; // r7 void (__fastcall *v122)(int, _DWORD *); // r6 int v123; // r1 cocos2d::CCString *v124; // r0 cocos2d::CCSprite *v125; // r0 const char *v126; // r1 int v127; // r0 int v128; // r6 const cocos2d::CCPoint *v129; // r10 void (__fastcall *v130)(int, _DWORD *); // r9 int v131; // r11 int v132; // r6 ButtonSprite *v133; // r0 int v134; // r6 const cocos2d::CCPoint *v135; // r10 void (__fastcall *v136)(int, _DWORD *); // r9 ButtonSprite *v137; // r0 int v138; // r6 const cocos2d::CCPoint *v139; // r11 const char *v140; // r2 int v141; // r8 int v142; // r3 int v143; // r6 int v144; // r9 int v145; // r0 int v146; // r9 void (__fastcall *v147)(int, _DWORD *); // r6 const cocos2d::CCPoint *v148; // r10 char v149; // r8 int v150; // r11 const cocos2d::CCPoint *v151; // r9 int v152; // r8 cocos2d::CCNodeRGBA *ToggleButton; // r7 const char *v154; // r2 int v155; // r8 void (__fastcall *v156)(int, _DWORD *); // r7 int v157; // r7 void (__fastcall *v158)(int, _DWORD *); // r3 int *v159; // r0 int v160; // r7 const char *v161; // r2 int v162; // r1 int v163; // r8 int v164; // r8 void (__fastcall *v165)(int, _DWORD *); // r10 int v166; // r8 void (__fastcall *v167)(int, _DWORD *); // r3 int *v168; // r0 int v169; // r8 int v170; // r1 int v171; // r7 const char *v172; // r2 int v173; // r6 const char *v174; // r1 cocos2d::CCSprite *v175; // r0 int v176; // r0 int v177; // r7 const cocos2d::CCPoint *v178; // r10 int v179; // r9 const char *v180; // r2 int v181; // r7 const char *v182; // r1 cocos2d::CCSprite *v183; // r0 int v184; // r0 int v185; // r11 const cocos2d::CCPoint *v186; // r10 int v187; // r9 const char *v188; // r2 int v189; // r5 const char *v190; // r1 int v191; // r9 int v192; // r6 const cocos2d::CCPoint *v193; // r10 void (__fastcall *v194)(int, _BYTE *); // r9 int v195; // r5 char *v197; // [sp+8h] [bp-16Ch] char *v198; // [sp+8h] [bp-16Ch] float v199; // [sp+10h] [bp-164h] float v200; // [sp+10h] [bp-164h] cocos2d::CCObject *v202; // [sp+20h] [bp-154h] cocos2d::CCObject *v203; // [sp+20h] [bp-154h] char *v204; // [sp+24h] [bp-150h] char *v205; // [sp+24h] [bp-150h] cocos2d::CCPoint *v206; // [sp+28h] [bp-14Ch] cocos2d::CCPoint *v207; // [sp+28h] [bp-14Ch] cocos2d::CCPoint *v208; // [sp+28h] [bp-14Ch] cocos2d::CCPoint *v209; // [sp+28h] [bp-14Ch] cocos2d::CCPoint *v210; // [sp+28h] [bp-14Ch] cocos2d::CCPoint *v211; // [sp+28h] [bp-14Ch] cocos2d::CCPoint *v212; // [sp+28h] [bp-14Ch] int v213; // [sp+2Ch] [bp-148h] int v214; // [sp+2Ch] [bp-148h] cocos2d::CCLabelBMFont *v215; // [sp+30h] [bp-144h] int v216; // [sp+34h] [bp-140h] cocos2d::CCPoint *v217; // [sp+38h] [bp-13Ch] int v218; // [sp+38h] [bp-13Ch] int v219; // [sp+3Ch] [bp-138h] int v220; // [sp+40h] [bp-134h] int v221; // [sp+44h] [bp-130h] int v222; // [sp+48h] [bp-12Ch] int v223; // [sp+4Ch] [bp-128h] GameManager *v224; // [sp+50h] [bp-124h] void (__fastcall *v225)(int, _DWORD *); // [sp+54h] [bp-120h] void (__fastcall *v226)(int, _DWORD *); // [sp+60h] [bp-114h] void (__fastcall *v227)(int, _DWORD *); // [sp+60h] [bp-114h] void (__fastcall *v228)(int, _DWORD *); // [sp+60h] [bp-114h] cocos2d::CCPoint *v229; // [sp+64h] [bp-110h] cocos2d::CCPoint *v230; // [sp+64h] [bp-110h] cocos2d::CCPoint *v231; // [sp+64h] [bp-110h] cocos2d::CCPoint *v232; // [sp+6Ch] [bp-108h] int v233; // [sp+70h] [bp-104h] int v234; // [sp+74h] [bp-100h] float v235; // [sp+78h] [bp-FCh] BYREF float v236; // [sp+7Ch] [bp-F8h] _BYTE v237[8]; // [sp+80h] [bp-F4h] BYREF _BYTE v238[8]; // [sp+88h] [bp-ECh] BYREF _BYTE v239[8]; // [sp+90h] [bp-E4h] BYREF _BYTE v240[8]; // [sp+98h] [bp-DCh] BYREF float v241[2]; // [sp+A0h] [bp-D4h] BYREF _BYTE v242[8]; // [sp+A8h] [bp-CCh] BYREF int (__fastcall *v243)(LevelSettingsLayer *, cocos2d::CCObject *, int, ColorAction *); // [sp+B0h] [bp-C4h] int v244; // [sp+B4h] [bp-C0h] int (__fastcall *v245)(LevelSettingsLayer *, cocos2d::CCObject *, int, ColorAction *); // [sp+B8h] [bp-BCh] int v246; // [sp+BCh] [bp-B8h] int (__fastcall *v247)(LevelSettingsLayer *, cocos2d::CCObject *, int, ColorAction *); // [sp+C0h] [bp-B4h] int v248; // [sp+C4h] [bp-B0h] int (__fastcall *v249)(LevelSettingsLayer *, cocos2d::CCObject *, int, ColorAction *); // [sp+C8h] [bp-ACh] int v250; // [sp+CCh] [bp-A8h] int (__fastcall *v251)(LevelSettingsLayer *, cocos2d::CCObject *, int, ColorAction *); // [sp+D0h] [bp-A4h] int v252; // [sp+D4h] [bp-A0h] int (__fastcall *v253)(LevelSettingsLayer *, cocos2d::CCObject *, int, ColorAction *); // [sp+D8h] [bp-9Ch] int v254; // [sp+DCh] [bp-98h] int (__fastcall *v255)(GJColorSetupLayer **, cocos2d::CCObject *); // [sp+E0h] [bp-94h] int v256; // [sp+E4h] [bp-90h] int (__fastcall *v257)(LevelSettingsLayer *, cocos2d::CCObject *); // [sp+E8h] [bp-8Ch] int v258; // [sp+ECh] [bp-88h] char *(__fastcall *v259)(LevelSettingsLayer *, cocos2d::CCObject *); // [sp+F0h] [bp-84h] int v260; // [sp+F4h] [bp-80h] char *(__fastcall *v261)(LevelSettingsLayer *, cocos2d::CCObject *); // [sp+F8h] [bp-7Ch] int v262; // [sp+FCh] [bp-78h] int (__fastcall *v263)(LevelSettingsLayer *, cocos2d::CCObject *); // [sp+100h] [bp-74h] int v264; // [sp+104h] [bp-70h] int (__fastcall *v265)(LevelSettingsLayer *, cocos2d::CCObject *); // [sp+108h] [bp-6Ch] int v266; // [sp+10Ch] [bp-68h] int (__fastcall *v267)(LevelSettingsLayer *, cocos2d::CCObject *); // [sp+110h] [bp-64h] int v268; // [sp+114h] [bp-60h] int (__fastcall *v269)(SelectFontLayer2 **, cocos2d::CCObject *); // [sp+118h] [bp-5Ch] int v270; // [sp+11Ch] [bp-58h] int (__fastcall *v271)(LevelSettingsLayer *, cocos2d::CCObject *); // [sp+120h] [bp-54h] int v272; // [sp+124h] [bp-50h] int (__fastcall *v273)(int, cocos2d::CCObject *); // [sp+128h] [bp-4Ch] int v274; // [sp+12Ch] [bp-48h] int (__fastcall *v275)(LevelSettingsLayer *, cocos2d::CCObject *); // [sp+130h] [bp-44h] BYREF int v276; // [sp+134h] [bp-40h] _DWORD v277[2]; // [sp+138h] [bp-3Ch] BYREF int v278; // [sp+140h] [bp-34h] BYREF int v279; // [sp+144h] [bp-30h] cocos2d::CCSprite *v280; // [sp+148h] [bp-2Ch] _DWORD v281[4]; // [sp+14Ch] [bp-28h] BYREF _DWORD v282[4]; // [sp+15Ch] [bp-18h] BYREF v224 = FLAlertLayer::init(this, 150); if ( v224 ) { *((_BYTE *)this + 468) = 1; *((_DWORD *)this + 154) = a3; *((_DWORD *)this + 149) = a2; v5 = (cocos2d::CCDirector *)cocos2d::CCObject::retain((cocos2d::CCObject *)a2); *((_DWORD *)this + 136) = *(_DWORD *)(*((_DWORD *)this + 149) + 272); cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v235); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v282, 0.0, 0.0, 80.0, 80.0); v6 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v282); v7 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v6 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v282, 455.0, 305.0); v7(v6, v282); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v6, -2); v8 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v6 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, v235 * 0.5, v236 * 0.5); v9 = (cocos2d::CCMenu *)v8(v6, v282); v10 = cocos2d::CCMenu::create(v9); *((_DWORD *)this + 111) = v10; (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v10, 10); v12 = *((unsigned __int8 *)a2 + 308); if ( !*((_BYTE *)a2 + 308) ) { v24 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Select Color:", "goldFont.fnt", v11); (*(void (__fastcall **)(int, int))(*(_DWORD *)v24 + 80))(v24, 1061997773); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v24); v25 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v24 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, v235 * 0.5, (float)(v236 * 0.5) + 135.0); v25(v24, v282); v26 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"BG:", "bigFont.fnt", "bigFont.fnt"); (*(void (__fastcall **)(int, int))(*(_DWORD *)v26 + 80))(v26, 1051931443); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v26); v207 = (cocos2d::CCPoint *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"G:", "bigFont.fnt", v27); (*(void (__fastcall **)(cocos2d::CCPoint *, int))(*(_DWORD *)v207 + 80))(v207, 1051931443); v217 = v207; (*(void (__fastcall **)(_DWORD, cocos2d::CCPoint *))(**((_DWORD **)this + 115) + 228))( *((_DWORD *)this + 115), v207); v208 = (cocos2d::CCPoint *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"G2:", "bigFont.fnt", v28); (*(void (__fastcall **)(cocos2d::CCPoint *, int))(*(_DWORD *)v208 + 80))(v208, 1051931443); (*(void (__fastcall **)(_DWORD, cocos2d::CCPoint *))(**((_DWORD **)this + 115) + 228))( *((_DWORD *)this + 115), v208); v30 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Line:", "bigFont.fnt", v29); (*(void (__fastcall **)(int, int))(*(_DWORD *)v30 + 80))(v30, 1051931443); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v30); v214 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"MG:", "bigFont.fnt", v31); (*(void (__fastcall **)(int, int))(*(_DWORD *)v214 + 80))(v214, 1051931443); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v214); v215 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)"MG2:", "bigFont.fnt", v32); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v215 + 80))(v215, 1051931443); (*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**((_DWORD **)this + 115) + 228))( *((_DWORD *)this + 115), v215); v216 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"More:", "bigFont.fnt", v33); (*(void (__fastcall **)(int, int))(*(_DWORD *)v216 + 80))(v216, 1051931443); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v216); v34 = (*(int (__fastcall **)(int))(*(_DWORD *)v24 + 96))(v24); v35 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v26 + 92); v36 = *(float *)(v34 + 4) - 20.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, (float)(v235 * 0.5) - 138.0, v36); v35(v26, v282); v37 = *(void (__fastcall **)(cocos2d::CCPoint *, _DWORD *))(*(_DWORD *)v217 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, (float)(v235 * 0.5) - 92.0, v36); v232 = v217; v37(v217, v282); v38 = *(void (__fastcall **)(cocos2d::CCPoint *, _DWORD *))(*(_DWORD *)v208 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, (float)(v235 * 0.5) - 46.0, v36); v38(v208, v282); v39 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v30 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, v235 * 0.5, v36); v39(v30, v282); v40 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v214 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, (float)(v235 * 0.5) + 46.0, v36); v40(v214, v282); v41 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v215 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, (float)(v235 * 0.5) + 92.0, v36); v41(v215, v282); v42 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v216 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, (float)(v235 * 0.5) + 138.0, v36); v43 = (ColorChannelSprite *)v42(v216, v282); v44 = ColorChannelSprite::create(v43); *((_DWORD *)this + 137) = v44; (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v44 + 80))(v44, 1061997773); v45 = *((_DWORD *)this + 137); v243 = LevelSettingsLayer::onShowPicker; v244 = v12; v218 = CCMenuItemSpriteExtra::create(v45, v12, (int)this, (int)LevelSettingsLayer::onShowPicker, v12); (*(void (__fastcall **)(int, int))(*(_DWORD *)v218 + 36))(v218, 1000); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 137) + 36))(*((_DWORD *)this + 137), 1000); v46 = (ColorChannelSprite *)(*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))( *((_DWORD *)this + 111), v218); v47 = ColorChannelSprite::create(v46); *((_DWORD *)this + 138) = v47; (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v47 + 80))(v47, 1061997773); v48 = *((_DWORD *)this + 138); v245 = LevelSettingsLayer::onShowPicker; v246 = v12; v219 = CCMenuItemSpriteExtra::create(v48, v12, (int)this, (int)LevelSettingsLayer::onShowPicker, v12); (*(void (**)(void))(*(_DWORD *)v219 + 36))(); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 138) + 36))(*((_DWORD *)this + 138), 1001); v49 = (ColorChannelSprite *)(*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))( *((_DWORD *)this + 111), v219); v50 = ColorChannelSprite::create(v49); *((_DWORD *)this + 139) = v50; (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v50 + 80))(v50, 1061997773); v51 = *((_DWORD *)this + 139); v247 = LevelSettingsLayer::onShowPicker; v248 = v12; v220 = CCMenuItemSpriteExtra::create(v51, v12, (int)this, (int)LevelSettingsLayer::onShowPicker, v12); (*(void (__fastcall **)(int, int))(*(_DWORD *)v220 + 36))(v220, 1009); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 139) + 36))(*((_DWORD *)this + 139), 1009); v52 = (ColorChannelSprite *)(*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))( *((_DWORD *)this + 111), v220); v53 = ColorChannelSprite::create(v52); *((_DWORD *)this + 140) = v53; (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v53 + 80))(v53, 1061997773); v54 = *((_DWORD *)this + 140); v249 = LevelSettingsLayer::onShowPicker; v250 = v12; v221 = CCMenuItemSpriteExtra::create(v54, v12, (int)this, (int)LevelSettingsLayer::onShowPicker, v12); (*(void (__fastcall **)(int, int))(*(_DWORD *)v221 + 36))(v221, 1002); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 140) + 36))(*((_DWORD *)this + 140), 1002); v55 = (ColorChannelSprite *)(*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))( *((_DWORD *)this + 111), v221); v56 = ColorChannelSprite::create(v55); *((_DWORD *)this + 141) = v56; (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v56 + 80))(v56, 1061997773); v57 = *((_DWORD *)this + 141); v251 = LevelSettingsLayer::onShowPicker; v252 = v12; v222 = CCMenuItemSpriteExtra::create(v57, v12, (int)this, (int)LevelSettingsLayer::onShowPicker, v12); (*(void (__fastcall **)(int, int))(*(_DWORD *)v222 + 36))(v222, 1013); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 141) + 36))(*((_DWORD *)this + 141), 1013); v58 = (ColorChannelSprite *)(*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))( *((_DWORD *)this + 111), v222); v59 = ColorChannelSprite::create(v58); *((_DWORD *)this + 142) = v59; (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v59 + 80))(v59, 1061997773); v60 = *((_DWORD *)this + 142); v253 = LevelSettingsLayer::onShowPicker; v254 = v12; v223 = CCMenuItemSpriteExtra::create(v60, v12, (int)this, (int)LevelSettingsLayer::onShowPicker, v12); (*(void (__fastcall **)(int, int))(*(_DWORD *)v223 + 36))(v223, 1014); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 142) + 36))(*((_DWORD *)this + 142), 1014); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v223); v62 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_colorBtn_001.png", v61); *((_DWORD *)this + 143) = v62; (*(void (__fastcall **)(int, int))(*(_DWORD *)v62 + 80))(v62, 1061997773); (*(void (__fastcall **)(_DWORD, void *))(**((_DWORD **)this + 143) + 480))(*((_DWORD *)this + 143), &unk_BEF9D5); v64 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"+", "bigFont.fnt", v63); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 143) + 232))(*((_DWORD *)this + 143), v64, 1); v65 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v64 + 92); v66 = *(float *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 143) + 164))(*((_DWORD *)this + 143)); v67 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 143) + 164))(*((_DWORD *)this + 143)); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v282, (float)(v66 * 0.5) + 1.0, (float)(*(float *)(v67 + 4) * 0.5) + 2.0); v65(v64, v282); v68 = *((_DWORD *)this + 143); v255 = LevelSettingsLayer::onCol; v256 = v12; v69 = CCMenuItemSpriteExtra::create(v68, v12, (int)this, (int)LevelSettingsLayer::onCol, v12); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v69); v226 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v218 + 92); v229 = *((cocos2d::CCPoint **)this + 111); v70 = (*(int (__fastcall **)(int))(*(_DWORD *)v26 + 96))(v26); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, 0.0, -22.0); cocos2d::CCPoint::operator+(v281, v70, v277); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v282, v229); v226(v218, v282); v227 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v219 + 92); v230 = *((cocos2d::CCPoint **)this + 111); v71 = (*(int (__fastcall **)(cocos2d::CCPoint *))(*(_DWORD *)v232 + 96))(v232); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, 0.0, -22.0); cocos2d::CCPoint::operator+(v281, v71, v277); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v282, v230); v227(v219, v282); v228 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v220 + 92); v231 = *((cocos2d::CCPoint **)this + 111); v72 = (*(int (__fastcall **)(cocos2d::CCPoint *))(*(_DWORD *)v208 + 96))(v208); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, 0.0, -22.0); cocos2d::CCPoint::operator+(v281, v72, v277); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v282, v231); v228(v220, v282); v73 = *((const cocos2d::CCPoint **)this + 111); v209 = *(cocos2d::CCPoint **)(*(_DWORD *)v221 + 92); v74 = (*(int (__fastcall **)(int))(*(_DWORD *)v30 + 96))(v30); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, 0.0, -22.0); cocos2d::CCPoint::operator+(v281, v74, v277); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v282, v73); ((void (__fastcall *)(int, _DWORD *))v209)(v221, v282); v75 = *((const cocos2d::CCPoint **)this + 111); v210 = *(cocos2d::CCPoint **)(*(_DWORD *)v222 + 92); v76 = (*(int (__fastcall **)(int))(*(_DWORD *)v214 + 96))(v214); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, 0.0, -22.0); cocos2d::CCPoint::operator+(v281, v76, v277); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v282, v75); ((void (__fastcall *)(int, _DWORD *))v210)(v222, v282); v77 = *((const cocos2d::CCPoint **)this + 111); v211 = *(cocos2d::CCPoint **)(*(_DWORD *)v223 + 92); v78 = (*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v215 + 96))(v215); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, 0.0, -22.0); cocos2d::CCPoint::operator+(v281, v78, v277); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v282, v77); ((void (__fastcall *)(int, _DWORD *))v211)(v223, v282); v79 = *((const cocos2d::CCPoint **)this + 111); v212 = *(cocos2d::CCPoint **)(*(_DWORD *)v69 + 92); v80 = (*(int (__fastcall **)(int))(*(_DWORD *)v216 + 96))(v216); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, 0.0, -22.0); cocos2d::CCPoint::operator+(v281, v80, v277); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v282, v79); ((void (__fastcall *)(int, _DWORD *))v212)(v69, v282); LevelSettingsLayer::updateColorSprites((ColorChannelSprite **)this); do { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v275); switch ( v12 ) { case 1: v82 = -4.0; v81 = 1001; v85 = (*(int (__fastcall **)(int))(*(_DWORD *)v219 + 96))(v219); cocos2d::CCPoint::operator=(&v275, v85); break; case 2: v81 = 1009; v82 = 0.0; v86 = (*(int (__fastcall **)(int))(*(_DWORD *)v220 + 96))(v220); cocos2d::CCPoint::operator=(&v275, v86); break; case 3: v82 = 3.0; v81 = 1002; v87 = (*(int (__fastcall **)(int))(*(_DWORD *)v221 + 96))(v221); cocos2d::CCPoint::operator=(&v275, v87); break; case 4: v81 = 1013; v82 = 0.0; v88 = (*(int (__fastcall **)(int))(*(_DWORD *)v222 + 96))(v222); cocos2d::CCPoint::operator=(&v275, v88); break; case 5: v82 = 3.0; v81 = 1014; v89 = (*(int (__fastcall **)(int))(*(_DWORD *)v223 + 96))(v223); cocos2d::CCPoint::operator=(&v275, v89); break; default: v81 = 1000; v82 = 0.0; v83 = (*(int (__fastcall **)(int))(*(_DWORD *)v218 + 96))(v218); cocos2d::CCPoint::operator=(&v275, v83); break; } ++v12; v90 = (const cocos2d::CCPoint *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_colorBtn_001.png", v84); (*(void (__fastcall **)(const cocos2d::CCPoint *, void *))(*(_DWORD *)v90 + 480))(v90, &unk_BEF9D8); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v90 + 456))(v90, 100); v92 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"+", "bigFont.fnt", v91); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v90 + 228))(v90, v92); (*(void (__fastcall **)(int, int))(*(_DWORD *)v92 + 80))(v92, 1068708659); (*(void (__fastcall **)(int, int))(*(_DWORD *)v92 + 512))(v92, 100); v225 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v92 + 92); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v277, v90); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v281, 2.0, 2.5); cocos2d::CCPoint::operator+(v282, v277, v281); v225(v92, v282); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v90 + 80))(v90, 1050253722); v258 = 0; v257 = LevelSettingsLayer::onLiveEdit; v93 = CCMenuItemSpriteExtra::create((int)v90, 0, (int)this, (int)LevelSettingsLayer::onLiveEdit, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v93); (*(void (__fastcall **)(int, int))(*(_DWORD *)v93 + 36))(v93, v81); v94 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v93 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v281, (float)(v82 * 0.8) + 18.0, 22.0); cocos2d::CCPoint::operator+(v282, &v275, v281); v94(v93, v282); CCMenuItemSpriteExtra::setSizeMult(v93, 2.0); } while ( v12 != 6 ); } v13 = *((unsigned __int8 *)a2 + 308); if ( !*((_BYTE *)a2 + 308) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v275, v235 * 0.5, (float)(v236 * 0.5) + 31.0); v15 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Game Type:", "goldFont.fnt", v14); (*(void (__fastcall **)(int, int))(*(_DWORD *)v15 + 80))(v15, 1060320051); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v15, 10); v16 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v15 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v281, 0.0, 28.0); cocos2d::CCPoint::operator+(v282, &v275, v281); v16(v15, v282); v17 = ButtonSprite::create( (ButtonSprite *)"Classic", (const char *)&dword_64, v13, 0.55, 1, "bigFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(24.0), v199); v260 = v13; v259 = LevelSettingsLayer::onGameplayMode; v18 = CCMenuItemSpriteExtra::create((int)v17, v13, (int)this, (int)LevelSettingsLayer::onGameplayMode, v13); *((_DWORD *)this + 157) = v18; (*(void (__fastcall **)(int, int))(*(_DWORD *)v18 + 36))(v18, 3); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 111) + 228))( *((_DWORD *)this + 111), *((_DWORD *)this + 157)); v213 = *((_DWORD *)this + 157); v204 = *(char **)(*(_DWORD *)v213 + 92); v206 = *((cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, -65.0, 0.0); cocos2d::CCPoint::operator+(v281, &v275, v277); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v282, v206); ((void (__fastcall *)(int, _DWORD *))v204)(v213, v282); v19 = ButtonSprite::create( (ButtonSprite *)"Platformer", (const char *)&dword_64, v13, 0.55, 1, "bigFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(24.0), v200); v262 = v13; v261 = LevelSettingsLayer::onGameplayMode; v20 = CCMenuItemSpriteExtra::create((int)v19, v13, (int)this, (int)LevelSettingsLayer::onGameplayMode, v13); *((_DWORD *)this + 158) = v20; (*(void (__fastcall **)(int, int))(*(_DWORD *)v20 + 36))(v20, 4); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 111) + 228))( *((_DWORD *)this + 111), *((_DWORD *)this + 158)); v21 = *((_DWORD *)this + 158); v22 = *((const cocos2d::CCPoint **)this + 111); v23 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v21 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, 65.0, 0.0); cocos2d::CCPoint::operator+(v281, &v275, v277); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v282, v22); v23(v21, v282); LevelSettingsLayer::updateGameplayModeButtons(this); } v95 = (float)(v235 * 0.5) + 185.0; v96 = (float)(v235 * 0.5) - 185.0; if ( !*((_BYTE *)a2 + 308) ) { v97 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"BG:", "goldFont.fnt", v11); (*(void (__fastcall **)(int, int))(*(_DWORD *)v97 + 80))(v97, 1058642330); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v97); v98 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v97 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, v95, (float)((float)(v236 * 0.5) + 100.0) + 35.0); v98(v97, v282); v99 = a2[73]; if ( (int)v99 > 58 ) { v99 = (char *)&dword_38 + 3; } else if ( (int)v99 < 1 ) { v99 = (_BYTE *)(&dword_0 + 1); } v100 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"bgIcon_%02d_001.png", v99); CString = (cocos2d::CCSprite *)cocos2d::CCString::getCString(v100); v103 = cocos2d::CCSprite::createWithSpriteFrameName(CString, v102); *((_DWORD *)this + 144) = v103; v264 = 0; v263 = LevelSettingsLayer::onBGArt; v104 = CCMenuItemSpriteExtra::create(v103, 0, (int)this, (int)LevelSettingsLayer::onBGArt, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v104); v105 = *((const cocos2d::CCPoint **)this + 111); v106 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v104 + 92); v107 = (*(int (__fastcall **)(int))(*(_DWORD *)v97 + 96))(v97); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, 0.0, -32.0); cocos2d::CCPoint::operator+(v281, v107, v277); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v282, v105); v106(v104, v282); v109 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"G:", "goldFont.fnt", v108); (*(void (__fastcall **)(int, int))(*(_DWORD *)v109 + 80))(v109, 1058642330); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v109); v110 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v109 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, v95, (float)(v236 * 0.5) + 70.0); v110(v109, v282); v111 = a2[74]; if ( (int)v111 > 21 ) { v111 = (char *)&dword_14 + 2; } else if ( (int)v111 < 1 ) { v111 = (_BYTE *)(&dword_0 + 1); } v112 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"gIcon_%02d_001.png", v111); v113 = (cocos2d::CCSprite *)cocos2d::CCString::getCString(v112); v115 = cocos2d::CCSprite::createWithSpriteFrameName(v113, v114); *((_DWORD *)this + 145) = v115; v266 = 0; v265 = LevelSettingsLayer::onGArt; v116 = CCMenuItemSpriteExtra::create(v115, 0, (int)this, (int)LevelSettingsLayer::onGArt, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v116); v117 = *((const cocos2d::CCPoint **)this + 111); v118 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v116 + 92); v119 = (*(int (__fastcall **)(int))(*(_DWORD *)v109 + 96))(v109); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, 0.0, -32.0); cocos2d::CCPoint::operator+(v281, v119, v277); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v282, v117); v118(v116, v282); v121 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"MG:", "goldFont.fnt", v120); (*(void (__fastcall **)(int, int))(*(_DWORD *)v121 + 80))(v121, 1058642330); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v121); v122 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v121 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, v95, (float)(v236 * 0.5) + 5.0); v122(v121, v282); v123 = (int)a2[76]; if ( v123 > 2 ) v124 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"mgIcon_%02d_001.png", (const char *)&dword_0 + 3); else v124 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"mgIcon_%02d_001.png", (const char *)(v123 & ~(v123 >> 31))); v125 = (cocos2d::CCSprite *)cocos2d::CCString::getCString(v124); v127 = cocos2d::CCSprite::createWithSpriteFrameName(v125, v126); *((_DWORD *)this + 146) = v127; v268 = 0; v267 = LevelSettingsLayer::onFGArt; v128 = CCMenuItemSpriteExtra::create(v127, 0, (int)this, (int)LevelSettingsLayer::onFGArt, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v128); v129 = *((const cocos2d::CCPoint **)this + 111); v130 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v128 + 92); v131 = (*(int (__fastcall **)(int))(*(_DWORD *)v121 + 96))(v121); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, 0.0, -32.0); cocos2d::CCPoint::operator+(v281, v131, v277); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v282, v129); v130(v128, v282); } v132 = *((unsigned __int8 *)a2 + 308); if ( !*((_BYTE *)a2 + 308) ) { v133 = ButtonSprite::create( (ButtonSprite *)"Font", (const char *)&dword_1C + 2, v132, 0.8, 1, "goldFont.fnt", "GJ_button_04.png", (const char *)0x41E00000, v199); v270 = v132; v269 = LevelSettingsLayer::onSelectFont; v134 = CCMenuItemSpriteExtra::create((int)v133, v132, (int)this, (int)LevelSettingsLayer::onSelectFont, v132); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v134); v135 = *((const cocos2d::CCPoint **)this + 111); v136 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v134 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v275, v95, v236 * 0.5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, 0.0, -70.0); cocos2d::CCPoint::operator+(v281, &v275, v277); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v282, v135); v136(v134, v282); } v137 = ButtonSprite::create( (ButtonSprite *)"OK", (const char *)&word_28, 0, 0.8, 1, "goldFont.fnt", "GJ_button_01.png", (const char *)0x41F00000, v199); v272 = 0; v271 = LevelSettingsLayer::onClose; v138 = CCMenuItemSpriteExtra::create((int)v137, 0, (int)this, (int)LevelSettingsLayer::onClose, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v138); v139 = *((const cocos2d::CCPoint **)this + 111); v205 = *(char **)(*(_DWORD *)v138 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v281, v235 * 0.5, (float)(v236 * 0.5) - 130.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v282, v139); ((void (__fastcall *)(int, _DWORD *))v205)(v138, v282); if ( *((_BYTE *)a2 + 308) ) { v146 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Disable", "goldFont.fnt", v140); (*(void (__fastcall **)(int, int))(*(_DWORD *)v146 + 80))(v146, 1058642330); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v146); v147 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v146 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, v96 + 270.0, (float)(v236 * 0.5) - 90.0); v147(v146, v282); v278 = 0; v279 = 0; v280 = nullptr; std::string::__init(&v278, &unk_B6B226, 0); v148 = *((const cocos2d::CCPoint **)this + 111); v274 = 0; v273 = LevelSettingsLayer::onDisable; v149 = *(_BYTE *)(*((_DWORD *)this + 149) + 384) ^ 1; v150 = (*(int (__fastcall **)(int))(*(_DWORD *)v146 + 96))(v146); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v281, 0.0, -30.0); cocos2d::CCPoint::operator+(v282, v150, v281); LevelSettingsLayer::createToggleButton( (int)this, (unsigned __int8 *)&v278, (int)v273, v274, v149, v148, (int)v282); std::string::~string((int)&v278); v278 = 0; v279 = 0; v280 = nullptr; std::string::__init(&v278, "Reset\nCamera", 0xCu); v151 = *((const cocos2d::CCPoint **)this + 111); v276 = 0; v275 = LevelSettingsLayer::onOptionToggle; v152 = *((unsigned __int8 *)a2 + 360); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, v235 * 0.5, v236 * 0.5); ToggleButton = GameToolbox::createToggleButton( (int)&v278, (int)v275, v276, v152, v151, (const cocos2d::CCPoint *)v282, (int)this, *((_DWORD *)this + 115), nullptr); std::string::~string((int)&v278); (*(void (__fastcall **)(cocos2d::CCNodeRGBA *, int))(*(_DWORD *)ToggleButton + 36))(ToggleButton, 1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v241, (float)(v235 * 0.5) - 100.0, (float)(v236 * 0.5) - 60.0); v155 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Target Order", "goldFont.fnt", v154); (*(void (__fastcall **)(int, int))(*(_DWORD *)v155 + 80))(v155, 1058642330); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v155); v156 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v155 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v281, 0.0, 30.0); cocos2d::CCPoint::operator+(v282, v241, v281); v156(v155, v282); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v281, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v282, (const cocos2d::CCRect *)v281); v157 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v282); (*(void (__fastcall **)(int, int))(*(_DWORD *)v157 + 456))(v157, 100); v158 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v157 + 480); LOWORD(v282[0]) = 0; BYTE2(v282[0]) = 0; v158(v157, v282); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v242, 50.0, 30.0); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v157 + 160))(v157, v242); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v157, -1); (*(void (__fastcall **)(int, float *))(*(_DWORD *)v157 + 92))(v157, v241); v159 = CCTextInputNode::create( (CCTextInputNode *)0x42480000, 40.0, "Order", "Thonburi", (const char *)&dword_18, "bigFont.fnt", v197); *((_DWORD *)this + 155) = v159; (*(void (__fastcall **)(_DWORD, int *, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v159, 20); (*(void (__fastcall **)(_DWORD, float *))(**((_DWORD **)this + 155) + 92))(*((_DWORD *)this + 155), v241); CCTextInputNode::setMaxLabelScale(*((_DWORD *)this + 155), 0.6); CCTextInputNode::setMaxLabelWidth(*((_DWORD *)this + 155), 200.0); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(*((_DWORD *)this + 155) + 416) + 172))( *(_DWORD *)(*((_DWORD *)this + 155) + 416), 0); *(_DWORD *)(*((_DWORD *)this + 155) + 424) = 6; v160 = *((_DWORD *)this + 155); v278 = 0; v279 = 0; v280 = nullptr; std::string::__init(&v278, "0123456789", 0xAu); CCTextInputNode::setAllowedChars(v160, (unsigned __int8 *)&v278); std::string::~string((int)&v278); LOWORD(v233) = -21896; BYTE2(v233) = -16; CCTextInputNode::setLabelPlaceholderColor(*((_DWORD *)this + 155), v233); CCTextInputNode::setLabelPlaceholderScale(*((_DWORD *)this + 155), 0.5); *(_DWORD *)(*((_DWORD *)this + 155) + 420) = (char *)this + 440; *(_BYTE *)(*((_DWORD *)this + 155) + 324) = 1; (*(void (__fastcall **)(_DWORD))(**((_DWORD **)this + 155) + 36))(*((_DWORD *)this + 155)); v162 = *(_DWORD *)(*((_DWORD *)this + 149) + 312); if ( v162 > 0 ) { v163 = *((_DWORD *)this + 155); GameToolbox::intToString((GameToolbox *)&v278, v162); CCTextInputNode::setString(v163, (int)&v278); std::string::~string((int)&v278); } v241[0] = v241[0] + 200.0; v164 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Target Channel", "goldFont.fnt", v161); (*(void (__fastcall **)(int, int))(*(_DWORD *)v164 + 80))(v164, 1058642330); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v164); v165 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v164 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, 0.0, 30.0); cocos2d::CCPoint::operator+(v282, v241, v277); v165(v164, v282); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v282, (const cocos2d::CCRect *)v281); v166 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v282); (*(void (__fastcall **)(int, int))(*(_DWORD *)v166 + 456))(v166, 100); v167 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v166 + 480); LOWORD(v282[0]) = 0; BYTE2(v282[0]) = 0; v167(v166, v282); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v166 + 160))(v166, v242); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v166, -1); (*(void (__fastcall **)(int, float *))(*(_DWORD *)v166 + 92))(v166, v241); v168 = CCTextInputNode::create( (CCTextInputNode *)0x42480000, 40.0, "Channel", "Thonburi", (const char *)&dword_18, "bigFont.fnt", v198); *((_DWORD *)this + 156) = v168; (*(void (__fastcall **)(_DWORD, int *, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v168, 20); (*(void (__fastcall **)(_DWORD, float *))(**((_DWORD **)this + 156) + 92))(*((_DWORD *)this + 156), v241); CCTextInputNode::setMaxLabelScale(*((_DWORD *)this + 156), 0.6); CCTextInputNode::setMaxLabelWidth(*((_DWORD *)this + 156), 200.0); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(*((_DWORD *)this + 156) + 416) + 172))( *(_DWORD *)(*((_DWORD *)this + 156) + 416), 0); *(_DWORD *)(*((_DWORD *)this + 156) + 424) = 6; v169 = *((_DWORD *)this + 156); v278 = 0; v279 = 0; v280 = nullptr; std::string::__init(&v278, "0123456789", 0xAu); CCTextInputNode::setAllowedChars(v169, (unsigned __int8 *)&v278); std::string::~string((int)&v278); LOWORD(v234) = -21896; BYTE2(v234) = -16; CCTextInputNode::setLabelPlaceholderColor(*((_DWORD *)this + 156), v234); CCTextInputNode::setLabelPlaceholderScale(*((_DWORD *)this + 156), 0.5); *(_DWORD *)(*((_DWORD *)this + 156) + 420) = (char *)this + 440; *(_BYTE *)(*((_DWORD *)this + 156) + 324) = 1; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 156) + 36))(*((_DWORD *)this + 156), 2); v170 = *(_DWORD *)(*((_DWORD *)this + 149) + 316); if ( v170 > 0 ) { v171 = *((_DWORD *)this + 156); GameToolbox::intToString((GameToolbox *)&v278, v170); CCTextInputNode::setString(v171, (int)&v278); std::string::~string((int)&v278); } } else { v141 = *((_DWORD *)this + 149); v142 = *(_DWORD *)(v141 + 320); v143 = *(_DWORD *)(v142 + 436); v144 = v143; if ( v143 ) v144 = 1; if ( !v144 ) v143 = *(_DWORD *)(v142 + 432); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, v235 * 0.5, (float)(v236 * 0.5) - 67.0); v145 = SongSelectNode::create( v143, v144, v141, 0, (const cocos2d::CCPoint *)v282, *((_DWORD *)this + 115), *((const cocos2d::CCPoint **)this + 111), 0); *((_DWORD *)this + 135) = v145; (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v145, 5); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v237, v96, (float)(v236 * 0.5) + 135.0); v173 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Speed:", "goldFont.fnt", v172); (*(void (__fastcall **)(int, int))(*(_DWORD *)v173 + 80))(v173, 1058642330); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v173); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v173 + 92))(v173, v237); SelectSettingLayer::frameForValue(&v278, 2u, *(_DWORD *)(*((_DWORD *)this + 149) + 272)); if ( (v278 & 1) != 0 ) v175 = v280; else v175 = (cocos2d::CCSprite *)((char *)&v278 + 1); *((_DWORD *)this + 147) = cocos2d::CCSprite::createWithSpriteFrameName(v175, v174); std::string::~string((int)&v278); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 147) + 80))(*((_DWORD *)this + 147), 1058642330); v176 = *((_DWORD *)this + 147); v277[0] = LevelSettingsLayer::onSpeed; v277[1] = 0; v177 = CCMenuItemSpriteExtra::create(v176, 0, (int)this, (int)LevelSettingsLayer::onSpeed, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v177); v178 = *((const cocos2d::CCPoint **)this + 111); v202 = *(cocos2d::CCObject **)(*(_DWORD *)v177 + 92); v179 = (*(int (__fastcall **)(int))(*(_DWORD *)v173 + 96))(v173); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v242, 0.0, -34.0); cocos2d::CCPoint::operator+(v281, v179, v242); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v282, v178); ((void (__fastcall *)(int, _DWORD *))v202)(v177, v282); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v238, v96, (float)((float)(v236 * 0.5) + 135.0) - 80.0); v181 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Mode:", "goldFont.fnt", v180); (*(void (__fastcall **)(int, int))(*(_DWORD *)v181 + 80))(v181, 1058642330); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v181); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v181 + 92))(v181, v238); SelectSettingLayer::frameForValue( &v278, *(unsigned __int8 *)(*((_DWORD *)this + 149) + 281), *(_DWORD *)(*((_DWORD *)this + 149) + 268)); if ( (v278 & 1) != 0 ) v183 = v280; else v183 = (cocos2d::CCSprite *)((char *)&v278 + 1); *((_DWORD *)this + 148) = cocos2d::CCSprite::createWithSpriteFrameName(v183, v182); std::string::~string((int)&v278); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 148) + 80))(*((_DWORD *)this + 148), 1065353216); v184 = *((_DWORD *)this + 148); v281[0] = LevelSettingsLayer::onMode; v281[1] = 0; v185 = CCMenuItemSpriteExtra::create(v184, 0, (int)this, (int)LevelSettingsLayer::onMode, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v185); v186 = *((const cocos2d::CCPoint **)this + 111); v203 = *(cocos2d::CCObject **)(*(_DWORD *)v185 + 92); v187 = (*(int (__fastcall **)(int))(*(_DWORD *)v181 + 96))(v181); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v241, 0.0, -32.0); cocos2d::CCPoint::operator+(v242, v187, v241); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v282, v186); ((void (__fastcall *)(int, _DWORD *))v203)(v185, v282); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v239, v96, (float)((float)(v236 * 0.5) + 135.0) - 160.0); v189 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Options:", "goldFont.fnt", v188); (*(void (__fastcall **)(int, int))(*(_DWORD *)v189 + 80))(v189, 1058642330); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v189); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v189 + 92))(v189, v239); v191 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_optionsBtn_001.png", v190); (*(void (__fastcall **)(int, int))(*(_DWORD *)v191 + 80))(v191, 1058642330); v282[1] = 0; v282[0] = LevelSettingsLayer::onSettings; v192 = CCMenuItemSpriteExtra::create(v191, 0, (int)this, (int)LevelSettingsLayer::onSettings, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v192); v193 = *((const cocos2d::CCPoint **)this + 111); v194 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v192 + 92); v195 = (*(int (__fastcall **)(int))(*(_DWORD *)v189 + 96))(v189); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v240, 0.0, -32.0); cocos2d::CCPoint::operator+(v241, v195, v240); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v242, v193); v194(v192, v242); } return v224; }
GD Web Decomp Icon

GD Web Decomp

Raw Source