// // SetGroupIDLayer::init from 0x14058e630 to 0x140590b18 (9448 bytes) // // 2 xrefs: // > EditorUI::editGroup @ 0x1401be942 // > @ 0x14092cc78 // // 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:34:32 +0000 // // Hidden C++ exception states: #wind=29 bool __fastcall SetGroupIDLayer::init(__int64 a1, __int64 a2, cocos2d::CCObject *a3) { bool result; // al __int64 v7; // rcx cocos2d::CCObject *v8; // rax __int64 v9; // rcx cocos2d::CCObject *v10; // rax __int64 v11; // rcx cocos2d::CCObject *v12; // rax __int64 v13; // rdx __int64 v14; // rdx __int64 v15; // rcx __int64 v16; // rax __int64 v17; // rax __int64 v18; // rdx __int64 v19; // rcx cocos2d::CCObject *v20; // rax __int64 v21; // rax __int64 v22; // rax __int64 *v23; // rdi __int64 v24; // rbx __int64 v25; // rax __int64 v26; // rbx __int64 v27; // rax __int64 v28; // rax cocos2d::CCArray *v29; // rdi __int64 v30; // rdx void (__fastcall *v31)(char *, __int64); // r8 __int64 v32; // rbx __int64 v33; // rax size_t v34; // r12 __int64 v35; // rbx __int64 v36; // rax struct cocos2d::CCLabelBMFont *v37; // rdi __int64 v38; // rbx __int64 v39; // rax struct cocos2d::CCLabelBMFont *v40; // rsi __int64 v41; // rbx __int64 v42; // rax __int64 *v43; // rsi __int64 v44; // rbx __int64 v45; // rax struct cocos2d::CCLabelBMFont *v46; // rsi __int64 v47; // rax __int64 v48; // rbx __int64 v49; // rax struct cocos2d::CCLabelBMFont *v50; // r13 __int64 v51; // rbx __int64 v52; // rax __int64 v53; // rcx __int64 v54; // rax cocos2d::CCObject *v55; // rbx cocos2d::CCObject *v56; // rax __int64 v57; // rdi __int64 v58; // rbx __int64 v59; // rax struct cocos2d::CCSprite *v60; // rax cocos2d::CCObject *v61; // rsi __int64 v62; // rax __int64 v63; // rdi __int64 v64; // rbx __int64 v65; // rax __int64 v66; // rax struct cocos2d::CCSprite *v67; // rax cocos2d::CCObject *v68; // rsi __int64 v69; // rax __int64 v70; // rdi __int64 v71; // rbx __int64 v72; // rax __int64 v73; // rax struct cocos2d::CCSprite *v74; // rax cocos2d::CCObject *v75; // rsi __int64 v76; // rax __int64 v77; // rdi __int64 v78; // rbx __int64 v79; // rax __int64 v80; // rax _QWORD *v81; // rax _OWORD *v82; // rcx const char *v83; // rdx __int64 v84; // r8 char *v85; // rsi __int64 v86; // rdi __int64 v87; // rbx __int64 v88; // rax __int64 v89; // rax __int64 v90; // rax __int64 v91; // rbx __int64 v92; // rax int v93; // r9d __int64 v94; // rax __int64 v95; // rbx __int64 v96; // rax int v97; // r9d __int64 v98; // rax __int64 v99; // rbx __int64 v100; // rax const struct cocos2d::CCPoint *v101; // rax void *v102; // rcx cocos2d::CCObject *v103; // rbx cocos2d::CCObject *v104; // rsi __int64 v105; // rdi __int64 v106; // rax __int64 v107; // rbx __int64 v108; // rax __int64 v109; // rax cocos2d::CCObject *v110; // rbx cocos2d::CCObject *v111; // rdi __int64 v112; // rax __int64 v113; // rbx __int64 v114; // rax __int64 v115; // rax __int64 v116; // rbx __int64 v117; // rax int v118; // r9d const struct cocos2d::CCSize *v119; // rax __int64 v120; // rax __int64 v121; // rbx __int64 v122; // rax __int64 v123; // rcx __int64 v124; // rax __int64 v125; // rcx int i; // r15d const char *v127; // rbx unsigned int v128; // esi cocos2d::CCObject *v129; // rdi cocos2d::CCObject *v130; // rbx cocos2d::CCArray *v131; // rdi __int64 v132; // rax __int64 v133; // rbx struct cocos2d::CCLabelBMFont *v134; // r13 __int64 v135; // rax __int64 v136; // rax float v137; // xmm13_4 cocos2d::CCArray *v138; // rcx unsigned int v139; // esi __int16 *v140; // rdx size_t v141; // r8 struct cocos2d::CCSprite *v142; // rax __int64 *v143; // r15 void *v144; // rdx __int64 v145; // rdx void (__fastcall *v146)(__int64 *, __int64); // r8 const char *v147; // rcx struct cocos2d::CCLabelBMFont *v148; // rdi __int64 v149; // rax __int64 v150; // rbx __int64 v151; // rax __int64 v152; // rdi int v153; // eax __int64 v154; // rax __int64 v155; // rbx __int64 v156; // rax __int64 v157; // rbx __int64 v158; // rax void *v159; // rcx int ParentMode; // edi __int64 v161; // rcx cocos2d::CCArray *v162; // rcx unsigned int v163; // ebx struct cocos2d::CCObject *v164; // rax int v165; // eax cocos2d::CCString *v166; // rax const char *CString; // rax const char *v168; // rcx struct cocos2d::CCLabelBMFont *v169; // rdi __int64 v170; // rax __int64 v171; // rbx __int64 v172; // rax int v173; // eax int v174; // r9d int v175; // eax int v176; // r9d __int64 *v177; // rbx cocos2d::CCObject *v178; // rdi __int64 v179; // rax __int64 v180; // rbx __int64 v181; // rax __int64 v182; // rbx __int64 v183; // rax __int64 v184; // rax cocos2d::CCObject *v185; // r12 __int64 v186; // rax cocos2d::CCObject *v187; // rsi __int64 v188; // rax cocos2d::CCObject *v189; // r15 __int64 *v190; // rax cocos2d::CCObject *v191; // rbx cocos2d::CCObject *v192; // r13 cocos2d::CCObject *v193; // rdi cocos2d::CCObject *v194; // rbx cocos2d::CCObject *v195; // r12 cocos2d::CCObject *v196; // r15 cocos2d::CCObject *v197; // rsi __int64 v198; // r13 __int64 v199; // rax __int64 v200; // rax __int64 v201; // rax __int64 v202; // rax __int64 v203; // rax __int64 v204; // rax unsigned __int8 v205; // di __int64 v206; // rbx float *v207; // rax __int64 v208; // rax __int64 v209; // rdi __int64 v210; // rax __int64 v211; // rbx float *v212; // rax __int64 v213; // rax __int64 v214; // rdi __int64 v215; // rax __int64 v216; // rbx float *v217; // rax __int64 v218; // rdi __int64 v219; // rdi __int64 v220; // rax __int64 v221; // rbx float *v222; // rax float v223; // [rsp+88h] [rbp-80h] BYREF float v224; // [rsp+8Ch] [rbp-7Ch] __int64 v225[2]; // [rsp+90h] [rbp-78h] BYREF struct cocos2d::CCLabelBMFont *v226; // [rsp+A0h] [rbp-68h] BYREF void *v227; // [rsp+A8h] [rbp-60h] BYREF void *v228; // [rsp+B0h] [rbp-58h] BYREF __int64 v229; // [rsp+B8h] [rbp-50h] BYREF struct cocos2d::CCLabelBMFont *v230; // [rsp+C0h] [rbp-48h] BYREF __int64 *v231; // [rsp+C8h] [rbp-40h] BYREF cocos2d::CCArray *v232; // [rsp+D0h] [rbp-38h] BYREF char v233[8]; // [rsp+D8h] [rbp-30h] BYREF struct cocos2d::CCLabelBMFont *v234; // [rsp+E0h] [rbp-28h] BYREF __int128 v235; // [rsp+E8h] [rbp-20h] BYREF __int64 v236; // [rsp+F8h] [rbp-10h] __int64 v237; // [rsp+100h] [rbp-8h] char v238[8]; // [rsp+108h] [rbp+0h] BYREF char v239[8]; // [rsp+110h] [rbp+8h] BYREF struct cocos2d::CCLabelBMFont *v240; // [rsp+118h] [rbp+10h] BYREF char v241[8]; // [rsp+120h] [rbp+18h] BYREF void *Block[2]; // [rsp+128h] [rbp+20h] BYREF __int64 v243; // [rsp+138h] [rbp+30h] unsigned __int64 v244; // [rsp+140h] [rbp+38h] __int128 v245; // [rsp+148h] [rbp+40h] BYREF __int64 v246; // [rsp+158h] [rbp+50h] unsigned __int64 v247; // [rsp+160h] [rbp+58h] __int128 v248; // [rsp+168h] [rbp+60h] BYREF __int64 v249; // [rsp+178h] [rbp+70h] unsigned __int64 v250; // [rsp+180h] [rbp+78h] v229 = a2; LODWORD(v230) = 1258291200; result = cocos2d::CCLayerColor::initWithColor((cocos2d::CCLayerColor *)a1, (const struct cocos2d::_ccColor4B *)&v230); if ( !result ) return result; *(_BYTE *)(a1 + 797) = 1; *(_BYTE *)(a1 + 596) = 1; if ( a2 ) { *(_QWORD *)(a1 + 672) = a2; } else { *(_QWORD *)(a1 + 680) = a3; cocos2d::CCObject::retain(a3); } v8 = (cocos2d::CCObject *)cocos2d::CCArray::create(v7); *(_QWORD *)(a1 + 688) = v8; cocos2d::CCObject::retain(v8); v10 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v9); *(_QWORD *)(a1 + 816) = v10; cocos2d::CCObject::retain(v10); v12 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v11); *(_QWORD *)(a1 + 824) = v12; cocos2d::CCObject::retain(v12); FLAlertLayer::incrementForcePrio((struct cocos2d::CCObject *)a1); LOBYTE(v13) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 920LL))(a1, v13); LOBYTE(v14) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 992LL))(a1, v14); v16 = cocos2d::CCDirector::sharedDirector(v15); cocos2d::CCDirector::getWinSize(v16, &v223); v17 = cocos2d::CCLayer::create(); *(_QWORD *)(a1 + 584) = v17; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v17); LOBYTE(v18) = -56; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(a1 + 408) + 40LL))(a1 + 408, v18); v20 = (cocos2d::CCObject *)cocos2d::CCArray::create(v19); *(_QWORD *)(a1 + 696) = v20; cocos2d::CCObject::retain(v20); v21 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v226 = (struct cocos2d::CCLabelBMFont *)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v226); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v21 = qword_14090BFD0; } *(_DWORD *)(a1 + 764) = *(_DWORD *)(v21 + 1008); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v225, 0.0, 0.0, 80.0, 80.0); v23 = (__int64 *)cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v22); v24 = *v23; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v226, 390.0, 310.0); (*(void (__fastcall **)(__int64 *, __int64))(v24 + 312))(v23, v25); (*(void (__fastcall **)(_QWORD, __int64 *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v23, 4294967294LL); v26 = *v23; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v226, v223 * 0.5, v224 * 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v26 + 184))(v23, v27); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v245, 0.0, 0.0, 80.0, 80.0); v29 = (cocos2d::CCArray *)cocos2d::extension::CCScale9Sprite::create("square02_001.png", v28); v232 = v29; v30 = *((_QWORD *)v29 + 40); v31 = *(void (__fastcall **)(char *, __int64))(v30 + 40); LOBYTE(v30) = 50; v31((char *)v29 + 320, v30); v32 = *(_QWORD *)v29; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v226, 360.0, 68.0); (*(void (__fastcall **)(cocos2d::CCArray *, __int64))(v32 + 312))(v29, v33); v34 = -1; (*(void (__fastcall **)(_QWORD, cocos2d::CCArray *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v29, 0xFFFFFFFFLL); v35 = *(_QWORD *)v29; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v226, v223 * 0.5, (float)(v224 * 0.5) - 17.0); (*(void (__fastcall **)(cocos2d::CCArray *, __int64))(v35 + 184))(v29, v36); v37 = cocos2d::CCLabelBMFont::create("Editor L", "goldFont.fnt"); v230 = v37; v38 = *(_QWORD *)v37; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v226, (float)(v223 * 0.5) - 125.0, (float)((float)(v224 * 0.5) + 155.0) - 16.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v38 + 184))(v37, v39); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v37); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v37 + 160LL))(v37); v40 = cocos2d::CCLabelBMFont::create("Editor L2", "goldFont.fnt"); v234 = v40; v41 = *(_QWORD *)v40; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v226, v223 * 0.5, (float)((float)(v224 * 0.5) + 155.0) - 16.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v41 + 184))(v40, v42); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v40); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v40 + 160LL))(v40); v43 = (__int64 *)cocos2d::CCLabelBMFont::create("Add Group ID", "goldFont.fnt"); v231 = v43; v44 = *v43; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v226, v223 * 0.5, (float)(v224 * 0.5) + 80.0); (*(void (__fastcall **)(__int64 *, __int64))(v44 + 184))(v43, v45); (*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v43); (*(void (__fastcall **)(__int64 *))(*v43 + 160))(v43); v46 = cocos2d::CCLabelBMFont::create("Z Order", "goldFont.fnt"); v240 = v46; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v226, 250.0, 0.0); v48 = v47; v49 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v37 + 200LL))(v37); cocos2d::CCPoint::operator+(v49, &v227, v48); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v46 + 184LL))(v46, &v227); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v46); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v46 + 160LL))(v46); v50 = cocos2d::CCLabelBMFont::create("Z Layer", "goldFont.fnt"); v226 = v50; v51 = *(_QWORD *)v50; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v227, v223 * 0.5, (float)(v224 * 0.5) - 64.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v51 + 184))(v50, v52); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v50); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v50 + 160LL))(v50); v54 = cocos2d::CCMenu::create(v53); *(_QWORD *)(a1 + 552) = v54; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v54, 10); *(_DWORD *)(a1 + 640) = -1; v227 = operator new(0x2C8u); v55 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v227); if ( v55 ) { if ( ButtonSprite::init_1( (__int64)v55, (__int64)"OK", 40, 0, 1061997773, 1, "goldFont.fnt", (__int64)"GJ_button_01.png", 1106247680) ) { cocos2d::CCObject::autorelease(v55); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v55 + 8LL))(v55, 1); LODWORD(v55) = 0; } } v56 = CCMenuItemSpriteExtra::create((int)v55, 0, a1, (__int64)SetGroupIDLayer::onClose); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v56); v57 = **(_QWORD **)(a1 + 552); v58 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v227, v223 * 0.5, (float)((float)(v224 * 0.5) - 155.0) + 23.0); (*(void (__fastcall **)(__int64, __int64))(v57 + 184))(v58, v59); v60 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_plus2Btn_001.png"); LODWORD(v58) = (_DWORD)v60; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v60 + 160LL))(v60); v61 = CCMenuItemSpriteExtra::create(v58, 0, a1, (__int64)SetGroupIDLayer::onNextFreeEditorLayer1); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v61); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v228, 50.0, 0.0); v63 = v62; v64 = *(_QWORD *)(a1 + 552); v65 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v230 + 200LL))(v230); cocos2d::CCNode::convertToNodeSpace(v64, v225, v65); cocos2d::CCPoint::operator+(v66, &v227, v63); (*(void (__fastcall **)(cocos2d::CCObject *, void **))(*(_QWORD *)v61 + 184LL))(v61, &v227); v67 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_plus2Btn_001.png"); LODWORD(v64) = (_DWORD)v67; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v67 + 160LL))(v67); v68 = CCMenuItemSpriteExtra::create(v64, 0, a1, (__int64)SetGroupIDLayer::onNextFreeEditorLayer2); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v68); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v225, 54.0, 0.0); v70 = v69; v71 = *(_QWORD *)(a1 + 552); v72 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v234 + 200LL))(v234); cocos2d::CCNode::convertToNodeSpace(v71, &v228, v72); cocos2d::CCPoint::operator+(v73, &v227, v70); (*(void (__fastcall **)(cocos2d::CCObject *, void **))(*(_QWORD *)v68 + 184LL))(v68, &v227); v74 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_optionsBtn_001.png"); LODWORD(v71) = (_DWORD)v74; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v74 + 160LL))(v74); v75 = CCMenuItemSpriteExtra::create(v71, 0, a1, (__int64)SetGroupIDLayer::onGroupIDOptions); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v75); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v225, 73.0, 0.0); v77 = v76; v78 = *(_QWORD *)(a1 + 552); v79 = (*(__int64 (__fastcall **)(__int64 *))(*v231 + 200))(v231); cocos2d::CCNode::convertToNodeSpace(v78, &v228, v79); cocos2d::CCPoint::operator+(v80, &v227, v77); (*(void (__fastcall **)(cocos2d::CCObject *, void **))(*(_QWORD *)v75 + 184LL))(v75, &v227); v225[0] = (__int64)&v235; v235 = 0; v236 = 0; v237 = 0; v81 = sub_14003D460(0x270u); *(_QWORD *)&v235 = v81; v236 = 608; v237 = 623; v82 = v81; v83 = "Add assigns up to 10 groups to the selected object(s).\n" " P sets a single object as group parent.\n" "Editor L1 and L2 places the object(s) on an editor layer.\n" "Z layer sets the draw layer of the object(s). T layers are above, while B layers are below the player.\n" "Z order sets the draw order of the object(s) within the Z layer.\n" "CH sets the channel of the object(s).\n" "ORD sets the order of the object(s).\n" "Extra has more advanced options.\n" "Preview makes touch toggled triggers preview in editor.\n" "Playback starts playback from this object."; v84 = 4; do { *v82 = *(_OWORD *)v83; v82[1] = *((_OWORD *)v83 + 1); v82[2] = *((_OWORD *)v83 + 2); v82[3] = *((_OWORD *)v83 + 3); v82[4] = *((_OWORD *)v83 + 4); v82[5] = *((_OWORD *)v83 + 5); v82[6] = *((_OWORD *)v83 + 6); v82 += 8; *(v82 - 1) = *((_OWORD *)v83 + 7); v83 += 128; --v84; } while ( v84 ); *v82 = *(_OWORD *)v83; v82[1] = *((_OWORD *)v83 + 1); v82[2] = *((_OWORD *)v83 + 2); v82[3] = *((_OWORD *)v83 + 3); v82[4] = *((_OWORD *)v83 + 4); v82[5] = *((_OWORD *)v83 + 5); *((_BYTE *)v81 + 608) = 0; *(_OWORD *)Block = 0; v243 = 4; v244 = 15; strcpy((char *)Block, "Help"); v85 = InfoAlertButton::create((__int64)Block, (__int64)&v235); *((_DWORD *)v85 + 146) = 1063675494; (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v85); v86 = *(_QWORD *)v85; v87 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v225, (float)((float)(v223 * 0.5) + 195.0) - 17.0, (float)((float)(v224 * 0.5) + 155.0) - 17.0); cocos2d::CCNode::convertToNodeSpace(v87, &v228, v88); (*(void (__fastcall **)(char *, __int64))(v86 + 184))(v85, v89); v225[0] = (__int64)Block; *(_OWORD *)Block = 0; v243 = 2; v244 = 15; strcpy((char *)Block, "L1"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v228, 0.0, -30.0); v91 = v90; v92 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v230 + 200LL))(v230); cocos2d::CCPoint::operator+(v92, &v227, v91); *(_QWORD *)(a1 + 704) = SetGroupIDLayer::createTextInput( a1, (unsigned int)&v227, 5, v93, (__int64)Block, 1112014848, 2); v225[0] = (__int64)Block; *(_OWORD *)Block = 0; v243 = 2; v244 = 15; strcpy((char *)Block, "L2"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v228, 0.0, -30.0); v95 = v94; v96 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v234 + 200LL))(v234); cocos2d::CCPoint::operator+(v96, &v227, v95); *(_QWORD *)(a1 + 712) = SetGroupIDLayer::createTextInput( a1, (unsigned int)&v227, 6, v97, (__int64)Block, 1112014848, 3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v225, -80.0, -31.0); v99 = v98; v100 = (*(__int64 (__fastcall **)(__int64 *))(*v231 + 200))(v231); cocos2d::CCPoint::operator+(v100, v241, v99); *(_OWORD *)Block = 0; v243 = 0; v244 = 15; LOBYTE(Block[0]) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v225, (const struct cocos2d::CCPoint *)v241); *(_QWORD *)(a1 + 856) = IDNameInput::create(a1, a1 + 544, 1, 1, (__int64)Block, v101, 1065353216, 6, 0, 0, 0); if ( v244 > 0xF ) { v102 = Block[0]; if ( v244 + 1 >= 0x1000 ) { v102 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v102 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v102); } *(_QWORD *)(a1 + 728) = *(_QWORD *)(*(_QWORD *)(a1 + 856) + 384LL); v225[0] = (__int64)operator new(0x2C8u); v103 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite(v225[0]); if ( v103 ) { if ( ButtonSprite::init_1( (__int64)v103, (__int64)"Add", 50, 0, 1060320051, 1, "goldFont.fnt", (__int64)"GJ_button_04.png", 1103626240) ) { cocos2d::CCObject::autorelease(v103); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v103 + 8LL))(v103, 1); LODWORD(v103) = 0; } } v104 = CCMenuItemSpriteExtra::create((int)v103, 0, a1, (__int64)SetGroupIDLayer::onAddGroup); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v104); v105 = *(_QWORD *)v104; v106 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 728) + 200LL))(*(_QWORD *)(a1 + 728)); v107 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v225, (float)((float)(v223 * 0.5) + 85.0) + (float)(int)(a2 != 0 ? 0xFFFFFFEC : 0), *(float *)(v106 + 4)); cocos2d::CCNode::convertToNodeSpace(v107, &v228, v108); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v105 + 184))(v104, v109); if ( a2 ) { v225[0] = (__int64)operator new(0x2C8u); v110 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite(v225[0]); if ( v110 ) { if ( ButtonSprite::init_1( (__int64)v110, (__int64)&word_140795C80, 50, 0, 1060320051, 0, "goldFont.fnt", (__int64)"GJ_button_04.png", 1103626240) ) { cocos2d::CCObject::autorelease(v110); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v110 + 8LL))(v110, 1); LODWORD(v110) = 0; } } v111 = CCMenuItemSpriteExtra::create((int)v110, 0, a1, (__int64)SetGroupIDLayer::onAddGroupParent); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v225, 60.0, 0.0); v113 = v112; v114 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v104 + 200LL))(v104); cocos2d::CCPoint::operator+(v114, &v227, v113); (*(void (__fastcall **)(cocos2d::CCObject *, void **))(*(_QWORD *)v111 + 184LL))(v111, &v227); } v225[0] = (__int64)Block; *(_OWORD *)Block = 0; v243 = 1; v244 = 15; LOWORD(Block[0]) = 90; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v228, 0.0, -30.0); v116 = v115; v117 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v240 + 200LL))(v240); cocos2d::CCPoint::operator+(v117, &v227, v116); *(_QWORD *)(a1 + 720) = SetGroupIDLayer::createTextInput( a1, (unsigned int)&v227, 7, v118, (__int64)Block, 1112014848, 2); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v225, 360.0, 68.0); *(_QWORD *)(a1 + 832) = ScrollableContentLayer::create(v119); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v225, 180.0, 34.0); v121 = v120; v122 = (*(__int64 (__fastcall **)(cocos2d::CCArray *))(*(_QWORD *)v232 + 200LL))(v232); cocos2d::CCPoint::operator-(v122, &v240, v121); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont **))(**(_QWORD **)(a1 + 832) + 184LL))( *(_QWORD *)(a1 + 832), &v240); (*(void (__fastcall **)(_QWORD, _QWORD, _QWORD))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 832), 0); v124 = cocos2d::CCMenu::create(v123); *(_QWORD *)(a1 + 840) = v124; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v124 + 288LL))(v124, &unk_14090B668); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 840) + 312LL))(*(_QWORD *)(a1 + 840), &unk_14090B680); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 840) + 184LL))(*(_QWORD *)(a1 + 840), &unk_14090B668); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 832) + 416LL) + 464LL))( *(_QWORD *)(*(_QWORD *)(a1 + 832) + 416LL), *(_QWORD *)(a1 + 840)); v232 = (cocos2d::CCArray *)cocos2d::CCArray::create(v125); for ( i = 0; i < 10; ++i ) { switch ( i ) { case 0: v127 = "B5"; v128 = -5; break; case 1: v127 = "B4"; v128 = -3; break; case 2: v127 = "B3"; v128 = -1; break; case 3: v127 = "B2"; v128 = 1; break; case 4: v127 = "B1"; v128 = 3; break; case 5: v127 = "T1"; v128 = 5; break; case 6: v127 = "T2"; v128 = 7; break; case 7: v127 = "T3"; v128 = 9; break; case 8: v127 = "T4"; v128 = 11; break; default: v127 = "Default"; v128 = 0; break; } v225[0] = (__int64)operator new(0x2C8u); v129 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite(v225[0]); if ( v129 ) { if ( ButtonSprite::init_1( (__int64)v129, (__int64)v127, 220, 0, 1050253722, 0, &qword_140704F78, (__int64)"GJ_button_04.png", 1103626240) ) { cocos2d::CCObject::autorelease(v129); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v129 + 8LL))(v129, 1); v129 = nullptr; } } cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 688), v129); v228 = operator new(0x208u); v130 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v228); if ( v130 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v130, (__int64 *)v129, 0, a1, (__int64)SetGroupIDLayer::onZLayer) ) { cocos2d::CCObject::autorelease(v130); goto LABEL_49; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v130 + 8LL))(v130, 1); } v130 = nullptr; LABEL_49: (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v130 + 64LL))(v130, v128); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v129 + 64LL))(v129, v128); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v130); v131 = v232; cocos2d::CCArray::addObject(v232, v130); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v225, 0.0, -28.0); v133 = v132; v134 = v226; v135 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v226 + 200LL))(v226); cocos2d::CCPoint::operator+(v135, &v232, v133); cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), &v228, &v232); GameToolbox::alignItemsHorisontally((__int64)v131, 5.0, v136, 0); SetGroupIDLayer::determineStartValues(a1); v137 = 40.0; if ( *(_DWORD *)(a1 + 788) == -100 ) { v138 = *(cocos2d::CCArray **)(a1 + 680); if ( v138 ) { if ( cocos2d::CCArray::count(v138) ) { v137 = 55.0; v139 = 0; while ( 1 ) { v140 = (__int16 *)"+"; if ( !v139 ) v140 = &word_14070EC0C; v245 = 0; v246 = 0; v247 = 0; v141 = -1; do ++v141; while ( *((_BYTE *)v140 + v141) ); sub_14003D230(&v245, v140, v141); v142 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_colorBtn_001.png"); v143 = (__int64 *)v142; v144 = &unk_140704680; if ( !v139 ) v144 = &unk_14070467C; (**((void (__fastcall ***)(__int64, void *))v142 + 40))((__int64)v142 + 320, v144); v145 = v143[40]; v146 = *(void (__fastcall **)(__int64 *, __int64))(v145 + 40); LOBYTE(v145) = 100; v146(v143 + 40, v145); v147 = (const char *)&v245; if ( v247 > 0xF ) v147 = (const char *)v245; v148 = cocos2d::CCLabelBMFont::create(v147, (const char *)&qword_140704F78); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCLabelBMFont *))(*v143 + 464))(v143, v148); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v148 + 160LL))(v148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v225, 2.0, 2.5); v150 = v149; cocos2d::CCNode::convertToNodeSpace(v143, &v228, &unk_14090B668); cocos2d::CCPoint::operator+(v151, &v226, v150); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, struct cocos2d::CCLabelBMFont **))(*(_QWORD *)v148 + 184LL))( v148, &v226); (*(void (__fastcall **)(__int64 *))(*v143 + 160))(v143); v240 = (struct cocos2d::CCLabelBMFont *)operator new(0x208u); v152 = CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v240); if ( !v152 ) goto LABEL_66; if ( !CCMenuItemSpriteExtra::init((__int64 *)v152, v143, 0, a1, (__int64)SetGroupIDLayer::onZLayerShift) ) break; cocos2d::CCObject::autorelease((cocos2d::CCObject *)v152); LABEL_67: (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v152); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v152 + 64LL))(v152, v139); v153 = 40; if ( !v139 ) v153 = -40; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v227, (float)v153, -2.0); v155 = v154; v156 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v134 + 200LL))(v134); cocos2d::CCPoint::operator+(v156, &v232, v155); v157 = *(_QWORD *)v152; cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), &v231, &v232); (*(void (__fastcall **)(__int64, __int64))(v157 + 184))(v152, v158); *(_DWORD *)(v152 + 372) = 0x40000000; if ( v247 > 0xF ) { v159 = (void *)v245; if ( v247 + 1 >= 0x1000 ) { v159 = *(void **)(v245 - 8); if ( (unsigned __int64)(v245 - (_QWORD)v159 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v159); } if ( (int)++v139 >= 2 ) goto LABEL_74; } (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v152 + 8LL))(v152, 1); LABEL_66: v152 = 0; goto LABEL_67; } } } LABEL_74: ParentMode = -1; v161 = *(_QWORD *)(a1 + 672); if ( v161 ) { ParentMode = GameObject::getParentMode(v161); goto LABEL_83; } v162 = *(cocos2d::CCArray **)(a1 + 680); if ( !v162 ) goto LABEL_85; v163 = 0; if ( !cocos2d::CCArray::count(v162) ) goto LABEL_85; do { v164 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 680), v163); v165 = GameObject::getParentMode((__int64)v164); if ( ParentMode == -1 ) { ParentMode = v165; } else if ( ParentMode != v165 ) { goto LABEL_85; } ++v163; } while ( v163 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 680)) ); LABEL_83: if ( ParentMode != -1 ) { v166 = cocos2d::CCString::createWithFormat("(%i)", ParentMode); CString = cocos2d::CCString::getCString(v166); } else { LABEL_85: CString = "(-)"; } v248 = 0; v249 = 0; v250 = 0; do ++v34; while ( CString[v34] ); sub_14003D230(&v248, CString, v34); v168 = (const char *)&v248; if ( v250 > 0xF ) v168 = (const char *)v248; v169 = cocos2d::CCLabelBMFont::create(v168, "chatFont.fnt"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v225, v137, -2.0); v171 = v170; v172 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v134 + 200LL))(v134); cocos2d::CCPoint::operator+(v172, &v226, v171); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, struct cocos2d::CCLabelBMFont **))(*(_QWORD *)v169 + 184LL))( v169, &v226); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v169); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v169 + 160LL))(v169); (**((void (__fastcall ***)(__int64, void *))v169 + 46))((__int64)v169 + 368, &unk_140704678); if ( *(_BYTE *)(a1 + 752) ) { cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v231, (float)(v223 * 0.5) - 125.0, (float)((float)(v224 * 0.5) - 155.0) + 25.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v234, (float)(v223 * 0.5) + 125.0, *((float *)&v231 + 1)); v225[0] = (__int64)&v235; v235 = 0; v236 = 3; v237 = 15; LODWORD(v235) = 4477519; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v228, (const struct cocos2d::CCPoint *)&v231); *(_QWORD *)(a1 + 736) = SetGroupIDLayer::createTextInput(a1, v173, 3, v174, (__int64)&v235, 1112014848, 2); SetGroupIDLayer::updateEditorOrderLabel(a1); v225[0] = (__int64)Block; *(_OWORD *)Block = 0; v243 = 2; v244 = 15; strcpy((char *)Block, "CH"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v228, (const struct cocos2d::CCPoint *)&v234); *(_QWORD *)(a1 + 744) = SetGroupIDLayer::createTextInput(a1, v175, 4, v176, (__int64)Block, 1112014848, 2); SetGroupIDLayer::updateOrderChannelLabel(a1); v177 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName("GJ_plus2Btn_001.png"); (*(void (__fastcall **)(__int64 *))(*v177 + 160))(v177); v225[0] = (__int64)operator new(0x208u); v178 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v225[0]); if ( v178 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v178, v177, 0, a1, (__int64)SetGroupIDLayer::onNextFreeOrderChannel) ) { cocos2d::CCObject::autorelease(v178); goto LABEL_96; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v178 + 8LL))(v178, 1); } v178 = nullptr; LABEL_96: (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v178); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v225, -75.0, 0.0); v180 = v179; cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), &v228, &v234); cocos2d::CCPoint::operator+(v181, &v226, v180); (*(void (__fastcall **)(cocos2d::CCObject *, struct cocos2d::CCLabelBMFont **))(*(_QWORD *)v178 + 184LL))( v178, &v226); } SetGroupIDLayer::updateGroupIDLabel(a1); SetGroupIDLayer::updateEditorLabel(a1); SetGroupIDLayer::updateEditorLabel2(a1); SetGroupIDLayer::updateZOrderLabel(a1); SetGroupIDLayer::updateZLayerButtons(a1); SetGroupIDLayer::updateGroupIDButtons(a1); v182 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v225, (float)(v223 * 0.5) + 217.0, (float)(v224 * 0.5) + 142.0); cocos2d::CCNode::convertToNodeSpace(v182, v233, v183); v225[0] = (__int64)operator new(0x2C8u); v184 = ButtonSprite::ButtonSprite(v225[0]); v185 = (cocos2d::CCObject *)v184; if ( v184 ) { if ( ButtonSprite::init_1( v184, (__int64)"Copy", 20, 0, 1056964608, 1, "goldFont.fnt", (__int64)"GJ_button_04.png", 1103626240) ) { cocos2d::CCObject::autorelease(v185); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v185 + 8LL))(v185, 1); v185 = nullptr; } } v225[0] = (__int64)operator new(0x2C8u); v186 = ButtonSprite::ButtonSprite(v225[0]); v187 = (cocos2d::CCObject *)v186; if ( v186 ) { if ( ButtonSprite::init_1( v186, (__int64)"Paste", 20, 0, 1056964608, 1, "goldFont.fnt", (__int64)"GJ_button_04.png", 1103626240) ) { cocos2d::CCObject::autorelease(v187); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v187 + 8LL))(v187, 1); v187 = nullptr; } } v225[0] = (__int64)operator new(0x2C8u); v188 = ButtonSprite::ButtonSprite(v225[0]); v189 = (cocos2d::CCObject *)v188; if ( v188 ) { if ( ButtonSprite::init_1( v188, (__int64)"Extra", 20, 0, 1056964608, 1, "goldFont.fnt", (__int64)"GJ_button_04.png", 1103626240) ) { cocos2d::CCObject::autorelease(v189); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v189 + 8LL))(v189, 1); v189 = nullptr; } } v225[0] = (__int64)operator new(0x2C8u); v190 = (__int64 *)ButtonSprite::ButtonSprite(v225[0]); v191 = (cocos2d::CCObject *)v190; v231 = v190; if ( v190 ) { if ( ButtonSprite::init_1( (__int64)v190, (__int64)"Extra2", 20, 0, 1056964608, 1, "goldFont.fnt", (__int64)"GJ_button_04.png", 1103626240) ) { cocos2d::CCObject::autorelease(v191); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v191 + 8LL))(v191, 1); v231 = nullptr; } } v225[0] = (__int64)operator new(0x2C8u); v192 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite(v225[0]); if ( v192 ) { if ( ButtonSprite::init_1( (__int64)v192, (__int64)"Anim", 20, 0, 1056964608, 1, "goldFont.fnt", (__int64)"GJ_button_04.png", 1103626240) ) { cocos2d::CCObject::autorelease(v192); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v192 + 8LL))(v192, 1); v192 = nullptr; } } v225[0] = (__int64)operator new(0x208u); v193 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v225[0]); if ( v193 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v193, (__int64 *)v185, 0, a1, (__int64)SetGroupIDLayer::onCopy) ) { cocos2d::CCObject::autorelease(v193); goto LABEL_122; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v193 + 8LL))(v193, 1); } v193 = nullptr; LABEL_122: v225[0] = (__int64)operator new(0x208u); v194 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v225[0]); if ( v194 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v194, (__int64 *)v187, 0, a1, (__int64)SetGroupIDLayer::onPaste) ) { cocos2d::CCObject::autorelease(v194); goto LABEL_127; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v194 + 8LL))(v194, 1); } v194 = nullptr; LABEL_127: v225[0] = (__int64)operator new(0x208u); v195 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v225[0]); if ( v195 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v195, (__int64 *)v189, 0, a1, (__int64)SetGroupIDLayer::onExtra) ) { cocos2d::CCObject::autorelease(v195); goto LABEL_132; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v195 + 8LL))(v195, 1); } v195 = nullptr; LABEL_132: v225[0] = (__int64)operator new(0x208u); v196 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v225[0]); if ( v196 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v196, v231, 0, a1, (__int64)SetGroupIDLayer::onExtra2) ) { cocos2d::CCObject::autorelease(v196); goto LABEL_137; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v196 + 8LL))(v196, 1); } v196 = nullptr; LABEL_137: v225[0] = (__int64)operator new(0x208u); v197 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v225[0]); if ( v197 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v197, (__int64 *)v192, 0, a1, (__int64)SetGroupIDLayer::onAnim) ) { cocos2d::CCObject::autorelease(v197); goto LABEL_142; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v197 + 8LL))(v197, 1); } v197 = nullptr; LABEL_142: v198 = v229; if ( v229 ) { (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v193); (*(void (__fastcall **)(cocos2d::CCObject *, char *))(*(_QWORD *)v193 + 184LL))(v193, v233); goto LABEL_147; } v199 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v225[0] = (__int64)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v225[0]); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v199 = qword_14090BFD0; } if ( *(_QWORD *)(*(_QWORD *)(v199 + 568) + 14776LL) ) { LABEL_147: (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v194); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v230, (const struct cocos2d::CCPoint *)v233); if ( v198 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v225, 0.0, -31.0); cocos2d::CCPoint::operator+(&v230, &v229, v200); cocos2d::CCPoint::operator=(&v230, &v229); } (*(void (__fastcall **)(cocos2d::CCObject *, struct cocos2d::CCLabelBMFont **))(*(_QWORD *)v194 + 184LL))( v194, &v230); } (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v195); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v225, 0.0, -62.0); cocos2d::CCPoint::operator+(v233, &v229, v201); (*(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v195 + 184LL))(v195, &v229); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v196); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v228, 0.0, -93.0); cocos2d::CCPoint::operator+(v233, &v229, v202); (*(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v196 + 184LL))(v196, &v229); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v197); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v226, 0.0, -124.0); cocos2d::CCPoint::operator+(v233, &v229, v203); (*(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v197 + 184LL))(v197, &v229); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v239, 0.0, 2.0); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v238, (float)(v223 * 0.5) + 217.0, (float)((float)(v224 * 0.5) + 142.0) - 164.0); if ( v198 ) { if ( *(_DWORD *)(v198 + 1256) == 1 ) { if ( !qword_14090BFD0 ) { v225[0] = (__int64)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v225[0]); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); } if ( *(_QWORD *)(qword_14090BFD0 + 568) ) { v225[0] = (__int64)&v245; v246 = 7; v247 = 15; v245 = 0x77656976657250uLL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v228, 0.0, -0.0); cocos2d::CCPoint::operator+(v238, &v229, v204); v205 = *(_BYTE *)(v198 + 1784); v206 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v226, (const struct cocos2d::CCPoint *)v239); GameToolbox::createToggleButton( (const char *)&v245, (__int64)SetGroupIDLayer::onToggleGuide, v205, v206, (__int64)&v229, a1, a1, 0.69999999, 0.30000001, 80.0, v207, "goldFont.fnt", 1, 0, nullptr); v208 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v225[0] = (__int64)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v225[0]); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v208 = qword_14090BFD0; } v209 = *(_QWORD *)(*(_QWORD *)(v208 + 568) + 15520LL); v225[0] = (__int64)Block; Block[1] = nullptr; v243 = 8; v244 = 15; Block[0] = *(void **)"Playback"; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v228, 0.0, -38.0); cocos2d::CCPoint::operator+(v238, &v229, v210); v211 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v226, (const struct cocos2d::CCPoint *)v239); GameToolbox::createToggleButton( (const char *)Block, (__int64)SetGroupIDLayer::onToggleSelectedOrder, v209 == v198, v211, (__int64)&v229, a1, a1, 0.69999999, 0.30000001, 80.0, v212, "goldFont.fnt", 1, 0, nullptr); v213 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v225[0] = (__int64)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v225[0]); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v213 = qword_14090BFD0; } v214 = *(_QWORD *)(*(_QWORD *)(v213 + 568) + 15536LL); v225[0] = (__int64)&v235; v236 = 9; v237 = 15; *(_QWORD *)&v235 = *(_QWORD *)"Trace Out"; *((_QWORD *)&v235 + 1) = (unsigned __int8)aTraceOut[8]; BYTE9(v235) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v228, 0.0, -76.0); cocos2d::CCPoint::operator+(v238, &v229, v215); v216 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v226, (const struct cocos2d::CCPoint *)v239); GameToolbox::createToggleButton( (const char *)&v235, (__int64)SetGroupIDLayer::onToggleTraceOut, v214 == v198, v216, (__int64)&v229, a1, a1, 0.69999999, 0.30000001, 80.0, v217, "goldFont.fnt", 1, 0, nullptr); } } if ( !qword_14090BFD0 ) { v225[0] = (__int64)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v225[0]); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); } v218 = *(_QWORD *)(qword_14090BFD0 + 568); if ( v218 ) { v219 = *(_QWORD *)(v218 + 15528); v225[0] = (__int64)Block; Block[1] = nullptr; v243 = 8; v244 = 15; Block[0] = *(void **)"Trace In"; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v228, 0.0, -114.0); cocos2d::CCPoint::operator+(v238, &v229, v220); v221 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v226, (const struct cocos2d::CCPoint *)v239); GameToolbox::createToggleButton( (const char *)Block, (__int64)SetGroupIDLayer::onToggleTraceIn, v219 == v198, v221, (__int64)&v229, a1, a1, 0.69999999, 0.30000001, 80.0, v222, "goldFont.fnt", 1, 0, nullptr); } } *(_BYTE *)(a1 + 797) = 0; sub_14003D310((__int64)&v248); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source