// // LevelSettingsLayer::init from 0x140457b10 to 0x14045a118 (9736 bytes) // // 2 xrefs: // > EditorUI::onSettings @ 0x1401ac6e7 // > @ 0x140927bcc // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:32:31 +0000 // // Hidden C++ exception states: #wind=10 bool __fastcall LevelSettingsLayer::init(__int64 a1, __int64 a2, __int64 a3) { __int64 v4; // r15 __int64 v5; // r14 bool result; // al __int64 v7; // rcx __int64 v8; // rax __int64 v9; // rax __int64 *v10; // rdi __int64 v11; // rbx __int64 v12; // rax __int64 v13; // rbx __int64 v14; // rax __int64 v15; // rcx __int64 v16; // rax struct cocos2d::CCLabelBMFont *v17; // rdi __int64 v18; // rbx __int64 v19; // rax struct cocos2d::CCLabelBMFont *v20; // rsi struct cocos2d::CCLabelBMFont *v21; // r14 __int64 v22; // rbx struct cocos2d::CCLabelBMFont *v23; // r15 struct cocos2d::CCLabelBMFont *v24; // r12 struct cocos2d::CCLabelBMFont *v25; // r13 struct cocos2d::CCLabelBMFont *v26; // rbx struct cocos2d::CCLabelBMFont *v27; // rbx float v28; // xmm9_4 __int64 v29; // rbx __int64 v30; // rax __int64 v31; // rbx __int64 v32; // rax __int64 v33; // rbx __int64 v34; // rax __int64 v35; // rbx __int64 v36; // rax __int64 v37; // rbx __int64 v38; // rax struct cocos2d::CCLabelBMFont *v39; // rdi __int64 v40; // rbx __int64 v41; // rax struct cocos2d::CCLabelBMFont *v42; // rdi __int64 v43; // rbx __int64 v44; // rax cocos2d::CCSprite *v45; // rax __int64 v46; // rbx cocos2d::CCObject *v47; // rdi cocos2d::CCSprite *v48; // rax cocos2d::CCObject *v49; // rdi cocos2d::CCSprite *v50; // rax cocos2d::CCObject *v51; // rdi cocos2d::CCSprite *v52; // rax cocos2d::CCObject *v53; // rdi cocos2d::CCSprite *v54; // rax cocos2d::CCObject *v55; // rdi cocos2d::CCSprite *v56; // rax cocos2d::CCObject *v57; // rdi struct cocos2d::CCSprite *v58; // rax struct cocos2d::CCLabelBMFont *v59; // rdi __int64 v60; // rbx float v61; // xmm6_4 float *v62; // rax __int64 v63; // rax __int64 v64; // rbx cocos2d::CCObject *v65; // rdi __int64 v66; // rax __int64 v67; // rbx __int64 v68; // rax cocos2d::CCObject *v69; // rsi __int64 v70; // rbx __int64 v71; // rax __int64 v72; // rax __int64 v73; // rbx __int64 v74; // rax __int64 v75; // rbx __int64 v76; // rax __int64 v77; // rax __int64 v78; // rbx __int64 v79; // rax cocos2d::CCObject *v80; // r15 __int64 v81; // rbx __int64 v82; // rax __int64 v83; // rax __int64 v84; // rbx __int64 v85; // rax cocos2d::CCObject *v86; // r15 __int64 v87; // rbx __int64 v88; // rax __int64 v89; // rax __int64 v90; // rbx __int64 v91; // rax __int64 v92; // r13 __int64 v93; // rbx __int64 v94; // rax __int64 v95; // rax __int64 v96; // rbx __int64 v97; // rax cocos2d::CCObject *v98; // r15 __int64 v99; // rbx __int64 v100; // rax __int64 v101; // rax __int64 v102; // rbx __int64 v103; // rax __int64 v104; // rbx __int64 v105; // rax int v106; // r12d float v107; // xmm6_4 unsigned int v108; // r15d __int64 v109; // rax cocos2d::CCObject *v110; // rcx __int64 v111; // rax __int64 v112; // rax cocos2d::CCObject *v113; // rcx __int64 v114; // rax __int64 v115; // rax struct cocos2d::CCSprite *v116; // rsi __int64 v117; // rdx void (__fastcall *v118)(char *, __int64); // r8 struct cocos2d::CCLabelBMFont *v119; // rdi __int64 v120; // rdx void (__fastcall *v121)(char *, __int64); // r8 __int64 v122; // rax __int64 v123; // rbx __int64 v124; // rax cocos2d::CCObject *v125; // rbx __int64 v126; // rax unsigned int v127; // r12d struct cocos2d::CCLabelBMFont *v128; // rbx __int64 v129; // rax cocos2d::CCObject *v130; // rbx cocos2d::CCObject *v131; // rax __int64 v132; // rax __int64 v133; // rdi __int64 v134; // rbx __int64 v135; // rax cocos2d::CCObject *v136; // rbx cocos2d::CCObject *v137; // rax __int64 v138; // rax __int64 v139; // rdi __int64 v140; // rbx __int64 v141; // rax float v142; // xmm8_4 float v143; // xmm7_4 struct cocos2d::CCLabelBMFont *v144; // rsi __int64 v145; // rbx __int64 v146; // rax int v147; // edx cocos2d::CCString *v148; // rax const char *CString; // rax struct cocos2d::CCSprite *v150; // rax cocos2d::CCObject *v151; // rdi __int64 v152; // rax __int64 v153; // rbx __int64 v154; // rax __int64 v155; // rbx __int64 v156; // rax struct cocos2d::CCLabelBMFont *v157; // rsi __int64 v158; // rbx __int64 v159; // rax int v160; // edx cocos2d::CCString *v161; // rax const char *v162; // rax struct cocos2d::CCSprite *v163; // rax cocos2d::CCObject *v164; // rdi __int64 v165; // rax __int64 v166; // rbx __int64 v167; // rax __int64 v168; // rbx __int64 v169; // rax struct cocos2d::CCLabelBMFont *v170; // rsi __int64 v171; // rbx __int64 v172; // rax int v173; // edx cocos2d::CCString *v174; // rax const char *v175; // rax struct cocos2d::CCSprite *v176; // rax cocos2d::CCObject *v177; // rdi __int64 v178; // rax __int64 v179; // rbx __int64 v180; // rax __int64 v181; // rbx __int64 v182; // rax cocos2d::CCObject *v183; // rbx cocos2d::CCObject *v184; // rdi __int64 v185; // rax __int64 v186; // rbx __int64 v187; // rax __int64 v188; // rbx __int64 v189; // rax cocos2d::CCObject *v190; // rbx cocos2d::CCObject *v191; // rsi __int64 v192; // rdi __int64 v193; // rbx __int64 v194; // rax __int64 v195; // rax __int64 v196; // rcx int v197; // r15d unsigned __int8 v198; // r13 __int64 v199; // rbx __int64 v200; // rdi __int64 v201; // rsi const struct cocos2d::CCPoint *v202; // rax cocos2d::CCNode *v203; // rax struct cocos2d::CCLabelBMFont *v204; // rsi __int64 v205; // rbx __int64 v206; // rax char v207; // di __int64 v208; // rax __int64 v209; // rbx __int64 v210; // rax int v211; // r9d int v212; // r8d __int64 v213; // rbx __int64 v214; // rdi const struct cocos2d::CCPoint *v215; // rax __int64 ToggleButton_1; // rax struct cocos2d::CCLabelBMFont *v217; // rbx __int64 v218; // rax __int64 v219; // rax _QWORD *v220; // rdi __int64 v221; // rdx void (__fastcall *v222)(_QWORD *, __int64); // r8 __int64 v223; // rdx __int64 v224; // rcx char *v225; // rax __int64 v226; // rcx __int64 v227; // rcx __int64 v228; // rcx __int64 v229; // rcx signed int v230; // edx _QWORD *v231; // rax struct cocos2d::CCLabelBMFont *v232; // rbx __int64 v233; // rax __int64 v234; // rax _QWORD *v235; // rdi __int64 v236; // rdx void (__fastcall *v237)(_QWORD *, __int64); // r8 __int64 v238; // rdx __int64 v239; // rcx char *v240; // rax __int64 v241; // rcx __int64 v242; // rcx __int64 v243; // rcx __int64 v244; // rcx signed int v245; // edx _QWORD *v246; // rax struct cocos2d::CCLabelBMFont *v247; // rsi int v248; // edx int v249; // edx int v250; // edx int v251; // edx const char *v252; // rcx __int64 *v253; // rbx cocos2d::CCObject *v254; // rdi __int64 v255; // rax __int64 v256; // rbx __int64 v257; // rax __int64 v258; // rbx __int64 v259; // rax struct cocos2d::CCLabelBMFont *v260; // rsi const char *v261; // rcx __int64 *v262; // rbx cocos2d::CCObject *v263; // rdi __int64 v264; // rax __int64 v265; // rbx __int64 v266; // rax __int64 v267; // rbx __int64 v268; // rax struct cocos2d::CCLabelBMFont *v269; // rsi __int64 *v270; // rbx cocos2d::CCObject *v271; // rdi __int64 v272; // rax __int64 v273; // rbx __int64 v274; // rax __int64 v275; // rbx __int64 v276; // rax float v277; // [rsp+58h] [rbp-B0h] BYREF float v278; // [rsp+5Ch] [rbp-ACh] __int64 v279; // [rsp+60h] [rbp-A8h] BYREF __int64 v280; // [rsp+68h] [rbp-A0h] BYREF cocos2d::CCObject *v281; // [rsp+70h] [rbp-98h] BYREF __int64 v282[2]; // [rsp+78h] [rbp-90h] BYREF char v283[8]; // [rsp+88h] [rbp-80h] BYREF char v284[8]; // [rsp+90h] [rbp-78h] BYREF _QWORD v285[2]; // [rsp+98h] [rbp-70h] BYREF cocos2d::CCObject *v286; // [rsp+A8h] [rbp-60h] BYREF struct cocos2d::CCLabelBMFont *v287; // [rsp+B0h] [rbp-58h] BYREF struct cocos2d::CCLabelBMFont *v288; // [rsp+B8h] [rbp-50h] cocos2d::CCObject *v289; // [rsp+C0h] [rbp-48h] cocos2d::CCObject *v290; // [rsp+C8h] [rbp-40h] cocos2d::CCObject *v291; // [rsp+D0h] [rbp-38h] char v292[8]; // [rsp+D8h] [rbp-30h] BYREF char v293[8]; // [rsp+E0h] [rbp-28h] BYREF char v294[8]; // [rsp+E8h] [rbp-20h] BYREF __int128 v295; // [rsp+F0h] [rbp-18h] BYREF __int64 v296; // [rsp+100h] [rbp-8h] unsigned __int64 v297; // [rsp+108h] [rbp+0h] v4 = a2; v280 = a2; v5 = a1; v279 = a1; result = FLAlertLayer::init_1(a1, 150); if ( result ) { *(_QWORD *)(v5 + 856) = a3; *(_BYTE *)(v5 + 596) = 1; *(_QWORD *)(v5 + 816) = v4; cocos2d::CCObject::retain((cocos2d::CCObject *)v4); v7 = *(unsigned int *)(*(_QWORD *)(v5 + 816) + 332LL); *(_DWORD *)(v5 + 712) = v7; v8 = cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(v8, &v277); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v282, 0.0, 0.0, 80.0, 80.0); v10 = (__int64 *)cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v9); v11 = *v10; cocos2d::CCSize::CCSize((cocos2d::CCSize *)v285, 455.0, 305.0); (*(void (__fastcall **)(__int64 *, __int64))(v11 + 312))(v10, v12); (*(void (__fastcall **)(_QWORD, __int64 *, __int64))(**(_QWORD **)(v5 + 584) + 456LL))( *(_QWORD *)(v5 + 584), v10, 4294967294LL); v13 = *v10; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v285, v277 * 0.5, v278 * 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v13 + 184))(v10, v14); v16 = cocos2d::CCMenu::create(v15); *(_QWORD *)(v5 + 552) = v16; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(v5 + 584) + 456LL))(*(_QWORD *)(v5 + 584), v16, 10); if ( !*(_BYTE *)(v4 + 368) ) { v17 = cocos2d::CCLabelBMFont::create("Select Color:", "goldFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v17 + 160LL))(v17); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(v5 + 584) + 464LL))( *(_QWORD *)(v5 + 584), v17); v18 = *(_QWORD *)v17; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v285, v277 * 0.5, (float)(v278 * 0.5) + 135.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v18 + 184))(v17, v19); v20 = cocos2d::CCLabelBMFont::create("BG:", (const char *)&qword_140704F78); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v20 + 160LL))(v20); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(v5 + 584) + 464LL))( *(_QWORD *)(v5 + 584), v20); v21 = cocos2d::CCLabelBMFont::create("G:", (const char *)&qword_140704F78); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v21 + 160LL))(v21); v22 = v279; (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(v279 + 584) + 464LL))( *(_QWORD *)(v279 + 584), v21); v23 = cocos2d::CCLabelBMFont::create("G2:", (const char *)&qword_140704F78); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v23 + 160LL))(v23); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(v22 + 584) + 464LL))( *(_QWORD *)(v22 + 584), v23); v24 = cocos2d::CCLabelBMFont::create("Line:", (const char *)&qword_140704F78); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v24 + 160LL))(v24); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(v22 + 584) + 464LL))( *(_QWORD *)(v22 + 584), v24); v25 = cocos2d::CCLabelBMFont::create("MG:", (const char *)&qword_140704F78); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v25 + 160LL))(v25); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(v22 + 584) + 464LL))( *(_QWORD *)(v22 + 584), v25); v26 = cocos2d::CCLabelBMFont::create("MG2:", (const char *)&qword_140704F78); v288 = v26; (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v26 + 160LL))(v26); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(v279 + 584) + 464LL))( *(_QWORD *)(v279 + 584), v26); v27 = cocos2d::CCLabelBMFont::create("More:", (const char *)&qword_140704F78); v287 = v27; (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v27 + 160LL))(v27); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(v279 + 584) + 464LL))( *(_QWORD *)(v279 + 584), v27); v28 = *(float *)((*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v17 + 200LL))(v17) + 4) - 20.0; v29 = *(_QWORD *)v20; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v285, (float)(v277 * 0.5) - 138.0, v28); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v29 + 184))(v20, v30); v31 = *(_QWORD *)v21; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v285, (float)(v277 * 0.5) - 92.0, v28); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v31 + 184))(v21, v32); v33 = *(_QWORD *)v23; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v285, (float)(v277 * 0.5) - 46.0, v28); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v33 + 184))(v23, v34); v35 = *(_QWORD *)v24; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v285, (float)(v277 * 0.5) - 0.0, v28); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v35 + 184))(v24, v36); v37 = *(_QWORD *)v25; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v285, (float)(v277 * 0.5) + 46.0, v28); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v37 + 184))(v25, v38); v39 = v288; v40 = *(_QWORD *)v288; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v285, (float)(v277 * 0.5) + 92.0, v28); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v40 + 184))(v39, v41); v42 = v287; v43 = *(_QWORD *)v287; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v285, (float)(v277 * 0.5) + 138.0, v28); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v43 + 184))(v42, v44); v45 = ColorChannelSprite::create(); v46 = v279; *(_QWORD *)(v279 + 720) = v45; (*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v45 + 160LL))(v45); v47 = CCMenuItemSpriteExtra::create(*(_QWORD *)(v46 + 720), 0, v46, (__int64)LevelSettingsLayer::onShowPicker); v286 = v47; (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v47 + 64LL))(v47, 1000); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v46 + 720) + 64LL))(*(_QWORD *)(v46 + 720), 1000); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(v46 + 552) + 464LL))( *(_QWORD *)(v46 + 552), v47); v48 = ColorChannelSprite::create(); *(_QWORD *)(v46 + 728) = v48; (*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v48 + 160LL))(v48); v49 = CCMenuItemSpriteExtra::create(*(_QWORD *)(v46 + 728), 0, v46, (__int64)LevelSettingsLayer::onShowPicker); v281 = v49; (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v49 + 64LL))(v49, 1001); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v46 + 728) + 64LL))(*(_QWORD *)(v46 + 728), 1001); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(v46 + 552) + 464LL))( *(_QWORD *)(v46 + 552), v49); v50 = ColorChannelSprite::create(); *(_QWORD *)(v46 + 736) = v50; (*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v50 + 160LL))(v50); v51 = CCMenuItemSpriteExtra::create(*(_QWORD *)(v46 + 736), 0, v46, (__int64)LevelSettingsLayer::onShowPicker); v289 = v51; (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v51 + 64LL))(v51, 1009); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v46 + 736) + 64LL))(*(_QWORD *)(v46 + 736), 1009); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(v46 + 552) + 464LL))( *(_QWORD *)(v46 + 552), v51); v52 = ColorChannelSprite::create(); *(_QWORD *)(v46 + 744) = v52; (*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v52 + 160LL))(v52); v53 = CCMenuItemSpriteExtra::create(*(_QWORD *)(v46 + 744), 0, v46, (__int64)LevelSettingsLayer::onShowPicker); v290 = v53; (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v53 + 64LL))(v53, 1002); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v46 + 744) + 64LL))(*(_QWORD *)(v46 + 744), 1002); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(v46 + 552) + 464LL))( *(_QWORD *)(v46 + 552), v53); v54 = ColorChannelSprite::create(); *(_QWORD *)(v46 + 752) = v54; (*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v54 + 160LL))(v54); v55 = CCMenuItemSpriteExtra::create(*(_QWORD *)(v46 + 752), 0, v46, (__int64)LevelSettingsLayer::onShowPicker); v285[0] = v55; (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v55 + 64LL))(v55, 1013); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v46 + 752) + 64LL))(*(_QWORD *)(v46 + 752), 1013); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(v46 + 552) + 464LL))( *(_QWORD *)(v46 + 552), v55); v56 = ColorChannelSprite::create(); *(_QWORD *)(v46 + 760) = v56; (*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v56 + 160LL))(v56); v57 = CCMenuItemSpriteExtra::create(*(_QWORD *)(v46 + 760), 0, v46, (__int64)LevelSettingsLayer::onShowPicker); v291 = v57; (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v57 + 64LL))(v57, 1014); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v46 + 760) + 64LL))(*(_QWORD *)(v46 + 760), 1014); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(v46 + 552) + 464LL))( *(_QWORD *)(v46 + 552), v57); v58 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_colorBtn_001.png"); *(_QWORD *)(v46 + 768) = v58; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v58 + 160LL))(v58); (**(void (__fastcall ***)(__int64, void *))(*(_QWORD *)(v46 + 768) + 320LL))( *(_QWORD *)(v46 + 768) + 320LL, &unk_1407044B8); v59 = cocos2d::CCLabelBMFont::create("+", (const char *)&qword_140704F78); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(v46 + 768) + 456LL))( *(_QWORD *)(v46 + 768), v59, 1); v60 = *(_QWORD *)v59; v61 = (float)(*(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v279 + 768) + 320LL))(*(_QWORD *)(v279 + 768)) + 4) * 0.5) + 2.0; v62 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v279 + 768) + 320LL))(*(_QWORD *)(v279 + 768)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v284, (float)(*v62 * 0.5) + 1.0, v61); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v60 + 184))(v59, v63); v64 = v279; v65 = CCMenuItemSpriteExtra::create(*(_QWORD *)(v279 + 768), 0, v279, (__int64)LevelSettingsLayer::onCol); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(v64 + 552) + 464LL))( *(_QWORD *)(v64 + 552), v65); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v283, 0.0, -22.0); v67 = v66; v68 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v20 + 200LL))(v20); cocos2d::CCPoint::operator+(v68, v284, v67); v69 = v286; v70 = *(_QWORD *)v286; cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(v279 + 552), v282, v284); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v70 + 184))(v69, v71); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, 0.0, -22.0); v73 = v72; v74 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v21 + 200LL))(v21); cocos2d::CCPoint::operator+(v74, v284, v73); v75 = *(_QWORD *)v281; v5 = v279; cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(v279 + 552), v283, v284); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v75 + 184))(v281, v76); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, 0.0, -22.0); v78 = v77; v79 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v23 + 200LL))(v23); cocos2d::CCPoint::operator+(v79, v284, v78); v80 = v289; v81 = *(_QWORD *)v289; cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(v5 + 552), v283, v284); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v81 + 184))(v80, v82); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, 0.0, -22.0); v84 = v83; v85 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v24 + 200LL))(v24); cocos2d::CCPoint::operator+(v85, v284, v84); v86 = v290; v87 = *(_QWORD *)v290; cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(v5 + 552), v283, v284); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v87 + 184))(v86, v88); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, 0.0, -22.0); v90 = v89; v91 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v25 + 200LL))(v25); cocos2d::CCPoint::operator+(v91, v284, v90); v92 = v285[0]; v93 = *(_QWORD *)v285[0]; cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(v5 + 552), v283, v284); (*(void (__fastcall **)(__int64, __int64))(v93 + 184))(v92, v94); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, 0.0, -22.0); v96 = v95; v97 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v288 + 200LL))(v288); cocos2d::CCPoint::operator+(v97, v285, v96); v98 = v291; v99 = *(_QWORD *)v291; cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(v5 + 552), v283, v285); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v99 + 184))(v98, v100); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, 0.0, -22.0); v102 = v101; v103 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v287 + 200LL))(v287); cocos2d::CCPoint::operator+(v103, v285, v102); v104 = *(_QWORD *)v65; cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(v5 + 552), v283, v285); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v104 + 184))(v65, v105); LevelSettingsLayer::updateColorSprites(v5); v106 = 0; while ( 2 ) { v107 = 0.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v279); switch ( v106 ) { case 0: v108 = 1000; v109 = *(_QWORD *)v69; v110 = v69; goto LABEL_6; case 1: v108 = 1001; v112 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v281 + 200LL))(v281); cocos2d::CCPoint::operator=(&v279, v112); v107 = -4.0; goto LABEL_13; case 2: v108 = 1009; v110 = v289; v109 = *(_QWORD *)v289; LABEL_6: v111 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(v109 + 200))(v110); cocos2d::CCPoint::operator=(&v279, v111); goto LABEL_13; case 3: v108 = 1002; v113 = v290; goto LABEL_12; case 4: v108 = 1013; v114 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v92 + 200LL))(v92); cocos2d::CCPoint::operator=(&v279, v114); v107 = 0.0; goto LABEL_13; case 5: v108 = 1014; v113 = v291; LABEL_12: v115 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v113 + 200LL))(v113); cocos2d::CCPoint::operator=(&v279, v115); v107 = 3.0; LABEL_13: v116 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_colorBtn_001.png"); (**((void (__fastcall ***)(__int64, void *))v116 + 40))((__int64)v116 + 320, &unk_1407044B4); v117 = *((_QWORD *)v116 + 40); v118 = *(void (__fastcall **)(char *, __int64))(v117 + 40); LOBYTE(v117) = 100; v118((char *)v116 + 320, v117); v119 = cocos2d::CCLabelBMFont::create("+", (const char *)&qword_140704F78); (*(void (__fastcall **)(struct cocos2d::CCSprite *, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v116 + 464LL))( v116, v119); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v119 + 160LL))(v119); v120 = *((_QWORD *)v119 + 46); v121 = *(void (__fastcall **)(char *, __int64))(v120 + 40); LOBYTE(v120) = 100; v121((char *)v119 + 368, v120); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, 2.0, 2.5); v123 = v122; cocos2d::CCNode::convertToNodeSpace(v116, v283, &unk_14090B158); cocos2d::CCPoint::operator+(v124, v285, v123); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, _QWORD *))(*(_QWORD *)v119 + 184LL))(v119, v285); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v116 + 160LL))(v116); v125 = CCMenuItemSpriteExtra::create((int)v116, 0, v5, (__int64)LevelSettingsLayer::onLiveEdit); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(v5 + 552) + 464LL))( *(_QWORD *)(v5 + 552), v125); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v125 + 64LL))(v125, v108); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v287, (float)(v107 * 0.80000001) + 18.0, 22.0); cocos2d::CCPoint::operator+(&v279, v284, v126); (*(void (__fastcall **)(cocos2d::CCObject *, char *))(*(_QWORD *)v125 + 184LL))(v125, v284); *((_DWORD *)v125 + 93) = 0x40000000; ++v106; v69 = v286; if ( v106 < 6 ) continue; v4 = v280; break; } break; } } v127 = 4; if ( !*(_BYTE *)(v4 + 368) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v279, v277 * 0.5, (float)(v278 * 0.5) + 31.0); v128 = cocos2d::CCLabelBMFont::create("Game Type:", "goldFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v128 + 160LL))(v128); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(v5 + 584) + 456LL))( *(_QWORD *)(v5 + 584), v128, 10); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, 0.0, 28.0); cocos2d::CCPoint::operator+(&v279, &v280, v129); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v128 + 184LL))(v128, &v280); v282[0] = (__int64)operator new(0x2C8u); v130 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite(v282[0]); if ( v130 ) { if ( ButtonSprite::init_1( (__int64)v130, (__int64)"Classic", 100, 0, 1057803469, 1, &qword_140704F78, (__int64)"GJ_button_04.png", 1103101952) ) { cocos2d::CCObject::autorelease(v130); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v130 + 8LL))(v130, 1); LODWORD(v130) = 0; } } v131 = CCMenuItemSpriteExtra::create((int)v130, 0, v5, (__int64)LevelSettingsLayer::onGameplayMode); *(_QWORD *)(v5 + 880) = v131; (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v131 + 64LL))(v131, 3); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v5 + 552) + 464LL))( *(_QWORD *)(v5 + 552), *(_QWORD *)(v5 + 880)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, -65.0, 0.0); cocos2d::CCPoint::operator+(&v279, &v280, v132); v133 = **(_QWORD **)(v5 + 880); v134 = *(_QWORD *)(v5 + 880); cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(v5 + 552), v283, &v280); (*(void (__fastcall **)(__int64, __int64))(v133 + 184))(v134, v135); v282[0] = (__int64)operator new(0x2C8u); v136 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite(v282[0]); if ( v136 ) { if ( ButtonSprite::init_1( (__int64)v136, (__int64)"Platformer", 100, 0, 1057803469, 1, &qword_140704F78, (__int64)"GJ_button_04.png", 1103101952) ) { cocos2d::CCObject::autorelease(v136); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v136 + 8LL))(v136, 1); LODWORD(v136) = 0; } } v137 = CCMenuItemSpriteExtra::create((int)v136, 0, v5, (__int64)LevelSettingsLayer::onGameplayMode); *(_QWORD *)(v5 + 888) = v137; (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v137 + 64LL))(v137, 4); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v5 + 552) + 464LL))( *(_QWORD *)(v5 + 552), *(_QWORD *)(v5 + 888)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, 65.0, 0.0); cocos2d::CCPoint::operator+(&v279, &v280, v138); v139 = **(_QWORD **)(v5 + 888); v140 = *(_QWORD *)(v5 + 888); cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(v5 + 552), v283, &v280); (*(void (__fastcall **)(__int64, __int64))(v139 + 184))(v140, v141); LevelSettingsLayer::updateGameplayModeButtons(v5); } v142 = (float)(v277 * 0.5) + 185.0; v143 = (float)(v277 * 0.5) - 185.0; if ( !*(_BYTE *)(v4 + 368) ) { v144 = cocos2d::CCLabelBMFont::create("BG:", "goldFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v144 + 160LL))(v144); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(v5 + 584) + 464LL))( *(_QWORD *)(v5 + 584), v144); v145 = *(_QWORD *)v144; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, v142, (float)((float)(v278 * 0.5) + 100.0) + 35.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v145 + 184))(v144, v146); v147 = *(_DWORD *)(v4 + 352); if ( v147 <= 59 ) { if ( v147 < 1 ) v147 = 1; } else { v147 = 59; } v148 = cocos2d::CCString::createWithFormat("bgIcon_%02d_001.png", v147); CString = cocos2d::CCString::getCString(v148); v150 = cocos2d::CCSprite::createWithSpriteFrameName(CString); *(_QWORD *)(v5 + 776) = v150; v151 = CCMenuItemSpriteExtra::create((int)v150, 0, v5, (__int64)LevelSettingsLayer::onBGArt); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(v5 + 552) + 464LL))( *(_QWORD *)(v5 + 552), v151); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, 0.0, -32.0); v153 = v152; v154 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v144 + 200LL))(v144); cocos2d::CCPoint::operator+(v154, &v280, v153); v155 = *(_QWORD *)v151; cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(v5 + 552), v283, &v280); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v155 + 184))(v151, v156); v157 = cocos2d::CCLabelBMFont::create("G:", "goldFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v157 + 160LL))(v157); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(v5 + 584) + 464LL))( *(_QWORD *)(v5 + 584), v157); v158 = *(_QWORD *)v157; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, v142, (float)(v278 * 0.5) + 70.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v158 + 184))(v157, v159); v160 = *(_DWORD *)(v4 + 356); if ( v160 <= 22 ) { if ( v160 < 1 ) v160 = 1; } else { v160 = 22; } v161 = cocos2d::CCString::createWithFormat("gIcon_%02d_001.png", v160); v162 = cocos2d::CCString::getCString(v161); v163 = cocos2d::CCSprite::createWithSpriteFrameName(v162); *(_QWORD *)(v5 + 784) = v163; v164 = CCMenuItemSpriteExtra::create((int)v163, 0, v5, (__int64)LevelSettingsLayer::onGArt); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(v5 + 552) + 464LL))( *(_QWORD *)(v5 + 552), v164); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, 0.0, -32.0); v166 = v165; v167 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v157 + 200LL))(v157); cocos2d::CCPoint::operator+(v167, &v280, v166); v168 = *(_QWORD *)v164; cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(v5 + 552), v283, &v280); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v168 + 184))(v164, v169); v170 = cocos2d::CCLabelBMFont::create("MG:", "goldFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v170 + 160LL))(v170); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(v5 + 584) + 464LL))( *(_QWORD *)(v5 + 584), v170); v171 = *(_QWORD *)v170; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, v142, (float)(v278 * 0.5) + 5.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v171 + 184))(v170, v172); v173 = *(_DWORD *)(v4 + 364); if ( v173 <= 3 ) { if ( v173 < 0 ) v173 = 0; } else { v173 = 3; } v174 = cocos2d::CCString::createWithFormat("mgIcon_%02d_001.png", v173); v175 = cocos2d::CCString::getCString(v174); v176 = cocos2d::CCSprite::createWithSpriteFrameName(v175); *(_QWORD *)(v5 + 792) = v176; v177 = CCMenuItemSpriteExtra::create((int)v176, 0, v5, (__int64)LevelSettingsLayer::onFGArt); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(v5 + 552) + 464LL))( *(_QWORD *)(v5 + 552), v177); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, 0.0, -32.0); v179 = v178; v180 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v170 + 200LL))(v170); cocos2d::CCPoint::operator+(v180, &v280, v179); v181 = *(_QWORD *)v177; cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(v5 + 552), v283, &v280); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v181 + 184))(v177, v182); if ( !*(_BYTE *)(v4 + 368) ) { v282[0] = (__int64)operator new(0x2C8u); v183 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite(v282[0]); if ( v183 ) { if ( ButtonSprite::init_1( (__int64)v183, (__int64)"Font", 30, 0, 1061997773, 1, "goldFont.fnt", (__int64)"GJ_button_04.png", 1105199104) ) { cocos2d::CCObject::autorelease(v183); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v183 + 8LL))(v183, 1); LODWORD(v183) = 0; } } v184 = CCMenuItemSpriteExtra::create((int)v183, 0, v5, (__int64)LevelSettingsLayer::onSelectFont); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(v5 + 552) + 464LL))( *(_QWORD *)(v5 + 552), v184); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, 0.0, -70.0); v186 = v185; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v283, v142, (float)(v278 * 0.5) - 0.0); cocos2d::CCPoint::operator+(v187, &v280, v186); v188 = *(_QWORD *)v184; cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(v5 + 552), v285, &v280); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v188 + 184))(v184, v189); } } v282[0] = (__int64)operator new(0x2C8u); v190 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite(v282[0]); if ( v190 ) { if ( ButtonSprite::init_1( (__int64)v190, (__int64)"OK", 40, 0, 1061997773, 1, "goldFont.fnt", (__int64)"GJ_button_01.png", 1106247680) ) { cocos2d::CCObject::autorelease(v190); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v190 + 8LL))(v190, 1); v190 = nullptr; } } v282[0] = (__int64)operator new(0x208u); v191 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v282[0]); if ( v191 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v191, (__int64 *)v190, 0, v5, (__int64)LevelSettingsLayer::onClose) ) { cocos2d::CCObject::autorelease(v191); goto LABEL_53; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v191 + 8LL))(v191, 1); } v191 = nullptr; LABEL_53: (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(v5 + 552) + 464LL))(*(_QWORD *)(v5 + 552), v191); v192 = *(_QWORD *)v191; v193 = *(_QWORD *)(v5 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, v277 * 0.5, (float)(v278 * 0.5) - 130.0); cocos2d::CCNode::convertToNodeSpace(v193, v283, v194); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v192 + 184))(v191, v195); if ( *(_BYTE *)(v4 + 368) ) { v204 = cocos2d::CCLabelBMFont::create("Disable", "goldFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v204 + 160LL))(v204); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(v5 + 584) + 464LL))( *(_QWORD *)(v5 + 584), v204); v205 = *(_QWORD *)v204; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, v143 + 270.0, (float)(v278 * 0.5) - 90.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v205 + 184))(v204, v206); v282[0] = (__int64)&v295; v207 = *(_BYTE *)(*(_QWORD *)(v5 + 816) + 472LL); v295 = 0; v296 = 0; v297 = 15; LOBYTE(v295) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v283, 0.0, -30.0); v209 = v208; v210 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v204 + 200LL))(v204); cocos2d::CCPoint::operator+(v210, &v280, v209); LOBYTE(v211) = v207 == 0; LevelSettingsLayer::createToggleButton(v5, (unsigned int)&v295, v212, v211, *(_QWORD *)(v5 + 552), (__int64)&v280); v282[0] = (__int64)&v295; v296 = 12; v297 = 15; strcpy((char *)&v295, "Reset\nCamera"); BYTE13(v295) = 0; HIWORD(v295) = 0; LOBYTE(v204) = *(_BYTE *)(v4 + 448); v213 = *(_QWORD *)(v5 + 584); v214 = *(_QWORD *)(v5 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v283, v277 * 0.5, v278 * 0.5); ToggleButton_1 = GameToolbox::createToggleButton_1( (__int64)&v295, (int)LevelSettingsLayer::onOptionToggle, (unsigned __int8)v204, v214, v215, v5, v213, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)ToggleButton_1 + 64LL))(ToggleButton_1, 1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v279, (float)(v277 * 0.5) - 100.0, (float)(v278 * 0.5) - 60.0); v217 = cocos2d::CCLabelBMFont::create("Target Order", "goldFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v217 + 160LL))(v217); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(v5 + 584) + 464LL))( *(_QWORD *)(v5 + 584), v217); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, 0.0, 30.0); cocos2d::CCPoint::operator+(&v279, &v280, v218); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v217 + 184LL))(v217, &v280); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v285, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v282, (const struct cocos2d::CCRect *)v285); v220 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v219); v221 = v220[40]; v222 = *(void (__fastcall **)(_QWORD *, __int64))(v221 + 40); LOBYTE(v221) = 100; v222(v220 + 40, v221); LOWORD(v281) = 0; BYTE2(v281) = 0; (*(void (__fastcall **)(_QWORD *, cocos2d::CCObject **))v220[40])(v220 + 40, &v281); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v286, 50.0, 30.0); (*(void (__fastcall **)(_QWORD *, cocos2d::CCObject **))(*v220 + 312LL))(v220, &v286); (*(void (__fastcall **)(_QWORD, _QWORD *, __int64))(**(_QWORD **)(v5 + 584) + 456LL))( *(_QWORD *)(v5 + 584), v220, 0xFFFFFFFFLL); (*(void (__fastcall **)(_QWORD *, __int64 *))(*v220 + 184LL))(v220, &v279); v225 = CCTextInputNode::create(v224, v223, (__int64)"Order"); *(_QWORD *)(v5 + 864) = v225; (*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(v5 + 584) + 456LL))( *(_QWORD *)(v5 + 584), v225, 20); (*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(v5 + 864) + 184LL))(*(_QWORD *)(v5 + 864), &v279); v226 = *(_QWORD *)(v5 + 864); *(_DWORD *)(v226 + 564) = 1058642330; CCTextInputNode::refreshLabel(v226); v227 = *(_QWORD *)(v5 + 864); *(_DWORD *)(v227 + 560) = 1128792064; CCTextInputNode::refreshLabel(v227); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*(_QWORD *)(v5 + 864) + 592LL) + 336LL))( *(_QWORD *)(*(_QWORD *)(v5 + 864) + 592LL), 0); *(_DWORD *)(*(_QWORD *)(v5 + 864) + 608LL) = 6; v296 = 10; v297 = 15; *(_QWORD *)&v295 = *(_QWORD *)"0123456789"; *((_QWORD *)&v295 + 1) = *(unsigned __int16 *)"89"; BYTE10(v295) = 0; CCTextInputNode::setAllowedChars(*(_QWORD *)(v5 + 864), (void **)&v295); LOWORD(v281) = -21896; v228 = *(_QWORD *)(v5 + 864); *(_WORD *)(v228 + 572) = -21896; *(_BYTE *)(v228 + 574) = -16; CCTextInputNode::refreshLabel(v228); v229 = *(_QWORD *)(v5 + 864); *(_DWORD *)(v229 + 568) = 1056964608; CCTextInputNode::refreshLabel(v229); *(_QWORD *)(*(_QWORD *)(v5 + 864) + 600LL) = v5 + 544; *(_BYTE *)(*(_QWORD *)(v5 + 864) + 424LL) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v5 + 864) + 64LL))(*(_QWORD *)(v5 + 864), 1); v230 = *(_DWORD *)(*(_QWORD *)(v5 + 816) + 372LL); if ( v230 > 0 ) { v231 = GameToolbox::intToString(&v295, v230); CCTextInputNode::setString(*(_QWORD **)(v5 + 864), v231); } *(float *)&v279 = *(float *)&v279 + 200.0; v232 = cocos2d::CCLabelBMFont::create("Target Channel", "goldFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v232 + 160LL))(v232); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(v5 + 584) + 464LL))( *(_QWORD *)(v5 + 584), v232); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, 0.0, 30.0); cocos2d::CCPoint::operator+(&v279, &v280, v233); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v232 + 184LL))(v232, &v280); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v282, (const struct cocos2d::CCRect *)v285); v235 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v234); v236 = v235[40]; v237 = *(void (__fastcall **)(_QWORD *, __int64))(v236 + 40); LOBYTE(v236) = 100; v237(v235 + 40, v236); LOWORD(v281) = 0; BYTE2(v281) = 0; (*(void (__fastcall **)(_QWORD *, cocos2d::CCObject **))v235[40])(v235 + 40, &v281); (*(void (__fastcall **)(_QWORD *, cocos2d::CCObject **))(*v235 + 312LL))(v235, &v286); (*(void (__fastcall **)(_QWORD, _QWORD *, __int64))(**(_QWORD **)(v5 + 584) + 456LL))( *(_QWORD *)(v5 + 584), v235, 0xFFFFFFFFLL); (*(void (__fastcall **)(_QWORD *, __int64 *))(*v235 + 184LL))(v235, &v279); v240 = CCTextInputNode::create(v239, v238, (__int64)"Channel"); *(_QWORD *)(v5 + 872) = v240; (*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(v5 + 584) + 456LL))( *(_QWORD *)(v5 + 584), v240, 20); (*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(v5 + 872) + 184LL))(*(_QWORD *)(v5 + 872), &v279); v241 = *(_QWORD *)(v5 + 872); *(_DWORD *)(v241 + 564) = 1058642330; CCTextInputNode::refreshLabel(v241); v242 = *(_QWORD *)(v5 + 872); *(_DWORD *)(v242 + 560) = 1128792064; CCTextInputNode::refreshLabel(v242); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*(_QWORD *)(v5 + 872) + 592LL) + 336LL))( *(_QWORD *)(*(_QWORD *)(v5 + 872) + 592LL), 0); *(_DWORD *)(*(_QWORD *)(v5 + 872) + 608LL) = 6; v296 = 10; v297 = 15; *(_QWORD *)&v295 = *(_QWORD *)"0123456789"; *((_QWORD *)&v295 + 1) = *(unsigned __int16 *)"89"; BYTE10(v295) = 0; CCTextInputNode::setAllowedChars(*(_QWORD *)(v5 + 872), (void **)&v295); LOWORD(v281) = -21896; v243 = *(_QWORD *)(v5 + 872); *(_WORD *)(v243 + 572) = -21896; *(_BYTE *)(v243 + 574) = -16; CCTextInputNode::refreshLabel(v243); v244 = *(_QWORD *)(v5 + 872); *(_DWORD *)(v244 + 568) = 1056964608; CCTextInputNode::refreshLabel(v244); *(_QWORD *)(*(_QWORD *)(v5 + 872) + 600LL) = v5 + 544; *(_BYTE *)(*(_QWORD *)(v5 + 872) + 424LL) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v5 + 872) + 64LL))(*(_QWORD *)(v5 + 872), 2); v245 = *(_DWORD *)(*(_QWORD *)(v5 + 816) + 376LL); if ( v245 > 0 ) { v246 = GameToolbox::intToString(&v295, v245); CCTextInputNode::setString(*(_QWORD **)(v5 + 872), v246); } } else { v196 = *(_QWORD *)(*(_QWORD *)(v5 + 816) + 384LL); v197 = *(_DWORD *)(v196 + 680); v198 = v197 != 0; if ( !v197 ) v197 = *(_DWORD *)(v196 + 676); v199 = *(_QWORD *)(v5 + 552); v200 = *(_QWORD *)(v5 + 584); v201 = *(_QWORD *)(v5 + 816); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, v277 * 0.5, (float)(v278 * 0.5) - 67.0); v203 = SongSelectNode::create(v197, v198, v201, 0, v202, v200, v199, 0); *(_QWORD *)(v5 + 704) = v203; (*(void (__fastcall **)(_QWORD, cocos2d::CCNode *, __int64))(**(_QWORD **)(v5 + 584) + 456LL))( *(_QWORD *)(v5 + 584), v203, 5); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v292, v143, (float)(v278 * 0.5) + 135.0); v247 = cocos2d::CCLabelBMFont::create((const char *)&dword_1407751A8, "goldFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v247 + 160LL))(v247); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(v5 + 584) + 464LL))( *(_QWORD *)(v5 + 584), v247); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, char *))(*(_QWORD *)v247 + 184LL))(v247, v292); v248 = *(_DWORD *)(*(_QWORD *)(v5 + 816) + 332LL); if ( v248 ) { v249 = v248 - 1; if ( v249 ) { v250 = v249 - 1; if ( v250 ) { v251 = v250 - 1; if ( v251 ) { if ( v251 == 1 ) goto LABEL_67; goto LABEL_66; } v127 = 3; } else { v127 = 2; } } else { v127 = 0; } LABEL_67: SelectSettingLayer::frameForItem(&v295, 2, v127); v252 = (const char *)&v295; if ( v297 > 0xF ) v252 = (const char *)v295; *(_QWORD *)(v5 + 800) = cocos2d::CCSprite::createWithSpriteFrameName(v252); sub_14003D310((__int64)&v295); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v5 + 800) + 160LL))(*(_QWORD *)(v5 + 800)); v253 = *(__int64 **)(v5 + 800); v282[0] = (__int64)operator new(0x208u); v254 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v282[0]); if ( v254 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v254, v253, 0, v5, (__int64)LevelSettingsLayer::onSpeed) ) { cocos2d::CCObject::autorelease(v254); goto LABEL_77; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v254 + 8LL))(v254, 1); } v254 = nullptr; LABEL_77: (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(v5 + 552) + 464LL))( *(_QWORD *)(v5 + 552), v254); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, 0.0, -34.0); v256 = v255; v257 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v247 + 200LL))(v247); cocos2d::CCPoint::operator+(v257, &v280, v256); v258 = *(_QWORD *)v254; cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(v5 + 552), v283, &v280); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v258 + 184))(v254, v259); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v293, v143, (float)((float)(v278 * 0.5) + 135.0) - 80.0); v260 = cocos2d::CCLabelBMFont::create("Mode:", "goldFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v260 + 160LL))(v260); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(v5 + 584) + 464LL))( *(_QWORD *)(v5 + 584), v260); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, char *))(*(_QWORD *)v260 + 184LL))(v260, v293); SelectSettingLayer::frameForItem( &v295, *(_BYTE *)(*(_QWORD *)(v5 + 816) + 341LL) != 0, *(unsigned int *)(*(_QWORD *)(v5 + 816) + 328LL)); v261 = (const char *)&v295; if ( v297 > 0xF ) v261 = (const char *)v295; *(_QWORD *)(v5 + 808) = cocos2d::CCSprite::createWithSpriteFrameName(v261); sub_14003D310((__int64)&v295); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v5 + 808) + 160LL))(*(_QWORD *)(v5 + 808)); v262 = *(__int64 **)(v5 + 808); v282[0] = (__int64)operator new(0x208u); v263 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v282[0]); if ( v263 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v263, v262, 0, v5, (__int64)LevelSettingsLayer::onMode) ) { cocos2d::CCObject::autorelease(v263); goto LABEL_84; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v263 + 8LL))(v263, 1); } v263 = nullptr; LABEL_84: (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(v5 + 552) + 464LL))( *(_QWORD *)(v5 + 552), v263); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, 0.0, -32.0); v265 = v264; v266 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v260 + 200LL))(v260); cocos2d::CCPoint::operator+(v266, &v280, v265); v267 = *(_QWORD *)v263; cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(v5 + 552), v283, &v280); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v267 + 184))(v263, v268); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v294, v143, (float)((float)(v278 * 0.5) + 135.0) - 160.0); v269 = cocos2d::CCLabelBMFont::create("Options:", "goldFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v269 + 160LL))(v269); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(v5 + 584) + 464LL))( *(_QWORD *)(v5 + 584), v269); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, char *))(*(_QWORD *)v269 + 184LL))(v269, v294); v270 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName("GJ_optionsBtn_001.png"); (*(void (__fastcall **)(__int64 *))(*v270 + 160))(v270); v282[0] = (__int64)operator new(0x208u); v271 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v282[0]); if ( v271 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v271, v270, 0, v5, (__int64)LevelSettingsLayer::onSettings) ) { cocos2d::CCObject::autorelease(v271); LABEL_89: (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(v5 + 552) + 464LL))( *(_QWORD *)(v5 + 552), v271); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, 0.0, -32.0); v273 = v272; v274 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v269 + 200LL))(v269); cocos2d::CCPoint::operator+(v274, &v280, v273); v275 = *(_QWORD *)v271; cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(v5 + 552), v283, &v280); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v275 + 184))(v271, v276); return 1; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v271 + 8LL))(v271, 1); } v271 = nullptr; goto LABEL_89; } LABEL_66: v127 = 1; goto LABEL_67; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source