// // EditorPauseLayer::customSetup from 0x78c338 to 0x78e154 (7708 bytes) // // 2 xrefs: // > @ 0xb8488 // > @ 0x1177b88 // // 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 // void EditorPauseLayer::customSetup(EditorPauseLayer *a1) { cocos2d::CCDirector *v2; // x0 cocos2d::CCMenu *v3; // x19 const char *v4; // x6 cocos2d::CCNode *v5; // x0 CCMenuItemSpriteExtra *v6; // x0 const char *v7; // x6 __int64 v8; // x25 CCMenuItemSpriteExtra *v9; // x28 const char *v10; // x6 __int64 v11; // x24 CCMenuItemSpriteExtra *v12; // x27 const char *v13; // x6 __int64 v14; // x23 CCMenuItemSpriteExtra *v15; // x26 const char *v16; // x6 cocos2d::CCNode *v17; // x0 CCMenuItemSpriteExtra *v18; // x0 cocos2d::CCMenu *v19; // x22 cocos2d::CCSprite *v20; // x0 cocos2d::CCSprite *v21; // x0 CCMenuItemSpriteExtra *v22; // x0 cocos2d::CCMenu_vtbl *v23; // x2 cocos2d::CCSprite *v24; // x0 CCMenuItemSpriteExtra *v25; // x0 float v26; // s10 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23 cocos2d::CCDirector *v28; // x0 float v29; // s0 CCMenuItemSpriteExtra *m_guidelinesOnButton; // x23 void (__fastcall *v31)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x27 const cocos2d::CCPoint *v32; // x0 const char *v33; // x6 cocos2d::CCNode *v34; // x27 CCMenuItemSpriteExtra *v35; // x27 cocos2d::CCDirector *v36; // x0 float v37; // s0 float v38; // s11 cocos2d::CCDirector *v39; // x0 float v40; // s0 const char *v41; // x6 cocos2d::CCNode *v42; // x0 cocos2d::CCNode_vtbl *v43; // x1 CCMenuItemSpriteExtra *v44; // x0 cocos2d::CCMenu_vtbl *v45; // x2 CCMenuItemSpriteExtra *v46; // x0 CCMenuItemSpriteExtra_vtbl *v47; // x1 void (__fastcall *v48)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x27 const char *v49; // x6 cocos2d::CCNode *v50; // x27 CCMenuItemSpriteExtra *v51; // x27 cocos2d::CCNode_vtbl *v52; // x1 const char *v53; // x6 cocos2d::CCNode *v54; // x0 cocos2d::CCNode_vtbl *v55; // x1 CCMenuItemSpriteExtra *v56; // x0 cocos2d::CCMenu_vtbl *v57; // x2 CCMenuItemSpriteExtra *v58; // x0 CCMenuItemSpriteExtra_vtbl *v59; // x1 void (__fastcall *v60)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x27 const char *v61; // x6 cocos2d::CCNode *v62; // x27 CCMenuItemSpriteExtra *v63; // x27 CCMenuItemSpriteExtra_vtbl *v64; // x2 cocos2d::CCNode_vtbl *v65; // x1 const char *v66; // x6 cocos2d::CCNode *v67; // x0 cocos2d::CCNode_vtbl *v68; // x1 CCMenuItemSpriteExtra *v69; // x0 cocos2d::CCMenu_vtbl *v70; // x2 CCMenuItemSpriteExtra *v71; // x0 CCMenuItemSpriteExtra_vtbl *v72; // x1 void (__fastcall *v73)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x27 const char *v74; // x6 cocos2d::CCNode *v75; // x27 CCMenuItemSpriteExtra *v76; // x27 CCMenuItemSpriteExtra_vtbl *v77; // x2 cocos2d::CCNode_vtbl *v78; // x1 const char *v79; // x6 cocos2d::CCNode *v80; // x0 cocos2d::CCNode_vtbl *v81; // x1 CCMenuItemSpriteExtra *v82; // x0 cocos2d::CCMenu_vtbl *v83; // x2 CCMenuItemSpriteExtra_vtbl *v84; // x1 const cocos2d::CCPoint *(__fastcall *getPosition)(cocos2d::CCNode *__hidden); // x1 const char *v86; // x6 cocos2d::CCNode *v87; // x0 cocos2d::CCNode_vtbl *v88; // x1 CCMenuItemSpriteExtra *v89; // x0 cocos2d::CCMenu_vtbl *v90; // x3 cocos2d::CCNode *v91; // x0 const cocos2d::CCPoint *(__fastcall *v92)(cocos2d::CCNode *__hidden); // x1 const char *v93; // x6 cocos2d::CCNode *v94; // x0 cocos2d::CCNode_vtbl *v95; // x1 CCMenuItemSpriteExtra *v96; // x0 cocos2d::CCMenu_vtbl *v97; // x3 CCMenuItemSpriteExtra_vtbl *v98; // x1 const cocos2d::CCPoint *(__fastcall *v99)(cocos2d::CCNode *__hidden); // x1 const char *v100; // x6 cocos2d::CCNode *v101; // x0 cocos2d::CCNode_vtbl *v102; // x1 CCMenuItemSpriteExtra *v103; // x0 cocos2d::CCMenu_vtbl *v104; // x3 __int64 (__fastcall *v105)(cocos2d::CCPoint *); // x1 const char *v106; // x6 cocos2d::CCNode *v107; // x0 cocos2d::CCNode_vtbl *v108; // x1 CCMenuItemSpriteExtra *v109; // x0 cocos2d::CCMenu_vtbl *v110; // x2 __int64 (__fastcall *v111)(cocos2d::CCPoint *); // x1 const char *v112; // x6 cocos2d::CCNode *v113; // x0 cocos2d::CCNode_vtbl *v114; // x1 CCMenuItemSpriteExtra *v115; // x0 cocos2d::CCMenu_vtbl *v116; // x2 cocos2d::CCNode *v117; // x0 const cocos2d::CCPoint *(__fastcall *v118)(cocos2d::CCNode *__hidden); // x1 const char *v119; // x6 cocos2d::CCNode *v120; // x0 cocos2d::CCNode_vtbl *v121; // x1 CCMenuItemSpriteExtra *v122; // x0 cocos2d::CCMenu_vtbl *v123; // x2 cocos2d::CCNode *v124; // x0 const cocos2d::CCPoint *(__fastcall *v125)(cocos2d::CCNode *__hidden); // x1 const char *v126; // x6 cocos2d::CCNode *v127; // x0 cocos2d::CCNode_vtbl *v128; // x1 CCMenuItemSpriteExtra *v129; // x0 cocos2d::CCMenu_vtbl *v130; // x2 cocos2d::CCNode *v131; // x0 const cocos2d::CCPoint *(__fastcall *v132)(cocos2d::CCNode *__hidden); // x1 const char *v133; // x6 cocos2d::CCNode *v134; // x23 CCMenuItemSpriteExtra *v135; // x23 void (__fastcall *v136)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x28 cocos2d::CCDirector *v137; // x0 float v138; // s0 float v139; // s8 GameManager *v140; // x0 cocos2d::CCDirector *v141; // x0 float v142; // s0 void *v143; // x0 GameManager *v144; // x0 cocos2d::CCDirector *v145; // x0 float v146; // s0 void *v147; // x0 GameManager *v148; // x0 cocos2d::CCDirector *v149; // x0 float v150; // s0 void *v151; // x0 GameManager *v152; // x0 cocos2d::CCDirector *v153; // x0 float v154; // s0 void *v155; // x0 GameManager *v156; // x0 cocos2d::CCDirector *v157; // x0 float v158; // s0 void *v159; // x0 GameManager *v160; // x0 cocos2d::CCDirector *v161; // x0 float v162; // s0 void *v163; // x0 GameManager *v164; // x0 cocos2d::CCDirector *v165; // x0 float v166; // s0 void *v167; // x0 GameManager *v168; // x0 cocos2d::CCDirector *v169; // x0 float v170; // s0 void *v171; // x0 GameManager *v172; // x0 cocos2d::CCDirector *v173; // x0 float v174; // s0 void *v175; // x0 GameManager *v176; // x0 cocos2d::CCDirector *v177; // x0 float v178; // s0 void *v179; // x0 GameManager *v180; // x0 cocos2d::CCDirector *v181; // x0 float v182; // s0 void *v183; // x24 cocos2d::CCSprite *v184; // x23 CCMenuItemSpriteExtra *v185; // x20 void (__fastcall *v186)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22 __int64 v187; // x23 unsigned int *v188; // x1 int v189; // w2 unsigned int *v190; // x1 int v191; // w2 unsigned int *v192; // x1 int v193; // w2 unsigned int *v194; // x1 int v195; // w2 unsigned int *v196; // x1 int v197; // w2 unsigned int *v198; // x1 int v199; // w2 unsigned int *v200; // x1 int v201; // w2 unsigned int *v202; // x1 int v203; // w2 unsigned int *v204; // x1 int v205; // w2 unsigned int *v206; // x1 int v207; // w2 unsigned int *v208; // x23 int v209; // w0 _QWORD v210[2]; // [xsp+30h] [xbp+0h] BYREF cocos2d::CCPoint *v211; // [xsp+B8h] [xbp+88h] cocos2d::CCPoint *v212; // [xsp+C0h] [xbp+90h] void (__fastcall *v213)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [xsp+C8h] [xbp+98h] cocos2d::CCNode *v214; // [xsp+D0h] [xbp+A0h] cocos2d::CCPoint *v215; // [xsp+D8h] [xbp+A8h] float v216; // [xsp+F0h] [xbp+C0h] cocos2d::CCPoint v217; // [xsp+F8h] [xbp+C8h] BYREF cocos2d::CCPoint v218; // [xsp+100h] [xbp+D0h] BYREF cocos2d::CCPoint v219; // [xsp+108h] [xbp+D8h] BYREF cocos2d::CCPoint v220; // [xsp+110h] [xbp+E0h] BYREF cocos2d::CCPoint v221; // 0:kr08_8.8 cocos2d::SEL_MenuHandler v222; // 0:x2.16 cocos2d::SEL_MenuHandler v223; // 0:x2.16 cocos2d::SEL_MenuHandler v224; // 0:x2.16 cocos2d::SEL_MenuHandler v225; // 0:x2.16 cocos2d::SEL_MenuHandler v226; // 0:x2.16 cocos2d::SEL_MenuHandler v227; // 0:x2.16 cocos2d::SEL_MenuHandler v228; // 0:x2.16 cocos2d::SEL_MenuHandler v229; // 0:x2.16 cocos2d::SEL_MenuHandler v230; // 0:x2.16 cocos2d::SEL_MenuHandler v231; // 0:x2.16 cocos2d::SEL_MenuHandler v232; // 0:x2.16 cocos2d::SEL_MenuHandler v233; // 0:x2.16 cocos2d::SEL_MenuHandler v234; // 0:x2.16 cocos2d::SEL_MenuHandler v235; // 0:x2.16 cocos2d::SEL_MenuHandler v236; // 0:x2.16 cocos2d::SEL_MenuHandler v237; // 0:x2.16 cocos2d::SEL_MenuHandler v238; // 0:x2.16 cocos2d::SEL_MenuHandler v239; // 0:x2.16 cocos2d::SEL_MenuHandler v240; // 0:x2.16 cocos2d::SEL_MenuHandler v241; // 0:x2.16 cocos2d::SEL_MenuHandler v242; // 0:x2.16 cocos2d::SEL_MenuHandler v243; // 0:x2.16 cocos2d::SEL_MenuHandler v244; // 0:x2.16 cocos2d::SEL_MenuHandler v245; // 0:x2.16 cocos2d::SEL_MenuHandler v246; // 0:x2.16 a1->setOpacity(a1, 4294967215LL); v2 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v2); v3 = cocos2d::CCMenu::create(); a1->addChild(a1, v3); v5 = (cocos2d::CCNode *)ButtonSprite::create( (ButtonSprite *)"Resume", (const char *)&dword_B4, 0, 1, 0.8, "goldFont.fnt", "GJ_button_01.png", v4, 28.0); v222.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v222.adj = (size_t)EditorPauseLayer::onResume; v6 = CCMenuItemSpriteExtra::create(v5, nullptr, v222); v3->addChild(v3, v6); v8 = ButtonSprite::create( (ButtonSprite *)"Save and Play", (const char *)&dword_B4, 0, 1, 0.8, "goldFont.fnt", "GJ_button_01.png", v7, 28.0); v223.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v223.adj = (size_t)EditorPauseLayer::onSaveAndPlay; v9 = CCMenuItemSpriteExtra::create((cocos2d::CCNode *)v8, nullptr, v223); v3->addChild(v3, v9); v11 = ButtonSprite::create( (ButtonSprite *)"Save and Exit", (const char *)&dword_B4, 0, 1, 0.8, "goldFont.fnt", "GJ_button_01.png", v10, 28.0); v224.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v224.adj = (size_t)EditorPauseLayer::onSaveAndExit; v12 = CCMenuItemSpriteExtra::create((cocos2d::CCNode *)v11, nullptr, v224); v3->addChild(v3, v12); v14 = ButtonSprite::create( (ButtonSprite *)"Save", (const char *)&dword_B4, 0, 1, 0.8, "goldFont.fnt", "GJ_button_01.png", v13, 28.0); v225.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v225.adj = (size_t)EditorPauseLayer::onSave; v15 = CCMenuItemSpriteExtra::create((cocos2d::CCNode *)v14, nullptr, v225); v3->addChild(v3, v15); v17 = (cocos2d::CCNode *)ButtonSprite::create( (ButtonSprite *)"Exit", (const char *)&dword_B4, 0, 1, 0.8, "goldFont.fnt", "GJ_button_01.png", v16, 28.0); v226.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v226.adj = (size_t)EditorPauseLayer::onExitNoSave; v18 = CCMenuItemSpriteExtra::create(v17, nullptr, v226); v3->addChild(v3, v18); cocos2d::CCMenu::alignItemsVerticallyWithPadding(v3, 14.0); if ( a1->m_editorLayer->m_level->m_levelType != Editor ) { memset(&v220, 75, 3); (*(void (__fastcall **)(_QWORD, cocos2d::CCPoint *))(**(_QWORD **)(v8 + 648) + 944LL))(*(_QWORD *)(v8 + 648), &v220); (*(void (__fastcall **)(_QWORD, cocos2d::CCPoint *))(**(_QWORD **)(v8 + 624) + 1056LL))( *(_QWORD *)(v8 + 624), &v220); v9->setEnabled(v9, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCPoint *))(**(_QWORD **)(v11 + 648) + 944LL))( *(_QWORD *)(v11 + 648), &v220); (*(void (__fastcall **)(_QWORD, cocos2d::CCPoint *))(**(_QWORD **)(v11 + 624) + 1056LL))( *(_QWORD *)(v11 + 624), &v220); v12->setEnabled(v12, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCPoint *))(**(_QWORD **)(v14 + 648) + 944LL))( *(_QWORD *)(v14 + 648), &v220); (*(void (__fastcall **)(_QWORD, cocos2d::CCPoint *))(**(_QWORD **)(v14 + 624) + 1056LL))( *(_QWORD *)(v14 + 624), &v220); v15->setEnabled(v15, 0); } v19 = cocos2d::CCMenu::create(); a1->addChild(a1, v19); v20 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_audioOnBtn_001.png"); v227.adj = (size_t)EditorPauseLayer::onSong; v227.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; a1->m_guidelinesOffButton = CCMenuItemSpriteExtra::create(v20, nullptr, v227); v21 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_audioOffBtn_001.png"); v228.adj = (size_t)EditorPauseLayer::onSong; v228.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v22 = CCMenuItemSpriteExtra::create(v21, nullptr, v228); v23 = v19->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_guidelinesOnButton = v22; v23->addChild(v19, a1->m_guidelinesOffButton); v24 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_helpBtn_001.png"); v229.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v229.adj = (size_t)EditorPauseLayer::onHelp; v25 = CCMenuItemSpriteExtra::create(v24, nullptr, v229); v19->addChild(v19, v25); cocos2d::CCMenu::alignItemsHorizontally(v19); v26 = v216 * 0.5; setPosition = v19->setPosition; v28 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenBottom(v28); cocos2d::CCPoint::CCPoint(&v220, v26, v29 + 28.0); setPosition(v19, &v220); v19->addChild(v19, a1->m_guidelinesOnButton); m_guidelinesOnButton = a1->m_guidelinesOnButton; v31 = m_guidelinesOnButton->setPosition; v32 = a1->m_guidelinesOffButton->getPosition(a1->m_guidelinesOffButton); v31(m_guidelinesOnButton, v32); EditorPauseLayer::updateSongButton(a1); v34 = (cocos2d::CCNode *)ButtonSprite::create( (ButtonSprite *)"Uncheck\nPortals", (const char *)&dword_30 + 2, 0, 1, 0.4, "bigFont.fnt", "GJ_button_04.png", v33, 30.0); v34->setScale(v34, 0.8); v230.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v230.adj = (size_t)EditorPauseLayer::uncheckAllPortals; v35 = CCMenuItemSpriteExtra::create(v34, nullptr, v230); v19->addChild(v19, v35); v215 = (cocos2d::CCPoint *)v35->setPosition; v36 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenRight(v36); v38 = v37; v39 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenBottom(v39); cocos2d::CCPoint::CCPoint(&v219, v38 - 50.0, v40 + 30.0); v221 = cocos2d::CCNode::convertToNodeSpace(v19, &v219); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCPoint *, float, float))v215)(v35, &v220, v221.x, v221.y); v42 = (cocos2d::CCNode *)ButtonSprite::create( (ButtonSprite *)"Reset\nUnused", (const char *)&dword_30 + 2, 0, 1, 0.4, "bigFont.fnt", "GJ_button_04.png", v41, 30.0); v43 = v42->__vftable; v215 = (cocos2d::CCPoint *)v42; ((void (__fastcall *)(float))v43->setScale)(0.8); v231.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v231.adj = (size_t)EditorPauseLayer::onResetUnusedColors; v44 = CCMenuItemSpriteExtra::create((cocos2d::CCNode *)v215, nullptr, v231); v45 = v19->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v215 = (cocos2d::CCPoint *)v44; v45->addChild(v19, v44); v46 = v35; v47 = v35->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v214 = (cocos2d::CCNode *)v215; v48 = *(void (__fastcall **)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *))(*(_QWORD *)v215 + 184LL); v215 = (cocos2d::CCPoint *)v47->getPosition(v46); cocos2d::CCPoint::CCPoint(&v219, 0.0, 30.0); cocos2d::CCPoint::operator+(&v220, v215, &v219); v215 = (cocos2d::CCPoint *)v214; v48(v214, &v220); v50 = (cocos2d::CCNode *)ButtonSprite::create( (ButtonSprite *)"Unlock\nLayers", (const char *)&dword_30 + 2, 0, 1, 0.4, "bigFont.fnt", "GJ_button_04.png", v49, 30.0); v50->setScale(v50, 0.8); v232.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v232.adj = (size_t)EditorPauseLayer::onUnlockAllLayers; v51 = CCMenuItemSpriteExtra::create(v50, nullptr, v232); v19->addChild(v19, v51); v52 = (cocos2d::CCNode_vtbl *)*v215; v214 = (cocos2d::CCNode *)v51->setPosition; v215 = (cocos2d::CCPoint *)v52->getPosition((cocos2d::CCNode *)v215); cocos2d::CCPoint::CCPoint(&v219, 0.0, 30.0); cocos2d::CCPoint::operator+(&v220, v215, &v219); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCPoint *))v214)(v51, &v220); v54 = (cocos2d::CCNode *)ButtonSprite::create( (ButtonSprite *)"Create\nExtras", (const char *)&dword_30 + 2, 0, 1, 0.4, "bigFont.fnt", "GJ_button_04.png", v53, 30.0); v55 = v54->__vftable; v215 = (cocos2d::CCPoint *)v54; ((void (__fastcall *)(float))v55->setScale)(0.8); v233.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v233.adj = (size_t)EditorPauseLayer::onCreateExtras; v56 = CCMenuItemSpriteExtra::create((cocos2d::CCNode *)v215, nullptr, v233); v57 = v19->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v215 = (cocos2d::CCPoint *)v56; v57->addChild(v19, v56); v58 = v51; v59 = v51->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v214 = (cocos2d::CCNode *)v215; v60 = *(void (__fastcall **)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *))(*(_QWORD *)v215 + 184LL); v215 = (cocos2d::CCPoint *)v59->getPosition(v58); cocos2d::CCPoint::CCPoint(&v219, 0.0, 30.0); cocos2d::CCPoint::operator+(&v220, v215, &v219); v215 = (cocos2d::CCPoint *)v214; v60(v214, &v220); v62 = (cocos2d::CCNode *)ButtonSprite::create( (ButtonSprite *)"Paste+\nColor", (const char *)&dword_30 + 2, 0, 1, 0.4, "bigFont.fnt", "GJ_button_04.png", v61, 30.0); v62->setScale(v62, 0.8); v234.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v234.adj = (size_t)EditorPauseLayer::onPasteWColor; v63 = CCMenuItemSpriteExtra::create(v62, nullptr, v234); v19->addChild(v19, v63); v64 = v63->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v211 = v215; v65 = (cocos2d::CCNode_vtbl *)*v215; v214 = (cocos2d::CCNode *)v64->setPosition; v215 = (cocos2d::CCPoint *)v65->getPosition((cocos2d::CCNode *)v215); cocos2d::CCPoint::CCPoint(&v219, 0.0, 30.0); cocos2d::CCPoint::operator+(&v220, v215, &v219); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCPoint *))v214)(v63, &v220); v67 = (cocos2d::CCNode *)ButtonSprite::create( (ButtonSprite *)"Copy+\nColor", (const char *)&dword_30 + 2, 0, 1, 0.4, "bigFont.fnt", "GJ_button_04.png", v66, 30.0); v68 = v67->__vftable; v215 = (cocos2d::CCPoint *)v67; ((void (__fastcall *)(float))v68->setScale)(0.8); v235.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v235.adj = (size_t)EditorPauseLayer::onCopyWColor; v69 = CCMenuItemSpriteExtra::create((cocos2d::CCNode *)v215, nullptr, v235); v70 = v19->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v215 = (cocos2d::CCPoint *)v69; v70->addChild(v19, v69); v71 = v63; v72 = v63->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v214 = (cocos2d::CCNode *)v215; v73 = *(void (__fastcall **)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *))(*(_QWORD *)v215 + 184LL); v215 = (cocos2d::CCPoint *)v72->getPosition(v71); cocos2d::CCPoint::CCPoint(&v219, 0.0, 30.0); cocos2d::CCPoint::operator+(&v220, v215, &v219); v215 = (cocos2d::CCPoint *)v214; v73(v214, &v220); v75 = (cocos2d::CCNode *)ButtonSprite::create( (ButtonSprite *)"Build\nHelper", (const char *)&dword_30 + 2, 0, 1, 0.4, "bigFont.fnt", "GJ_button_04.png", v74, 30.0); v75->setScale(v75, 0.8); v236.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v236.adj = (size_t)EditorPauseLayer::onBuildHelper; v76 = CCMenuItemSpriteExtra::create(v75, nullptr, v236); v19->addChild(v19, v76); v77 = v76->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v212 = v215; v78 = (cocos2d::CCNode_vtbl *)*v215; v214 = (cocos2d::CCNode *)v77->setPosition; v215 = (cocos2d::CCPoint *)v78->getPosition((cocos2d::CCNode *)v215); cocos2d::CCPoint::CCPoint(&v219, 0.0, 30.0); cocos2d::CCPoint::operator+(&v220, v215, &v219); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCPoint *))v214)(v76, &v220); v80 = (cocos2d::CCNode *)ButtonSprite::create( (ButtonSprite *)"Create\nLoop", (const char *)&off_18 + 6, 0, 1, 0.4, "bigFont.fnt", "GJ_button_04.png", v79, 30.0); v81 = v80->__vftable; v215 = (cocos2d::CCPoint *)v80; ((void (__fastcall *)(float))v81->setScale)(0.8); v237.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v237.adj = (size_t)EditorPauseLayer::onCreateLoop; v82 = CCMenuItemSpriteExtra::create((cocos2d::CCNode *)v215, nullptr, v237); v83 = v19->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v215 = (cocos2d::CCPoint *)v82; v83->addChild(v19, v82); v84 = v76->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v214 = (cocos2d::CCNode *)v215; getPosition = v84->getPosition; v213 = *(void (__fastcall **)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *))(*(_QWORD *)v215 + 184LL); v215 = (cocos2d::CCPoint *)getPosition(v76); cocos2d::CCPoint::CCPoint(&v219, -50.0, 30.0); cocos2d::CCPoint::operator+(&v220, v215, &v219); v213(v214, &v220); v87 = (cocos2d::CCNode *)ButtonSprite::create( (ButtonSprite *)"Re-\nGroup", (const char *)&off_18 + 6, 0, 1, 0.4, "bigFont.fnt", "GJ_button_04.png", v86, 30.0); v88 = v87->__vftable; v215 = (cocos2d::CCPoint *)v87; ((void (__fastcall *)(float))v88->setScale)(0.8); v238.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v238.adj = (size_t)EditorPauseLayer::onReGroup; v89 = CCMenuItemSpriteExtra::create((cocos2d::CCNode *)v215, nullptr, v238); v90 = v19->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v215 = (cocos2d::CCPoint *)v89; v90->addChild(v19, v89); v91 = v214; v213 = (void (__fastcall *)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *))v215; v92 = v214->getPosition; v214 = *(cocos2d::CCNode **)(*(_QWORD *)v215 + 184LL); v215 = (cocos2d::CCPoint *)v92(v91); cocos2d::CCPoint::CCPoint(&v219, 0.0, 30.0); cocos2d::CCPoint::operator+(&v220, v215, &v219); ((void (__fastcall *)(_QWORD, cocos2d::CCPoint *))v214)(v213, &v220); v94 = (cocos2d::CCNode *)ButtonSprite::create( (ButtonSprite *)"AlignX", (const char *)&off_18 + 6, 0, 1, 0.4, "bigFont.fnt", "GJ_button_04.png", v93, 30.0); v95 = v94->__vftable; v215 = (cocos2d::CCPoint *)v94; ((void (__fastcall *)(float))v95->setScale)(0.8); v239.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v239.adj = (size_t)EditorPauseLayer::onAlignX; v96 = CCMenuItemSpriteExtra::create((cocos2d::CCNode *)v215, nullptr, v239); v97 = v19->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v215 = (cocos2d::CCPoint *)v96; v97->addChild(v19, v96); v98 = v76->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v213 = (void (__fastcall *)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *))v215; v99 = v98->getPosition; v214 = *(cocos2d::CCNode **)(*(_QWORD *)v215 + 184LL); v215 = (cocos2d::CCPoint *)v99(v76); cocos2d::CCPoint::CCPoint(&v219, -50.0, 0.0); cocos2d::CCPoint::operator+(&v220, v215, &v219); ((void (__fastcall *)(_QWORD, cocos2d::CCPoint *))v214)(v213, &v220); v101 = (cocos2d::CCNode *)ButtonSprite::create( (ButtonSprite *)"AlignY", (const char *)&off_18 + 6, 0, 1, 0.4, "bigFont.fnt", "GJ_button_04.png", v100, 30.0); v102 = v101->__vftable; v215 = (cocos2d::CCPoint *)v101; ((void (__fastcall *)(float))v102->setScale)(0.8); v240.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v240.adj = (size_t)EditorPauseLayer::onAlignY; v103 = CCMenuItemSpriteExtra::create((cocos2d::CCNode *)v215, nullptr, v240); v104 = v19->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v215 = (cocos2d::CCPoint *)v103; v104->addChild(v19, v103); v213 = (void (__fastcall *)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *))v215; v105 = *(__int64 (__fastcall **)(cocos2d::CCPoint *))(*(_QWORD *)v212 + 192LL); v214 = *(cocos2d::CCNode **)(*(_QWORD *)v215 + 184LL); v215 = (cocos2d::CCPoint *)v105(v212); cocos2d::CCPoint::CCPoint(&v219, -50.0, 0.0); cocos2d::CCPoint::operator+(&v220, v215, &v219); ((void (__fastcall *)(_QWORD, cocos2d::CCPoint *))v214)(v213, &v220); v107 = (cocos2d::CCNode *)ButtonSprite::create( (ButtonSprite *)"Select\nAll", (const char *)&off_18 + 6, 0, 1, 0.4, "bigFont.fnt", "GJ_button_04.png", v106, 30.0); v108 = v107->__vftable; v215 = (cocos2d::CCPoint *)v107; ((void (__fastcall *)(float))v108->setScale)(0.8); v241.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v241.adj = (size_t)EditorPauseLayer::onSelectAll; v109 = CCMenuItemSpriteExtra::create((cocos2d::CCNode *)v215, nullptr, v241); v110 = v19->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v215 = (cocos2d::CCPoint *)v109; v110->addChild(v19, v109); v214 = (cocos2d::CCNode *)v215; v111 = *(__int64 (__fastcall **)(cocos2d::CCPoint *))(*(_QWORD *)v211 + 192LL); v213 = *(void (__fastcall **)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *))(*(_QWORD *)v215 + 184LL); v215 = (cocos2d::CCPoint *)v111(v211); cocos2d::CCPoint::CCPoint(&v219, -50.0, 30.0); cocos2d::CCPoint::operator+(&v220, v215, &v219); v213(v214, &v220); v113 = (cocos2d::CCNode *)ButtonSprite::create( (ButtonSprite *)"Select\nAll Left", (const char *)&off_18 + 6, 0, 1, 0.4, "bigFont.fnt", "GJ_button_04.png", v112, 30.0); v114 = v113->__vftable; v215 = (cocos2d::CCPoint *)v113; ((void (__fastcall *)(float))v114->setScale)(0.8); v242.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v242.adj = (size_t)EditorPauseLayer::onSelectAllLeft; v115 = CCMenuItemSpriteExtra::create((cocos2d::CCNode *)v215, nullptr, v242); v116 = v19->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v215 = (cocos2d::CCPoint *)v115; v116->addChild(v19, v115); v117 = v214; v214 = (cocos2d::CCNode *)v215; v118 = v117->getPosition; v213 = *(void (__fastcall **)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *))(*(_QWORD *)v215 + 184LL); v215 = (cocos2d::CCPoint *)v118(v117); cocos2d::CCPoint::CCPoint(&v219, 0.0, -30.0); cocos2d::CCPoint::operator+(&v220, v215, &v219); v213(v214, &v220); v120 = (cocos2d::CCNode *)ButtonSprite::create( (ButtonSprite *)"Select\nAll Right", (const char *)&off_18 + 6, 0, 1, 0.4, "bigFont.fnt", "GJ_button_04.png", v119, 30.0); v121 = v120->__vftable; v215 = (cocos2d::CCPoint *)v120; ((void (__fastcall *)(float))v121->setScale)(0.8); v243.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v243.adj = (size_t)EditorPauseLayer::onSelectAllRight; v122 = CCMenuItemSpriteExtra::create((cocos2d::CCNode *)v215, nullptr, v243); v123 = v19->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v215 = (cocos2d::CCPoint *)v122; v123->addChild(v19, v122); v124 = v214; v214 = (cocos2d::CCNode *)v215; v125 = v124->getPosition; v213 = *(void (__fastcall **)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *))(*(_QWORD *)v215 + 184LL); v215 = (cocos2d::CCPoint *)v125(v124); cocos2d::CCPoint::CCPoint(&v219, 0.0, -30.0); cocos2d::CCPoint::operator+(&v220, v215, &v219); v213(v214, &v220); v127 = (cocos2d::CCNode *)ButtonSprite::create( (ButtonSprite *)"New\nGroupX", (const char *)&off_18 + 6, 0, 1, 0.4, "bigFont.fnt", "GJ_button_04.png", v126, 30.0); v128 = v127->__vftable; v215 = (cocos2d::CCPoint *)v127; ((void (__fastcall *)(float))v128->setScale)(0.8); v244.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v244.adj = (size_t)EditorPauseLayer::onNewGroupX; v129 = CCMenuItemSpriteExtra::create((cocos2d::CCNode *)v215, nullptr, v244); v130 = v19->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v215 = (cocos2d::CCPoint *)v129; v130->addChild(v19, v129); v131 = v214; v213 = (void (__fastcall *)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *))v215; v132 = v214->getPosition; v214 = *(cocos2d::CCNode **)(*(_QWORD *)v215 + 184LL); v215 = (cocos2d::CCPoint *)v132(v131); cocos2d::CCPoint::CCPoint(&v219, 0.0, -30.0); cocos2d::CCPoint::operator+(&v220, v215, &v219); v215 = (cocos2d::CCPoint *)v213; ((void (__fastcall *)(_QWORD, cocos2d::CCPoint *))v214)(v213, &v220); v134 = (cocos2d::CCNode *)ButtonSprite::create( (ButtonSprite *)"New\nGroupY", (const char *)&off_18 + 6, 0, 1, 0.4, "bigFont.fnt", "GJ_button_04.png", v133, 30.0); v134->setScale(v134, 0.8); v245.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v245.adj = (size_t)EditorPauseLayer::onNewGroupY; v135 = CCMenuItemSpriteExtra::create(v134, nullptr, v245); v19->addChild(v19, v135); v136 = v135->setPosition; v215 = (cocos2d::CCPoint *)(*(__int64 (__fastcall **)(cocos2d::CCPoint *))(*(_QWORD *)v215 + 192LL))(v215); cocos2d::CCPoint::CCPoint(&v219, 0.0, -30.0); cocos2d::CCPoint::operator+(&v220, v215, &v219); v136(v135, &v220); v137 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenLeft(v137); v139 = (float)(v138 + 25.0) + 0.0; cocos2d::CCPoint::CCPoint(&v217, 8.0, 0.0); sub_D153B8((unsigned int)v210 + 216, "Ignore Damage"); v140 = GameManager::sharedState(); LOBYTE(v215) = GameManager::getGameVariable(v140, "0009"); v141 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenBottom(v141); cocos2d::CCPoint::CCPoint(&v218, v139, v142 + 24.0); cocos2d::CCPoint::CCPoint(&v220, &v217); GameToolbox::createToggleButton( 0.55, 0.42, 85.0, (__int64)&v219, (void (__cdecl *)(cocos2d::CCObject *))EditorPauseLayer::toggleIgnoreDamage, 0, (bool)v215, v19, &v218, a1, a1, (float *)&v220, (__int64)"bigFont.fnt", 0, 0, nullptr); v143 = (void *)(*(_QWORD *)&v219 - 24LL); if ( (__int64 *)(*(_QWORD *)&v219 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v188 = (unsigned int *)(*(_QWORD *)&v219 - 8LL); do v189 = __ldaxr(v188); while ( __stlxr(v189 - 1, v188) ); } else { v189 = *(_DWORD *)(*(_QWORD *)&v219 - 8LL); *(_DWORD *)(*(_QWORD *)&v219 - 8LL) = v189 - 1; } if ( v189 <= 0 ) operator delete(v143); } sub_D153B8((unsigned int)v210 + 216, "Select Filter"); v214 = (cocos2d::CCNode *)EditorPauseLayer::toggleSelectFilter; v144 = GameManager::sharedState(); LOBYTE(v215) = GameManager::getGameVariable(v144, "0064"); v145 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenBottom(v145); cocos2d::CCPoint::CCPoint(&v218, v139, v146 + 48.0); cocos2d::CCPoint::CCPoint(&v220, &v217); GameToolbox::createToggleButton( 0.55, 0.42, 85.0, (__int64)&v219, (void (__cdecl *)(cocos2d::CCObject *))v214, 0, (bool)v215, v19, &v218, a1, a1, (float *)&v220, (__int64)"bigFont.fnt", 0, 0, nullptr); v147 = (void *)(*(_QWORD *)&v219 - 24LL); if ( (__int64 *)(*(_QWORD *)&v219 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v190 = (unsigned int *)(*(_QWORD *)&v219 - 8LL); do v191 = __ldaxr(v190); while ( __stlxr(v191 - 1, v190) ); } else { v191 = *(_DWORD *)(*(_QWORD *)&v219 - 8LL); *(_DWORD *)(*(_QWORD *)&v219 - 8LL) = v191 - 1; } if ( v191 <= 0 ) operator delete(v147); } sub_D153B8((unsigned int)v210 + 216, "Show Grid"); v214 = (cocos2d::CCNode *)EditorPauseLayer::toggleEditorGrid; v148 = GameManager::sharedState(); LOBYTE(v215) = GameManager::getGameVariable(v148, "0038"); v149 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenBottom(v149); cocos2d::CCPoint::CCPoint(&v218, v139, v150 + 72.0); cocos2d::CCPoint::CCPoint(&v220, &v217); GameToolbox::createToggleButton( 0.55, 0.42, 85.0, (__int64)&v219, (void (__cdecl *)(cocos2d::CCObject *))v214, 0, (bool)v215, v19, &v218, a1, a1, (float *)&v220, (__int64)"bigFont.fnt", 0, 0, nullptr); v151 = (void *)(*(_QWORD *)&v219 - 24LL); if ( (__int64 *)(*(_QWORD *)&v219 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v192 = (unsigned int *)(*(_QWORD *)&v219 - 8LL); do v193 = __ldaxr(v192); while ( __stlxr(v193 - 1, v192) ); } else { v193 = *(_DWORD *)(*(_QWORD *)&v219 - 8LL); *(_DWORD *)(*(_QWORD *)&v219 - 8LL) = v193 - 1; } if ( v193 <= 0 ) operator delete(v151); } sub_D153B8((unsigned int)v210 + 216, "Show Object Info"); v214 = (cocos2d::CCNode *)EditorPauseLayer::toggleShowObjectInfo; v152 = GameManager::sharedState(); LOBYTE(v215) = GameManager::getGameVariable(v152, "0041"); v153 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenBottom(v153); cocos2d::CCPoint::CCPoint(&v218, v139, v154 + 96.0); cocos2d::CCPoint::CCPoint(&v220, &v217); GameToolbox::createToggleButton( 0.55, 0.42, 85.0, (__int64)&v219, (void (__cdecl *)(cocos2d::CCObject *))v214, 0, (bool)v215, v19, &v218, a1, a1, (float *)&v220, (__int64)"bigFont.fnt", 0, 0, nullptr); v155 = (void *)(*(_QWORD *)&v219 - 24LL); if ( (__int64 *)(*(_QWORD *)&v219 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v194 = (unsigned int *)(*(_QWORD *)&v219 - 8LL); do v195 = __ldaxr(v194); while ( __stlxr(v195 - 1, v194) ); } else { v195 = *(_DWORD *)(*(_QWORD *)&v219 - 8LL); *(_DWORD *)(*(_QWORD *)&v219 - 8LL) = v195 - 1; } if ( v195 <= 0 ) operator delete(v155); } sub_D153B8((unsigned int)v210 + 216, "Show Ground"); v214 = (cocos2d::CCNode *)EditorPauseLayer::toggleEditorGround; v156 = GameManager::sharedState(); LOBYTE(v215) = GameManager::getGameVariable(v156, "0037"); v157 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenBottom(v157); cocos2d::CCPoint::CCPoint(&v218, v139, v158 + 120.0); cocos2d::CCPoint::CCPoint(&v220, &v217); GameToolbox::createToggleButton( 0.55, 0.42, 85.0, (__int64)&v219, (void (__cdecl *)(cocos2d::CCObject *))v214, 0, (bool)v215, v19, &v218, a1, a1, (float *)&v220, (__int64)"bigFont.fnt", 0, 0, nullptr); v159 = (void *)(*(_QWORD *)&v219 - 24LL); if ( (__int64 *)(*(_QWORD *)&v219 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v196 = (unsigned int *)(*(_QWORD *)&v219 - 8LL); do v197 = __ldaxr(v196); while ( __stlxr(v197 - 1, v196) ); } else { v197 = *(_DWORD *)(*(_QWORD *)&v219 - 8LL); *(_DWORD *)(*(_QWORD *)&v219 - 8LL) = v197 - 1; } if ( v197 <= 0 ) operator delete(v159); } sub_D153B8((unsigned int)v210 + 216, "Preview Shaders"); v214 = (cocos2d::CCNode *)EditorPauseLayer::togglePreviewShaders; v160 = GameManager::sharedState(); LOBYTE(v215) = GameManager::getGameVariable(v160, "0158"); v161 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenBottom(v161); cocos2d::CCPoint::CCPoint(&v218, v139, v162 + 144.0); cocos2d::CCPoint::CCPoint(&v220, &v217); GameToolbox::createToggleButton( 0.55, 0.42, 85.0, (__int64)&v219, (void (__cdecl *)(cocos2d::CCObject *))v214, 0, (bool)v215, v19, &v218, a1, a1, (float *)&v220, (__int64)"bigFont.fnt", 0, 0, nullptr); v163 = (void *)(*(_QWORD *)&v219 - 24LL); if ( (__int64 *)(*(_QWORD *)&v219 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v198 = (unsigned int *)(*(_QWORD *)&v219 - 8LL); do v199 = __ldaxr(v198); while ( __stlxr(v199 - 1, v198) ); } else { v199 = *(_DWORD *)(*(_QWORD *)&v219 - 8LL); *(_DWORD *)(*(_QWORD *)&v219 - 8LL) = v199 - 1; } if ( v199 <= 0 ) operator delete(v163); } sub_D153B8((unsigned int)v210 + 216, "Preview Particles"); v214 = (cocos2d::CCNode *)EditorPauseLayer::togglePreviewParticles; v164 = GameManager::sharedState(); LOBYTE(v215) = GameManager::getGameVariable(v164, "0117"); v165 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenBottom(v165); cocos2d::CCPoint::CCPoint(&v218, v139, v166 + 168.0); cocos2d::CCPoint::CCPoint(&v220, &v217); GameToolbox::createToggleButton( 0.55, 0.42, 85.0, (__int64)&v219, (void (__cdecl *)(cocos2d::CCObject *))v214, 0, (bool)v215, v19, &v218, a1, a1, (float *)&v220, (__int64)"bigFont.fnt", 0, 0, nullptr); v167 = (void *)(*(_QWORD *)&v219 - 24LL); if ( (__int64 *)(*(_QWORD *)&v219 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v200 = (unsigned int *)(*(_QWORD *)&v219 - 8LL); do v201 = __ldaxr(v200); while ( __stlxr(v201 - 1, v200) ); } else { v201 = *(_DWORD *)(*(_QWORD *)&v219 - 8LL); *(_DWORD *)(*(_QWORD *)&v219 - 8LL) = v201 - 1; } if ( v201 <= 0 ) operator delete(v167); } sub_D153B8((unsigned int)v210 + 216, "Preview Animations"); v214 = (cocos2d::CCNode *)EditorPauseLayer::togglePreviewAnim; v168 = GameManager::sharedState(); LOBYTE(v215) = GameManager::getGameVariable(v168, "0118"); v169 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenBottom(v169); cocos2d::CCPoint::CCPoint(&v218, v139, v170 + 192.0); cocos2d::CCPoint::CCPoint(&v220, &v217); GameToolbox::createToggleButton( 0.55, 0.42, 85.0, (__int64)&v219, (void (__cdecl *)(cocos2d::CCObject *))v214, 0, (bool)v215, v19, &v218, a1, a1, (float *)&v220, (__int64)"bigFont.fnt", 0, 0, nullptr); v171 = (void *)(*(_QWORD *)&v219 - 24LL); if ( (__int64 *)(*(_QWORD *)&v219 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v202 = (unsigned int *)(*(_QWORD *)&v219 - 8LL); do v203 = __ldaxr(v202); while ( __stlxr(v203 - 1, v202) ); } else { v203 = *(_DWORD *)(*(_QWORD *)&v219 - 8LL); *(_DWORD *)(*(_QWORD *)&v219 - 8LL) = v203 - 1; } if ( v203 <= 0 ) operator delete(v171); } sub_D153B8((unsigned int)v210 + 216, "Preview Mode"); v214 = (cocos2d::CCNode *)EditorPauseLayer::toggleEditorColorMode; v172 = GameManager::sharedState(); LOBYTE(v215) = GameManager::getGameVariable(v172, "0036"); v173 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenBottom(v173); cocos2d::CCPoint::CCPoint(&v218, v139, v174 + 216.0); cocos2d::CCPoint::CCPoint(&v220, &v217); GameToolbox::createToggleButton( 0.55, 0.42, 85.0, (__int64)&v219, (void (__cdecl *)(cocos2d::CCObject *))v214, 0, (bool)v215, v19, &v218, a1, a1, (float *)&v220, (__int64)"bigFont.fnt", 0, 0, nullptr); v175 = (void *)(*(_QWORD *)&v219 - 24LL); if ( (__int64 *)(*(_QWORD *)&v219 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v204 = (unsigned int *)(*(_QWORD *)&v219 - 8LL); do v205 = __ldaxr(v204); while ( __stlxr(v205 - 1, v204) ); } else { v205 = *(_DWORD *)(*(_QWORD *)&v219 - 8LL); *(_DWORD *)(*(_QWORD *)&v219 - 8LL) = v205 - 1; } if ( v205 <= 0 ) operator delete(v175); } sub_D153B8((unsigned int)v210 + 216, "Hide Invisible"); v214 = (cocos2d::CCNode *)EditorPauseLayer::toggleHideInvisible; v176 = GameManager::sharedState(); LOBYTE(v215) = GameManager::getGameVariable(v176, "0121"); v177 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenBottom(v177); cocos2d::CCPoint::CCPoint(&v218, v139, v178 + 240.0); cocos2d::CCPoint::CCPoint(&v220, &v217); GameToolbox::createToggleButton( 0.55, 0.42, 85.0, (__int64)&v219, (void (__cdecl *)(cocos2d::CCObject *))v214, 0, (bool)v215, v19, &v218, a1, a1, (float *)&v220, (__int64)"bigFont.fnt", 0, 0, nullptr); v179 = (void *)(*(_QWORD *)&v219 - 24LL); if ( (__int64 *)(*(_QWORD *)&v219 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v206 = (unsigned int *)(*(_QWORD *)&v219 - 8LL); do v207 = __ldaxr(v206); while ( __stlxr(v207 - 1, v206) ); } else { v207 = *(_DWORD *)(*(_QWORD *)&v219 - 8LL); *(_DWORD *)(*(_QWORD *)&v219 - 8LL) = v207 - 1; } if ( v207 <= 0 ) operator delete(v179); } sub_D153B8((unsigned int)v210 + 216, "Show Hitboxes"); v180 = GameManager::sharedState(); LOBYTE(v215) = GameManager::getGameVariable(v180, "0045"); v181 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenBottom(v181); cocos2d::CCPoint::CCPoint(&v218, v139, v182 + 264.0); cocos2d::CCPoint::CCPoint(&v220, &v217); GameToolbox::createToggleButton( 0.55, 0.42, 85.0, (__int64)&v219, (void (__cdecl *)(cocos2d::CCObject *))EditorPauseLayer::toggleDebugDraw, 0, (bool)v215, v19, &v218, a1, a1, (float *)&v220, (__int64)"bigFont.fnt", 0, 0, nullptr); v183 = (void *)(*(_QWORD *)&v219 - 24LL); if ( (__int64 *)(*(_QWORD *)&v219 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v208 = (unsigned int *)(*(_QWORD *)&v219 - 8LL); do v209 = __ldaxr(v208); while ( __stlxr(v209 - 1, v208) ); } else { v209 = *(_DWORD *)(*(_QWORD *)&v219 - 8LL); *(_DWORD *)(*(_QWORD *)&v219 - 8LL) = v209 - 1; } if ( v209 <= 0 ) operator delete(v183); } v184 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_optionsBtn_001.png"); v184->setScale(v184, 0.6); v246.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v246.adj = (size_t)EditorPauseLayer::onOptions; v185 = CCMenuItemSpriteExtra::create(v184, nullptr, v246); v19->addChild(v19, v185); v186 = v185->setPosition; v187 = (__int64)v76->getPosition(v76); cocos2d::CCPoint::CCPoint(&v219, 0.0, 60.0); cocos2d::CCPoint::operator+(&v220, v187, &v219); v186(v185, &v220); }
GD Web Decomp Icon

GD Web Decomp

Raw Source