// // SetGroupIDLayer::init from 0x1403f85e0 to 0x1403fa9ec (9228 bytes) // // 2 xrefs: // > EditorUI::editGroup @ 0x14011f3ec // > @ 0x1406d8384 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=29 bool SetGroupIDLayer::init(SetGroupIDLayer *a1, GameObject *a2, cocos2d::CCArray *a3) { bool result; // al __int64 v7; // rcx cocos2d::CCArray *v8; // rax __int64 v9; // rcx cocos2d::CCDictionary *v10; // rax _BOOL8 v11; // rdx __int64 v12; // rcx __int64 v13; // rax cocos2d::CCTouchDispatcher *v14; // rax _BOOL8 v15; // rdx __int64 v16; // rcx cocos2d::CCDirector *v17; // rax cocos2d::CCLayer *v18; // rax __int64 v19; // rdx __int64 v20; // rcx cocos2d::CCArray *v21; // rax __int64 v22; // rax struct cocos2d::CCRect *v23; // rax struct cocos2d::extension::CCScale9Sprite *v24; // rdi cocos2d::extension::CCScale9Sprite_vtbl *v25; // rbx const cocos2d::CCSize *v26; // rax float v27; // xmm0_4 cocos2d::extension::CCScale9Sprite_vtbl *v28; // rbx const cocos2d::CCPoint *v29; // rax struct cocos2d::CCRect *v30; // rax struct cocos2d::extension::CCScale9Sprite *v31; // rdi __int64 v32; // rdx cocos2d::extension::CCScale9Sprite_vtbl *v33; // rbx const cocos2d::CCSize *v34; // rax size_t v35; // r12 float v36; // xmm0_4 cocos2d::extension::CCScale9Sprite_vtbl *v37; // rbx double v38; // xmm0_8 const cocos2d::CCPoint *v39; // rax struct cocos2d::CCLabelBMFont *v40; // r15 cocos2d::CCLabelBMFont_vtbl *v41; // rbx const cocos2d::CCPoint *v42; // rax double v43; // xmm0_8 struct cocos2d::CCLabelBMFont *v44; // rdi cocos2d::CCLabelBMFont_vtbl *v45; // rbx const cocos2d::CCPoint *v46; // rax double v47; // xmm0_8 struct cocos2d::CCLabelBMFont *v48; // rdi cocos2d::CCLabelBMFont_vtbl *v49; // rbx const cocos2d::CCPoint *v50; // rax double v51; // xmm0_8 cocos2d::CCArray *v52; // r13 __int64 v53; // rax double v54; // xmm0_8 struct cocos2d::CCLabelBMFont *v55; // r13 __int64 v56; // rax __int64 v57; // rcx cocos2d::CCMenu *v58; // rax ButtonSprite *v59; // rbx CCMenuItemSpriteExtra *v60; // rax float v61; // xmm0_4 cocos2d::CCMenu_vtbl *v62; // rbx const cocos2d::CCPoint *v63; // rax struct cocos2d::CCSprite *v64; // rbx CCMenuItemSpriteExtra *v65; // rdi float v66; // xmm0_4 struct cocos2d::CCPoint v67; // rax struct cocos2d::CCSprite *v68; // rbx CCMenuItemSpriteExtra *v69; // rdi float v70; // xmm0_4 struct cocos2d::CCPoint v71; // rax struct cocos2d::CCSprite *v72; // rbx CCMenuItemSpriteExtra *v73; // rdi float v74; // xmm0_4 struct cocos2d::CCPoint v75; // rax _QWORD *v76; // rax _OWORD *v77; // rcx const char *v78; // rdx __int64 v79; // r8 char *v80; // rdi float v81; // xmm0_4 __int64 v82; // rbx struct cocos2d::CCPoint v83; // rax __int64 v84; // rax int v85; // r9d __int64 v86; // rax double v87; // xmm0_8 int v88; // r9d const cocos2d::CCPoint *v89; // rax const char *v90; // rdx size_t v91; // r8 double v92; // xmm0_8 int v93; // eax int v94; // r9d ButtonSprite *v95; // rbx CCMenuItemSpriteExtra *v96; // rdi CCMenuItemSpriteExtra_vtbl *v97; // rbx double v98; // xmm0_8 struct cocos2d::CCPoint v99; // rax ButtonSprite *v100; // rbx CCMenuItemSpriteExtra *v101; // r15 CCMenuItemSpriteExtra_vtbl *v102; // rbx struct cocos2d::CCPoint v103; // rax ButtonSprite *v104; // rbx CCMenuItemSpriteExtra *v105; // rdi float v106; // xmm0_4 __int64 v107; // rax __int64 v108; // rax double v109; // xmm0_8 int v110; // r9d __int64 v111; // rcx int i; // r15d const char *v113; // rbx unsigned int v114; // r14d ButtonSprite *v115; // rdi CCMenuItemSpriteExtra *v116; // rbx cocos2d::CCArray *v117; // rdi cocos2d::CCPoint v118; // r13 __int64 v119; // rax struct cocos2d::CCPoint v120; // rax float v121; // xmm14_4 cocos2d::CCArray *m_targetObjects; // rcx int v123; // r15d __int16 *v124; // rdx size_t v125; // r8 struct cocos2d::CCSprite *v126; // rax cocos2d::CCNode *v127; // r14 const cocos2d::ccColor3B *v128; // rdx DS_Dictionary *v129; // rdx const char *v130; // rcx struct cocos2d::CCLabelBMFont *v131; // rdi float v132; // xmm0_4 struct cocos2d::CCPoint v133; // rax double v134; // xmm0_8 CCMenuItemSpriteExtra *v135; // rdi int v136; // eax __int64 v137; // rax CCMenuItemSpriteExtra_vtbl *v138; // rbx struct cocos2d::CCPoint v139; // rax int ParentMode; // edi GameObject *m_targetObject; // rcx cocos2d::CCArray *v142; // rcx unsigned int v143; // ebx GameObject *v144; // rax int v145; // eax cocos2d::CCString *v146; // rax const char *CString; // rax void **v148; // rcx struct cocos2d::CCLabelBMFont *v149; // rdi __int64 v150; // rax double v151; // xmm0_8 double v152; // xmm0_8 int v153; // eax int v154; // r9d int v155; // eax int v156; // r9d struct cocos2d::CCSprite *v157; // rbx CCMenuItemSpriteExtra *v158; // rdi float v159; // xmm0_4 struct cocos2d::CCPoint v160; // rax ButtonSprite *v161; // rax cocos2d::CCNode *v162; // r12 ButtonSprite *v163; // rax cocos2d::CCNode *v164; // r14 ButtonSprite *v165; // rax cocos2d::CCNode *v166; // r15 ButtonSprite *v167; // rax cocos2d::CCObject *v168; // rbx ButtonSprite *v169; // r13 CCMenuItemSpriteExtra *v170; // rdi CCMenuItemSpriteExtra *v171; // rbx CCMenuItemSpriteExtra *v172; // r12 CCMenuItemSpriteExtra *v173; // r15 CCMenuItemSpriteExtra *v174; // r14 GameObject *v175; // r13 __int64 v176; // rax double v177; // xmm0_8 float v178; // xmm0_4 float v179; // xmm0_4 float v180; // xmm0_4 float v181; // xmm0_4 double v182; // xmm0_8 double v183; // xmm0_8 char x_low; // bl float *v185; // rax __int64 v186; // rax GameObject *v187; // rbx float *v188; // rax __int64 v189; // rax GameObject *v190; // rbx float *v191; // rax __int64 v192; // rbx GameObject *v193; // rbx float *v194; // rax void *v195; // rcx cocos2d::CCRect v196; // [rsp+88h] [rbp-80h] BYREF cocos2d::CCPoint v197; // [rsp+98h] [rbp-70h] BYREF float v198; // [rsp+A0h] [rbp-68h] _QWORD *v199; // [rsp+A8h] [rbp-60h] BYREF CCMenuItemSpriteExtra *v200; // [rsp+B0h] [rbp-58h] BYREF _QWORD *v201; // [rsp+B8h] [rbp-50h] BYREF GameObject *v202; // [rsp+C0h] [rbp-48h] BYREF __int128 v203; // [rsp+C8h] [rbp-40h] BYREF __int64 v204; // [rsp+D8h] [rbp-30h] __int64 v205; // [rsp+E0h] [rbp-28h] cocos2d::CCNode *v206; // [rsp+E8h] [rbp-20h] cocos2d::CCArray *v207; // [rsp+F0h] [rbp-18h] BYREF struct cocos2d::CCPoint v208; // [rsp+F8h] [rbp-10h] BYREF char v209[8]; // [rsp+100h] [rbp-8h] BYREF char v210[8]; // [rsp+110h] [rbp+8h] BYREF __int128 v211; // [rsp+118h] [rbp+10h] BYREF __int64 v212; // [rsp+128h] [rbp+20h] unsigned __int64 v213; // [rsp+130h] [rbp+28h] void *Block[2]; // [rsp+138h] [rbp+30h] BYREF __int64 v215; // [rsp+148h] [rbp+40h] unsigned __int64 v216; // [rsp+150h] [rbp+48h] v202 = a2; LODWORD(v201) = 1258291200; result = cocos2d::CCLayerColor::initWithColor(a1, (const struct cocos2d::_ccColor4B *)&v201); if ( !result ) return result; a1->m_editorLayerEdited = 1; a1->m_noElasticity = 1; if ( a2 ) { a1->m_targetObject = a2; } else { a1->m_targetObjects = a3; cocos2d::CCObject::retain(a3); } v8 = (cocos2d::CCArray *)cocos2d::CCArray::create(v7); a1->m_zLayerButtons = v8; cocos2d::CCObject::retain(v8); v10 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create(v9); a1->m_parentGroups = v10; cocos2d::CCObject::retain(v10); if ( !a1->m_forcePrioRegistered ) { a1->m_forcePrioRegistered = 1; v13 = cocos2d::CCDirector::sharedDirector(v12); v14 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 144LL))(v13); cocos2d::CCTouchDispatcher::registerForcePrio(v14, a1, 2); } LOBYTE(v11) = 1; a1->setTouchEnabled(a1, v11); LOBYTE(v15) = 1; a1->setKeypadEnabled(a1, v15); v17 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v16); cocos2d::CCDirector::getWinSize(v17); v18 = (cocos2d::CCLayer *)cocos2d::CCLayer::create(); a1->m_mainLayer = v18; a1->addChild_1(a1, v18); LOBYTE(v19) = -56; a1->setOpacity(&a1->cocos2d::CCRGBAProtocol, v19); v21 = (cocos2d::CCArray *)cocos2d::CCArray::create(v20); a1->m_groupIDObjects = v21; cocos2d::CCObject::retain(v21); v22 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v199 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v199); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v22 = qword_1406C2ED8; } a1->m_groupIDValue = *(_DWORD *)(v22 + 956); cocos2d::CCRect::CCRect(&v196, 0.0, 0.0, 80.0, 80.0); v24 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v23); v25 = v24->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v199, 390.0, 310.0); v25->setContentSize(v24, v26); v27 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v24, 4294967294LL); v28 = v24->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(v27, v198 * 0.5); v28->setPosition_0(v24, v29); cocos2d::CCRect::CCRect(&v196, 0.0, 0.0, 80.0, 80.0); v31 = cocos2d::extension::CCScale9Sprite::create("square02_001.png", v30); LOBYTE(v32) = 50; v31->setOpacity(&v31->cocos2d::CCRGBAProtocol, v32); v33 = v31->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v199, 360.0, 68.0); v33->setContentSize(v31, v34); v35 = -1; v36 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v31, 0xFFFFFFFFLL); v37 = v31->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v38 = cocos2d::CCPoint::CCPoint(v36, v198 * 0.5); v37->setPosition_0(v31, v39); v40 = cocos2d::CCLabelBMFont::create("Editor L", "goldFont.fnt"); v41 = v40->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(*(float *)&v38, (float)(v198 * 0.5) - 125.0); v41->setPosition_0(v40, v42); v43 = ((double (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild_1)( a1->m_mainLayer, v40); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v40->setScale_0)(v40); v44 = cocos2d::CCLabelBMFont::create("Editor L2", "goldFont.fnt"); v201 = &v44->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v45 = v44->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(*(float *)&v43, v198 * 0.5); v45->setPosition_0(v44, v46); v47 = ((double (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild_1)( a1->m_mainLayer, v44); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v44->setScale_0)(v44); v48 = cocos2d::CCLabelBMFont::create("Add Group ID", "goldFont.fnt"); v206 = v48; v49 = v48->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v40->getPosition_0(v40); cocos2d::CCPoint::CCPoint(*(float *)&v47, v198 * 0.5); v49->setPosition_0(v48, v50); v51 = ((double (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild_1)( a1->m_mainLayer, v48); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v48->setScale_0)(v48); v52 = (cocos2d::CCArray *)cocos2d::CCLabelBMFont::create("Z Order", "goldFont.fnt"); v207 = v52; cocos2d::CCPoint::CCPoint(*(float *)&v51, 250.0); v53 = (__int64)v40->getPosition_0(v40); cocos2d::CCPoint::operator+(v53, &v200); v52->__vftable[2].encodeWithCoder(v52, (DS_Dictionary *)&v200); v54 = ((double (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCArray *))a1->m_mainLayer->addChild_1)( a1->m_mainLayer, v52); ((void (__fastcall *)(cocos2d::CCArray *))v52->__vftable[2].isEqual)(v52); v55 = cocos2d::CCLabelBMFont::create("Z Layer", "goldFont.fnt"); v199 = &v55->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(*(float *)&v54, 0.0); v56 = (__int64)v48->getPosition_0(v48); cocos2d::CCPoint::operator+(v56, &v200); v55->setPosition_0(v55, (const cocos2d::CCPoint *)&v200); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v55); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v55->setScale_0)(v55); v58 = (cocos2d::CCMenu *)cocos2d::CCMenu::create(v57); a1->m_buttonMenu = v58; a1->m_mainLayer->addChild_0(a1->m_mainLayer, v58, 10); a1->m_joystickConnected = -1; v197 = (cocos2d::CCPoint)operator new(0x2C0u); v59 = ButtonSprite::ButtonSprite(*(ButtonSprite **)&v197); if ( v59 ) { if ( ButtonSprite::init_1(v59, "OK", 40, 0, 0.80000001, 1, "goldFont.fnt", "GJ_button_01.png", 30.0) ) { cocos2d::CCObject::autorelease(v59); } else { ((void (__fastcall *)(ButtonSprite *, __int64))v59->~ButtonSprite)(v59, 1); v59 = nullptr; } } v60 = CCMenuItemSpriteExtra::create(v59, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetGroupIDLayer::onClose); v61 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, v60); v62 = a1->m_buttonMenu->FLAlertLayer::__vftable; cocos2d::CCPoint::CCPoint(v61, v198 * 0.5); v62->setPosition_0(a1->m_buttonMenu, v63); v64 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_plus2Btn_001.png"); ((void (__fastcall *)(struct cocos2d::CCSprite *))v64->setScale_0)(v64); v65 = CCMenuItemSpriteExtra::create( v64, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetGroupIDLayer::onNextFreeEditorLayer1); v66 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, v65); cocos2d::CCPoint::CCPoint(v66, 50.0); v40->getPosition_0(v40); v67 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v196.origin); ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator+)(v67, &v200); v65->setPosition_0(v65, (const cocos2d::CCPoint *)&v200); v68 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_plus2Btn_001.png"); ((void (__fastcall *)(struct cocos2d::CCSprite *))v68->setScale_0)(v68); v69 = CCMenuItemSpriteExtra::create( v68, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetGroupIDLayer::onNextFreeEditorLayer2); v70 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, v69); cocos2d::CCPoint::CCPoint(v70, 54.0); (*(void (__fastcall **)(_QWORD *))(*v201 + 200LL))(v201); v71 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v197); ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator+)(v71, &v200); v69->setPosition_0(v69, (const cocos2d::CCPoint *)&v200); v72 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_optionsBtn_001.png"); ((void (__fastcall *)(struct cocos2d::CCSprite *))v72->setScale_0)(v72); v73 = CCMenuItemSpriteExtra::create(v72, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetGroupIDLayer::onGroupIDOptions); v74 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, v73); cocos2d::CCPoint::CCPoint(v74, 73.0); v206->getPosition_0(v206); v75 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v197); ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator+)(v75, &v200); v73->setPosition_0(v73, (const cocos2d::CCPoint *)&v200); v196.origin = (cocos2d::CCPoint)&v211; v211 = 0; v212 = 0; v213 = 15; v76 = sub_14003AA10(0x270u); *(_QWORD *)&v211 = v76; v212 = 608; v213 = 623; v77 = v76; v78 = "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."; v79 = 4; do { *v77 = *(_OWORD *)v78; v77[1] = *((_OWORD *)v78 + 1); v77[2] = *((_OWORD *)v78 + 2); v77[3] = *((_OWORD *)v78 + 3); v77[4] = *((_OWORD *)v78 + 4); v77[5] = *((_OWORD *)v78 + 5); v77[6] = *((_OWORD *)v78 + 6); v77 += 8; *(v77 - 1) = *((_OWORD *)v78 + 7); v78 += 128; --v79; } while ( v79 ); *v77 = *(_OWORD *)v78; v77[1] = *((_OWORD *)v78 + 1); v77[2] = *((_OWORD *)v78 + 2); v77[3] = *((_OWORD *)v78 + 3); v77[4] = *((_OWORD *)v78 + 4); v77[5] = *((_OWORD *)v78 + 5); *((_BYTE *)v76 + 608) = 0; v203 = 0; v204 = 4; v205 = 15; strcpy((char *)&v203, "Help"); v80 = InfoAlertButton::create((__int64)&v203, (__int64)&v211); *((_DWORD *)v80 + 146) = 1063675494; v81 = ((float (__fastcall *)(cocos2d::CCMenu *, char *))a1->m_buttonMenu->addChild_1)(a1->m_buttonMenu, v80); v82 = *(_QWORD *)v80; cocos2d::CCPoint::CCPoint(v81, (float)((float)(v198 * 0.5) + 195.0) - 17.0); v83 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v197); (*(void (__fastcall **)(char *, struct cocos2d::CCPoint))(v82 + 184))(v80, v83); v196.origin = (cocos2d::CCPoint)&v203; v203 = 0; v204 = 2; v205 = 15; strcpy((char *)&v203, "L1"); cocos2d::CCPoint::CCPoint(0.0, 0.0); v84 = (__int64)v40->getPosition_0(v40); cocos2d::CCPoint::operator+(v84, &v200); a1->m_editorLayerInput = (CCTextInputNode *)SetGroupIDLayer::createTextInput( (_DWORD)a1, (unsigned int)&v200, 5, v85, (__int64)&v203, 1112014848, 2); v196.origin = (cocos2d::CCPoint)&v203; v203 = 0; v204 = 2; v205 = 15; strcpy((char *)&v203, "L2"); cocos2d::CCPoint::CCPoint(0.0, 0.0); v86 = (*(__int64 (__fastcall **)(_QWORD *))(*v201 + 200LL))(v201); v87 = cocos2d::CCPoint::operator+(v86, &v200); a1->m_editorLayer2Input = (CCTextInputNode *)SetGroupIDLayer::createTextInput( (_DWORD)a1, (unsigned int)&v200, 6, v88, (__int64)&v203, 1112014848, 3); cocos2d::CCPoint::CCPoint(*(float *)&v87, 0.0); v89 = v206->getPosition_0(v206); cocos2d::CCPoint::operator+(v89, v210); v196.origin = (cocos2d::CCPoint)&v203; v90 = "Num"; if ( a1->m_groupIDValue == -1 ) v90 = "Mixed"; v203 = 0; v204 = 0; v205 = 0; v91 = -1; do ++v91; while ( v90[v91] ); sub_14003A930(&v203, v90, v91); v92 = cocos2d::CCPoint::CCPoint(&v197); a1->m_groupIDInput = (CCTextInputNode *)SetGroupIDLayer::createTextInput( (_DWORD)a1, v93, 1, v94, (__int64)&v203, 1112014848, 1); v196.origin = (cocos2d::CCPoint)operator new(0x2C0u); v95 = ButtonSprite::ButtonSprite(*(ButtonSprite **)&v196.origin); if ( v95 ) { if ( ButtonSprite::init_1(v95, "Next Free", 50, 0, 0.69999999, 1, "goldFont.fnt", "GJ_button_04.png", 25.0) ) { cocos2d::CCObject::autorelease(v95); } else { ((void (__fastcall *)(ButtonSprite *, __int64))v95->~ButtonSprite)(v95, 1); v95 = nullptr; } } v96 = CCMenuItemSpriteExtra::create(v95, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetGroupIDLayer::onNextGroupID1); a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v96); v97 = v96->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_groupIDInput->getPosition_0(a1->m_groupIDInput); v98 = cocos2d::CCPoint::CCPoint(*(float *)&v92, (float)(v198 * 0.5) - 125.0); v99 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v197); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v97->setPosition_0)(v96, v99); v196.origin = (cocos2d::CCPoint)operator new(0x2C0u); v100 = ButtonSprite::ButtonSprite(*(ButtonSprite **)&v196.origin); if ( v100 ) { if ( ButtonSprite::init_1(v100, "Add", 50, 0, 0.69999999, 1, "goldFont.fnt", "GJ_button_04.png", 25.0) ) { cocos2d::CCObject::autorelease(v100); } else { ((void (__fastcall *)(ButtonSprite *, __int64))v100->~ButtonSprite)(v100, 1); v100 = nullptr; } } v101 = CCMenuItemSpriteExtra::create(v100, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetGroupIDLayer::onAddGroup); a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v101); v102 = v101->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_groupIDInput->getPosition_0(a1->m_groupIDInput); cocos2d::CCPoint::CCPoint( *(float *)&v98, (float)((float)(v198 * 0.5) + 125.0) + (float)(int)(a2 != nullptr ? 0xFFFFFFEC : 0)); v103 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v197); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v102->setPosition_0)(v101, v103); if ( a2 ) { v196.origin = (cocos2d::CCPoint)operator new(0x2C0u); v104 = ButtonSprite::ButtonSprite(*(ButtonSprite **)&v196.origin); if ( v104 ) { if ( ButtonSprite::init_1(v104, "P", 50, 0, 0.69999999, 0, "goldFont.fnt", "GJ_button_04.png", 25.0) ) { cocos2d::CCObject::autorelease(v104); } else { ((void (__fastcall *)(ButtonSprite *, __int64))v104->~ButtonSprite)(v104, 1); v104 = nullptr; } } v105 = CCMenuItemSpriteExtra::create( v104, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetGroupIDLayer::onAddGroupParent); v106 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, v105); cocos2d::CCPoint::CCPoint(v106, 60.0); v107 = (__int64)v101->getPosition_0(v101); cocos2d::CCPoint::operator+(v107, &v200); v105->setPosition_0(v105, (const cocos2d::CCPoint *)&v200); } v196.origin = (cocos2d::CCPoint)&v203; v203 = 0; v204 = 1; v205 = 15; LOWORD(v203) = (unsigned __int8)aZ[0]; cocos2d::CCPoint::CCPoint(0.0, 0.0); v108 = ((__int64 (__fastcall *)(cocos2d::CCArray *))v207->__vftable[2].getTag)(v207); v109 = cocos2d::CCPoint::operator+(v108, &v200); a1->m_zOrderInput = (CCTextInputNode *)SetGroupIDLayer::createTextInput( (_DWORD)a1, (unsigned int)&v200, 7, v110, (__int64)&v203, 1112014848, 2); v207 = (cocos2d::CCArray *)cocos2d::CCArray::create(v111); for ( i = 0; i < 10; ++i ) { switch ( i ) { case 0: v113 = "B5"; v114 = -5; break; case 1: v113 = "B4"; v114 = -3; break; case 2: v113 = "B3"; v114 = -1; break; case 3: v113 = "B2"; v114 = 1; break; case 4: v113 = "B1"; v114 = 3; break; case 5: v113 = "T1"; v114 = 5; break; case 6: v113 = "T2"; v114 = 7; break; case 7: v113 = "T3"; v114 = 9; break; case 8: v113 = "T4"; v114 = 11; break; default: v113 = "Default"; v114 = 0; break; } v196.origin = (cocos2d::CCPoint)operator new(0x2C0u); v115 = ButtonSprite::ButtonSprite(*(ButtonSprite **)&v196.origin); if ( v115 ) { if ( ButtonSprite::init_1( v115, v113, 220, 0, 0.30000001, 0, (const char *)&qword_14052A4D8, "GJ_button_04.png", 25.0) ) { cocos2d::CCObject::autorelease(v115); } else { ((void (__fastcall *)(ButtonSprite *, __int64))v115->~ButtonSprite)(v115, 1); v115 = nullptr; } } cocos2d::CCArray::addObject(a1->m_zLayerButtons, v115); v197 = (cocos2d::CCPoint)operator new(0x208u); v116 = CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(*(CCMenuItemSpriteExtra **)&v197); if ( v116 ) { if ( CCMenuItemSpriteExtra::init(v116, v115, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetGroupIDLayer::onZLayer) ) { cocos2d::CCObject::autorelease(v116); goto LABEL_54; } ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))v116->~CCMenuItemSpriteExtra)(v116, 1); } v116 = nullptr; LABEL_54: v116->setTag(v116, v114); v115->setTag(v115, v114); a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v116); v117 = v207; cocos2d::CCArray::addObject(v207, v116); } cocos2d::CCPoint::CCPoint(*(float *)&v109, 0.0); v118 = (cocos2d::CCPoint)v199; v119 = (*(__int64 (__fastcall **)(_QWORD *))(*v199 + 200LL))(v199); cocos2d::CCPoint::operator+(v119, &v207); v120 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v197); GameToolbox::alignItemsHorisontally(v117, 5.0, v120, 0); SetGroupIDLayer::determineStartValues(a1); v121 = 40.0; if ( a1->m_zLayerValue == -100 ) { m_targetObjects = a1->m_targetObjects; if ( m_targetObjects ) { if ( cocos2d::CCArray::count(m_targetObjects) ) { v121 = 55.0; v123 = 0; while ( 1 ) { v124 = (__int16 *)"+"; if ( !v123 ) v124 = &word_140533640; v211 = 0; v212 = 0; v213 = 0; v125 = -1; do ++v125; while ( *((_BYTE *)v124 + v125) ); sub_14003A930(&v211, v124, v125); v126 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_colorBtn_001.png"); v127 = v126; v128 = (const cocos2d::ccColor3B *)&unk_140529C34; if ( !v123 ) v128 = (const cocos2d::ccColor3B *)&unk_140529C30; v126->setColor(&v126->cocos2d::CCRGBAProtocol, v128); LOBYTE(v129) = 100; v127[1].encodeWithCoder(v127 + 1, v129); v130 = (const char *)&v211; if ( v213 > 0xF ) v130 = (const char *)v211; v131 = cocos2d::CCLabelBMFont::create(v130, (const char *)&qword_14052A4D8); v127->addChild_1(v127, v131); v132 = ((float (__fastcall *)(struct cocos2d::CCLabelBMFont *))v131->setScale_0)(v131); cocos2d::CCPoint::CCPoint(v132, 2.0); v133 = cocos2d::CCNode::convertToNodeSpace(v127, &v197); ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator+)(v133, &v199); v134 = ((double (__fastcall *)(struct cocos2d::CCLabelBMFont *, _QWORD **))v131->setPosition_0)(v131, &v199); ((void (__fastcall *)(cocos2d::CCNode *))v127->setScale_0)(v127); v200 = (CCMenuItemSpriteExtra *)operator new(0x208u); v135 = CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v200); if ( !v135 ) goto LABEL_71; if ( !CCMenuItemSpriteExtra::init( v135, v127, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetGroupIDLayer::onZLayerShift) ) break; cocos2d::CCObject::autorelease(v135); LABEL_72: a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v135); v135->setTag(v135, v123); v136 = 40; if ( !v123 ) v136 = -40; cocos2d::CCPoint::CCPoint(*(float *)&v134, (float)v136); v137 = (*(__int64 (__fastcall **)(cocos2d::CCPoint))(**(_QWORD **)&v118 + 200LL))(v118); cocos2d::CCPoint::operator+(v137, &v207); v138 = v135->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v139 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, (const struct cocos2d::CCPoint *)&v201); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v138->setPosition_0)(v135, v139); HIDWORD(v135->m_pfnSelector.adj) = 0x40000000; sub_14003A830((__int64)&v211); if ( ++v123 >= 2 ) goto LABEL_75; } ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))v135->~CCMenuItemSpriteExtra)(v135, 1); LABEL_71: v135 = nullptr; goto LABEL_72; } } } LABEL_75: ParentMode = -1; m_targetObject = a1->m_targetObject; if ( m_targetObject ) { ParentMode = GameObject::getParentMode(m_targetObject); goto LABEL_83; } v142 = a1->m_targetObjects; if ( !v142 ) goto LABEL_85; v143 = 0; if ( !cocos2d::CCArray::count(v142) ) goto LABEL_85; do { v144 = (GameObject *)cocos2d::CCArray::objectAtIndex(a1->m_targetObjects, v143); v145 = GameObject::getParentMode(v144); if ( ParentMode == -1 ) { ParentMode = v145; } else if ( ParentMode != v145 ) { goto LABEL_85; } ++v143; } while ( v143 < cocos2d::CCArray::count(a1->m_targetObjects) ); LABEL_83: if ( ParentMode != -1 ) { v146 = cocos2d::CCString::createWithFormat("(%i)", ParentMode); CString = cocos2d::CCString::getCString(v146); } else { LABEL_85: CString = "(-)"; } *(_OWORD *)Block = 0; v215 = 0; v216 = 0; do ++v35; while ( CString[v35] ); sub_14003A930(Block, CString, v35); v148 = Block; if ( v216 > 0xF ) v148 = (void **)Block[0]; v149 = cocos2d::CCLabelBMFont::create((const char *)v148, "chatFont.fnt"); cocos2d::CCPoint::CCPoint(0.0, v121); v150 = (*(__int64 (__fastcall **)(cocos2d::CCPoint))(**(_QWORD **)&v118 + 200LL))(v118); cocos2d::CCPoint::operator+(v150, &v199); v149->setPosition_0(v149, (const cocos2d::CCPoint *)&v199); v151 = ((double (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild_1)( a1->m_mainLayer, v149); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v149->setScale_0)(v149); v149->setColor(&v149->cocos2d::CCRGBAProtocol, &stru_140529C2C); if ( a1->m_showChannelOrder ) { v152 = cocos2d::CCPoint::CCPoint(*(float *)&v151, (float)(v198 * 0.5) - 125.0); cocos2d::CCPoint::CCPoint(*(float *)&v152, (float)(v198 * 0.5) + 125.0); v196.origin = (cocos2d::CCPoint)&v211; v211 = 0; v212 = 3; v213 = 15; LODWORD(v211) = 4477519; cocos2d::CCPoint::CCPoint(&v197); a1->m_orderInput = (CCTextInputNode *)SetGroupIDLayer::createTextInput( (_DWORD)a1, v153, 3, v154, (__int64)&v211, 1112014848, 2); SetGroupIDLayer::updateEditorOrderLabel(a1); v196.origin = (cocos2d::CCPoint)&v203; v203 = 0; v204 = 2; v205 = 15; strcpy((char *)&v203, "CH"); cocos2d::CCPoint::CCPoint(&v197); a1->m_channelInput = (CCTextInputNode *)SetGroupIDLayer::createTextInput( (_DWORD)a1, v155, 4, v156, (__int64)&v203, 1112014848, 2); SetGroupIDLayer::updateOrderChannelLabel(a1); v157 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_plus2Btn_001.png"); ((void (__fastcall *)(struct cocos2d::CCSprite *))v157->setScale_0)(v157); v196.origin = (cocos2d::CCPoint)operator new(0x208u); v158 = CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(*(CCMenuItemSpriteExtra **)&v196.origin); if ( v158 ) { if ( CCMenuItemSpriteExtra::init( v158, v157, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetGroupIDLayer::onNextFreeOrderChannel) ) { cocos2d::CCObject::autorelease(v158); goto LABEL_96; } ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))v158->~CCMenuItemSpriteExtra)(v158, 1); } v158 = nullptr; LABEL_96: v159 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, v158); cocos2d::CCPoint::CCPoint(v159, -75.0); v160 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v197); v151 = ((double (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator+)(v160, &v199); v158->setPosition_0(v158, (const cocos2d::CCPoint *)&v199); } SetGroupIDLayer::updateGroupIDLabel(a1); SetGroupIDLayer::updateEditorLabel(a1); SetGroupIDLayer::updateEditorLabel2(a1); SetGroupIDLayer::updateZOrderLabel(a1); SetGroupIDLayer::updateZLayerButtons(a1); SetGroupIDLayer::updateGroupIDButtons(a1); cocos2d::CCPoint::CCPoint(*(float *)&v151, (float)(v198 * 0.5) + 217.0); cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v208); v196.origin = (cocos2d::CCPoint)operator new(0x2C0u); v161 = ButtonSprite::ButtonSprite(*(ButtonSprite **)&v196.origin); v162 = v161; if ( v161 ) { if ( ButtonSprite::init_1(v161, "Copy", 20, 0, 0.5, 1, "goldFont.fnt", "GJ_button_04.png", 25.0) ) { cocos2d::CCObject::autorelease(v162); } else { ((void (__fastcall *)(cocos2d::CCNode *, __int64))v162->~CCNode)(v162, 1); v162 = nullptr; } } v196.origin = (cocos2d::CCPoint)operator new(0x2C0u); v163 = ButtonSprite::ButtonSprite(*(ButtonSprite **)&v196.origin); v164 = v163; if ( v163 ) { if ( ButtonSprite::init_1(v163, "Paste", 20, 0, 0.5, 1, "goldFont.fnt", "GJ_button_04.png", 25.0) ) { cocos2d::CCObject::autorelease(v164); } else { ((void (__fastcall *)(cocos2d::CCNode *, __int64))v164->~CCNode)(v164, 1); v164 = nullptr; } } v196.origin = (cocos2d::CCPoint)operator new(0x2C0u); v165 = ButtonSprite::ButtonSprite(*(ButtonSprite **)&v196.origin); v166 = v165; if ( v165 ) { if ( ButtonSprite::init_1(v165, "Extra", 20, 0, 0.5, 1, "goldFont.fnt", "GJ_button_04.png", 25.0) ) { cocos2d::CCObject::autorelease(v166); } else { ((void (__fastcall *)(cocos2d::CCNode *, __int64))v166->~CCNode)(v166, 1); v166 = nullptr; } } v196.origin = (cocos2d::CCPoint)operator new(0x2C0u); v167 = ButtonSprite::ButtonSprite(*(ButtonSprite **)&v196.origin); v168 = v167; v206 = v167; if ( v167 ) { if ( ButtonSprite::init_1(v167, "Extra2", 20, 0, 0.5, 1, "goldFont.fnt", "GJ_button_04.png", 25.0) ) { cocos2d::CCObject::autorelease(v168); } else { ((void (__fastcall *)(cocos2d::CCObject *, __int64))v168->~CCObject)(v168, 1); v206 = nullptr; } } v196.origin = (cocos2d::CCPoint)operator new(0x2C0u); v169 = ButtonSprite::ButtonSprite(*(ButtonSprite **)&v196.origin); if ( v169 ) { if ( ButtonSprite::init_1(v169, "Anim", 20, 0, 0.5, 1, "goldFont.fnt", "GJ_button_04.png", 25.0) ) { cocos2d::CCObject::autorelease(v169); } else { ((void (__fastcall *)(ButtonSprite *, __int64))v169->~ButtonSprite)(v169, 1); v169 = nullptr; } } v196.origin = (cocos2d::CCPoint)operator new(0x208u); v170 = CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(*(CCMenuItemSpriteExtra **)&v196.origin); if ( v170 ) { if ( CCMenuItemSpriteExtra::init(v170, v162, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetGroupIDLayer::onCopy) ) { cocos2d::CCObject::autorelease(v170); goto LABEL_122; } ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))v170->~CCMenuItemSpriteExtra)(v170, 1); } v170 = nullptr; LABEL_122: v196.origin = (cocos2d::CCPoint)operator new(0x208u); v171 = CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(*(CCMenuItemSpriteExtra **)&v196.origin); if ( v171 ) { if ( CCMenuItemSpriteExtra::init(v171, v164, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetGroupIDLayer::onPaste) ) { cocos2d::CCObject::autorelease(v171); goto LABEL_127; } ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))v171->~CCMenuItemSpriteExtra)(v171, 1); } v171 = nullptr; LABEL_127: v196.origin = (cocos2d::CCPoint)operator new(0x208u); v172 = CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(*(CCMenuItemSpriteExtra **)&v196.origin); if ( v172 ) { if ( CCMenuItemSpriteExtra::init(v172, v166, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetGroupIDLayer::onExtra) ) { cocos2d::CCObject::autorelease(v172); goto LABEL_132; } ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))v172->~CCMenuItemSpriteExtra)(v172, 1); } v172 = nullptr; LABEL_132: v196.origin = (cocos2d::CCPoint)operator new(0x208u); v173 = CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(*(CCMenuItemSpriteExtra **)&v196.origin); if ( v173 ) { if ( CCMenuItemSpriteExtra::init(v173, v206, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetGroupIDLayer::onExtra2) ) { cocos2d::CCObject::autorelease(v173); goto LABEL_137; } ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))v173->~CCMenuItemSpriteExtra)(v173, 1); } v173 = nullptr; LABEL_137: v196.origin = (cocos2d::CCPoint)operator new(0x208u); v174 = CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(*(CCMenuItemSpriteExtra **)&v196.origin); if ( v174 ) { if ( CCMenuItemSpriteExtra::init(v174, v169, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetGroupIDLayer::onAnim) ) { cocos2d::CCObject::autorelease(v174); goto LABEL_142; } ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))v174->~CCMenuItemSpriteExtra)(v174, 1); } v174 = nullptr; LABEL_142: v175 = v202; if ( v202 ) { a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v170); v170->setPosition_0(v170, &v208); goto LABEL_147; } v176 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v196.origin = (cocos2d::CCPoint)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(*(_QWORD *)&v196.origin); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v176 = qword_1406C2ED8; } if ( *(_QWORD *)(*(_QWORD *)(v176 + 528) + 14368LL) ) { LABEL_147: a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v171); v177 = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v201); if ( v175 ) { cocos2d::CCPoint::CCPoint(*(float *)&v177, 0.0); cocos2d::CCPoint::operator+(&v201, &v202); cocos2d::CCPoint::operator=(&v201, &v202); } v171->setPosition_0(v171, (const cocos2d::CCPoint *)&v201); } v178 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, v172); cocos2d::CCPoint::CCPoint(v178, 0.0); cocos2d::CCPoint::operator+(&v208, &v202); v172->setPosition_0(v172, (const cocos2d::CCPoint *)&v202); v179 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, v173); cocos2d::CCPoint::CCPoint(v179, 0.0); cocos2d::CCPoint::operator+(&v208, &v202); v173->setPosition_0(v173, (const cocos2d::CCPoint *)&v202); v180 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, v174); cocos2d::CCPoint::CCPoint(v180, 0.0); cocos2d::CCPoint::operator+(&v208, &v202); v181 = ((float (__fastcall *)(CCMenuItemSpriteExtra *, GameObject **))v174->setPosition_0)(v174, &v202); v182 = cocos2d::CCPoint::CCPoint(v181, 0.0); v183 = cocos2d::CCPoint::CCPoint(*(float *)&v182, (float)(v198 * 0.5) + 217.0); if ( v175 ) { if ( v175->m_classType == Effect ) { if ( !qword_1406C2ED8 ) { v196.origin = (cocos2d::CCPoint)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(*(_QWORD *)&v196.origin); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); } if ( *(_QWORD *)(qword_1406C2ED8 + 528) ) { v196.origin = (cocos2d::CCPoint)&v211; v212 = 7; v213 = 15; v211 = 0x77656976657250uLL; x_low = LOBYTE(v175[1].m_obRect.origin.x); cocos2d::CCPoint::CCPoint(*(float *)&v183, 0.0); cocos2d::CCPoint::operator+(v209, &v202); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v199); GameToolbox::createToggleButton( (const char *)&v211, (cocos2d::SEL_MenuHandler *)SetGroupIDLayer::onToggleGuide, x_low, a1->m_buttonMenu, (struct cocos2d::CCPoint)&v202, a1, a1, 0.69999999, 0.30000001, 80.0, v185, "goldFont.fnt", 1, 0, nullptr); v186 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v196.origin = (cocos2d::CCPoint)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(*(_QWORD *)&v196.origin); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v186 = qword_1406C2ED8; } v187 = *(GameObject **)(*(_QWORD *)(v186 + 528) + 14992LL); v196.origin = (cocos2d::CCPoint)&v203; v204 = 8; v205 = 15; v203 = 0x6B63616279616C50uLL; cocos2d::CCPoint::CCPoint(0.0, 0.0); cocos2d::CCPoint::operator+(v209, &v202); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v199); GameToolbox::createToggleButton( (const char *)&v203, (cocos2d::SEL_MenuHandler *)SetGroupIDLayer::onToggleSelectedOrder, v187 == v175, a1->m_buttonMenu, (struct cocos2d::CCPoint)&v202, a1, a1, 0.69999999, 0.30000001, 80.0, v188, "goldFont.fnt", 1, 0, nullptr); v189 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v196.origin = (cocos2d::CCPoint)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(*(_QWORD *)&v196.origin); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v189 = qword_1406C2ED8; } v190 = *(GameObject **)(*(_QWORD *)(v189 + 528) + 15008LL); v196.origin = (cocos2d::CCPoint)&v211; *((_QWORD *)&v211 + 1) = 116; v212 = 9; v213 = 15; *(_QWORD *)&v211 = 0x754F206563617254LL; cocos2d::CCPoint::CCPoint(4.1587556e21, 0.0); cocos2d::CCPoint::operator+(v209, &v202); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v199); GameToolbox::createToggleButton( (const char *)&v211, (cocos2d::SEL_MenuHandler *)SetGroupIDLayer::onToggleTraceOut, v190 == v175, a1->m_buttonMenu, (struct cocos2d::CCPoint)&v202, a1, a1, 0.69999999, 0.30000001, 80.0, v191, "goldFont.fnt", 1, 0, nullptr); } } if ( !qword_1406C2ED8 ) { v196.origin = (cocos2d::CCPoint)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(*(_QWORD *)&v196.origin); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); } v192 = *(_QWORD *)(qword_1406C2ED8 + 528); if ( v192 ) { v193 = *(GameObject **)(v192 + 15000); v196.origin = (cocos2d::CCPoint)&v203; v204 = 8; v205 = 15; v203 = 0x6E49206563617254uLL; cocos2d::CCPoint::CCPoint(0.0, 0.0); cocos2d::CCPoint::operator+(v209, &v202); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v199); GameToolbox::createToggleButton( (const char *)&v203, (cocos2d::SEL_MenuHandler *)SetGroupIDLayer::onToggleTraceIn, v193 == v175, a1->m_buttonMenu, (struct cocos2d::CCPoint)&v202, a1, a1, 0.69999999, 0.30000001, 80.0, v194, "goldFont.fnt", 1, 0, nullptr); } } a1->m_editorLayerEdited = 0; if ( v216 > 0xF ) { v195 = Block[0]; if ( v216 + 1 >= 0x1000 ) { v195 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v195 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v195); } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source