// // EditorPauseLayer::customSetup from 0x3ffeb4 to 0x4012a8 (5108 bytes) // // 0 xrefs: // // 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; // r0 cocos2d::CCMenu *v3; // r5 ButtonSprite *v4; // r0 CCMenuItemSpriteExtra *v5; // r0 CCMenuItemSpriteExtra *v6; // r9 ButtonSprite *v7; // r0 CCMenuItemSpriteExtra *v8; // r0 cocos2d::CCMenu *v9; // r4 cocos2d::CCSprite *v10; // r0 cocos2d::CCSprite *v11; // r0 CCMenuItemSpriteExtra *v12; // r0 cocos2d::CCMenu_vtbl *v13; // r3 CCMenuItemSpriteExtra *m_guidelinesOffButton; // r1 cocos2d::CCSprite *v15; // r0 CCMenuItemSpriteExtra *v16; // r0 float v17; // s17 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r6 cocos2d::CCDirector *v19; // r0 float v20; // r0 CCMenuItemSpriteExtra *m_guidelinesOnButton; // r6 void (__fastcall *v22)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7 const cocos2d::CCPoint *v23; // r0 ButtonSprite *v24; // r6 CCMenuItemSpriteExtra *v25; // r6 void (__fastcall *v26)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7 cocos2d::CCDirector *v27; // r0 float v28; // s16 cocos2d::CCDirector *v29; // r0 float v30; // r0 ButtonSprite *v31; // r7 CCMenuItemSpriteExtra *v32; // r7 void (__fastcall *v33)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 int v34; // r6 ButtonSprite *v35; // r6 CCMenuItemSpriteExtra *v36; // r6 void (__fastcall *v37)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 int v38; // r7 ButtonSprite *v39; // r7 void (__fastcall *v40)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7 int v41; // r6 ButtonSprite *v42; // r6 CCMenuItemSpriteExtra *v43; // r7 void (__fastcall *v44)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r6 int v45; // r9 ButtonSprite *v46; // r6 CCMenuItemSpriteExtra *v47; // r6 void (__fastcall *v48)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 int v49; // r7 ButtonSprite *v50; // r7 void (__fastcall *v51)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7 int v52; // r9 ButtonSprite *v53; // r7 CCMenuItemSpriteExtra *v54; // r7 int v55; // r9 ButtonSprite *v56; // r9 CCMenuItemSpriteExtra *v57; // r9 int v58; // r7 ButtonSprite *v59; // r7 CCMenuItemSpriteExtra *v60; // r7 int v61; // r9 ButtonSprite *v62; // r7 CCMenuItemSpriteExtra *v63; // r9 void (__fastcall *v64)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7 int v65; // r6 ButtonSprite *v66; // r6 CCMenuItemSpriteExtra *v67; // r6 void (__fastcall *v68)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7 int v69; // r9 ButtonSprite *v70; // r7 CCMenuItemSpriteExtra *v71; // r7 void (__fastcall *v72)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 int v73; // r6 ButtonSprite *v74; // r6 CCMenuItemSpriteExtra *v75; // r6 void (__fastcall *v76)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 int v77; // r7 ButtonSprite *v78; // r7 CCMenuItemSpriteExtra *v79; // r7 void (__fastcall *v80)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 int v81; // r6 ButtonSprite *v82; // r6 CCMenuItemSpriteExtra *v83; // r9 void (__fastcall *v84)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r6 int v85; // r7 cocos2d::CCDirector *v86; // r0 GameManager *v87; // r0 bool GameVariable; // r5 cocos2d::CCDirector *v89; // r0 float v90; // r0 GameManager *v91; // r0 bool v92; // r5 cocos2d::CCDirector *v93; // r0 float v94; // r0 GameManager *v95; // r0 bool v96; // r5 cocos2d::CCDirector *v97; // r0 float v98; // r0 GameManager *v99; // r0 bool v100; // r5 cocos2d::CCDirector *v101; // r0 float v102; // r0 GameManager *v103; // r0 cocos2d::CCDirector *v104; // r0 float v105; // r0 GameManager *v106; // r0 cocos2d::CCDirector *v107; // r0 float v108; // r0 GameManager *v109; // r0 cocos2d::CCDirector *v110; // r0 float v111; // r0 GameManager *v112; // r0 cocos2d::CCDirector *v113; // r0 float v114; // r0 GameManager *v115; // r0 cocos2d::CCDirector *v116; // r0 float v117; // r0 GameManager *v118; // r0 bool v119; // r8 cocos2d::CCDirector *v120; // r0 float v121; // r0 GameManager *v122; // r0 bool v123; // r8 cocos2d::CCDirector *v124; // r0 float v125; // r0 cocos2d::CCSprite *v126; // r6 CCMenuItemSpriteExtra *v127; // r6 void (__fastcall *v128)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r4 int v129; // r8 float v130; // [sp+10h] [bp-184h] float v131; // [sp+10h] [bp-184h] float v132; // [sp+10h] [bp-184h] float v133; // [sp+10h] [bp-184h] float v134; // [sp+10h] [bp-184h] float v135; // [sp+10h] [bp-184h] float v136; // [sp+10h] [bp-184h] float v137; // [sp+10h] [bp-184h] float v138; // [sp+10h] [bp-184h] float v139; // [sp+10h] [bp-184h] float v140; // [sp+10h] [bp-184h] float v141; // [sp+10h] [bp-184h] float v142; // [sp+10h] [bp-184h] float v143; // [sp+10h] [bp-184h] float v144; // [sp+10h] [bp-184h] float v145; // [sp+10h] [bp-184h] float v146; // [sp+10h] [bp-184h] float v147; // [sp+10h] [bp-184h] float v148; // [sp+10h] [bp-184h] float v149; // [sp+10h] [bp-184h] float v150; // [sp+10h] [bp-184h] CCMenuItemSpriteExtra *v151; // [sp+30h] [bp-164h] char *v152; // [sp+34h] [bp-160h] float v153; // [sp+34h] [bp-160h] char *v154; // [sp+38h] [bp-15Ch] ButtonSprite *v155; // [sp+3Ch] [bp-158h] CCMenuItemSpriteExtra *v156; // [sp+3Ch] [bp-158h] CCMenuItemSpriteExtra *v157; // [sp+3Ch] [bp-158h] CCMenuItemSpriteExtra *v158; // [sp+40h] [bp-154h] void (__fastcall *v159)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [sp+40h] [bp-154h] void (__fastcall *v160)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [sp+40h] [bp-154h] void (__fastcall *v161)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [sp+40h] [bp-154h] CCMenuItemSpriteExtra *v162; // [sp+44h] [bp-150h] cocos2d::CCSize v163; // [sp+4Ch] [bp-148h] BYREF cocos2d::CCPoint v164; // [sp+54h] [bp-140h] BYREF cocos2d::CCPoint v165; // [sp+5Ch] [bp-138h] BYREF cocos2d::CCPoint v166; // [sp+64h] [bp-130h] BYREF void (*v167)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+6Ch] [bp-128h] int v168; // [sp+70h] [bp-124h] void (*v169)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+74h] [bp-120h] int v170; // [sp+78h] [bp-11Ch] void (*v171)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+7Ch] [bp-118h] int v172; // [sp+80h] [bp-114h] void (*v173)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+84h] [bp-110h] int v174; // [sp+88h] [bp-10Ch] void (*v175)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+8Ch] [bp-108h] int v176; // [sp+90h] [bp-104h] void (*v177)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+94h] [bp-100h] int v178; // [sp+98h] [bp-FCh] void (*v179)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+9Ch] [bp-F8h] int v180; // [sp+A0h] [bp-F4h] void (*v181)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+A4h] [bp-F0h] int v182; // [sp+A8h] [bp-ECh] void (*v183)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+ACh] [bp-E8h] int v184; // [sp+B0h] [bp-E4h] void (*v185)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+B4h] [bp-E0h] int v186; // [sp+B8h] [bp-DCh] void (*v187)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+BCh] [bp-D8h] int v188; // [sp+C0h] [bp-D4h] void (*v189)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+C4h] [bp-D0h] int v190; // [sp+C8h] [bp-CCh] void (*v191)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+CCh] [bp-C8h] int v192; // [sp+D0h] [bp-C4h] void (*v193)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+D4h] [bp-C0h] int v194; // [sp+D8h] [bp-BCh] void (*v195)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+DCh] [bp-B8h] int v196; // [sp+E0h] [bp-B4h] void (*v197)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+E4h] [bp-B0h] int v198; // [sp+E8h] [bp-ACh] void (*v199)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+ECh] [bp-A8h] int v200; // [sp+F0h] [bp-A4h] void (*v201)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+F4h] [bp-A0h] int v202; // [sp+F8h] [bp-9Ch] void (*v203)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+FCh] [bp-98h] int v204; // [sp+100h] [bp-94h] void (*v205)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+104h] [bp-90h] int v206; // [sp+108h] [bp-8Ch] void (*v207)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+10Ch] [bp-88h] int v208; // [sp+110h] [bp-84h] void (*v209)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+114h] [bp-80h] int v210; // [sp+118h] [bp-7Ch] void (*v211)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+11Ch] [bp-78h] int v212; // [sp+120h] [bp-74h] void (*v213)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+124h] [bp-70h] int v214; // [sp+128h] [bp-6Ch] void (*v215)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+12Ch] [bp-68h] unsigned int v216; // [sp+130h] [bp-64h] void (*v217)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+134h] [bp-60h] unsigned int v218; // [sp+138h] [bp-5Ch] void (*v219)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+13Ch] [bp-58h] unsigned int v220; // [sp+140h] [bp-54h] void (*v221)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+144h] [bp-50h] unsigned int v222; // [sp+148h] [bp-4Ch] void (*v223)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+14Ch] [bp-48h] unsigned int v224; // [sp+150h] [bp-44h] void (*v225)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+154h] [bp-40h] unsigned int v226; // [sp+158h] [bp-3Ch] void (*v227)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+15Ch] [bp-38h] unsigned int v228; // [sp+160h] [bp-34h] void (*v229)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+164h] [bp-30h] unsigned int v230; // [sp+168h] [bp-2Ch] void (*v231)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+16Ch] [bp-28h] unsigned int v232; // [sp+170h] [bp-24h] void (*v233)(EditorPauseLayer *, cocos2d::CCObject *); // [sp+174h] [bp-20h] BYREF unsigned int v234; // [sp+178h] [bp-1Ch] cocos2d::CCPoint v235; // [sp+17Ch] [bp-18h] BYREF cocos2d::CCPoint v236; // [sp+184h] [bp-10h] BYREF a1->setOpacity(a1, 175); v2 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v163, v2); v3 = cocos2d::CCMenu::create(); a1->addChild(a1, v3); v4 = ButtonSprite::create( (ButtonSprite *)"Resume", (const char *)&dword_B4, 0, 0.8, 1, "goldFont.fnt", "GJ_button_01.png", COERCE_CONST_CHAR_(28.0), v130); v168 = 0; v167 = EditorPauseLayer::onResume; v5 = CCMenuItemSpriteExtra::create( v4, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(EditorPauseLayer::onResume, (unsigned int)a1)); v3->addChild(v3, v5); v152 = (char *)ButtonSprite::create( (ButtonSprite *)"Save and Play", (const char *)&dword_B4, 0, 0.8, 1, "goldFont.fnt", "GJ_button_01.png", COERCE_CONST_CHAR_(28.0), v131); v170 = 0; v169 = EditorPauseLayer::onSaveAndPlay; v158 = CCMenuItemSpriteExtra::create( (cocos2d::CCNode *)v152, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(EditorPauseLayer::onSaveAndPlay, (unsigned int)a1)); v3->addChild(v3, v158); v154 = (char *)ButtonSprite::create( (ButtonSprite *)"Save and Exit", (const char *)&dword_B4, 0, 0.8, 1, "goldFont.fnt", "GJ_button_01.png", COERCE_CONST_CHAR_(28.0), v132); v172 = 0; v171 = EditorPauseLayer::onSaveAndExit; v151 = CCMenuItemSpriteExtra::create( (cocos2d::CCNode *)v154, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(EditorPauseLayer::onSaveAndExit, (unsigned int)a1)); v3->addChild(v3, v151); v155 = ButtonSprite::create( (ButtonSprite *)"Save", (const char *)&dword_B4, 0, 0.8, 1, "goldFont.fnt", "GJ_button_01.png", COERCE_CONST_CHAR_(28.0), v133); v174 = 0; v173 = EditorPauseLayer::onSave; v6 = CCMenuItemSpriteExtra::create( v155, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(EditorPauseLayer::onSave, (unsigned int)a1)); v3->addChild(v3, v6); v7 = ButtonSprite::create( (ButtonSprite *)"Exit", (const char *)&dword_B4, 0, 0.8, 1, "goldFont.fnt", "GJ_button_01.png", COERCE_CONST_CHAR_(28.0), v134); v176 = 0; v175 = EditorPauseLayer::onExitNoSave; v8 = CCMenuItemSpriteExtra::create( v7, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(EditorPauseLayer::onExitNoSave, (unsigned int)a1)); v3->addChild(v3, v8); cocos2d::CCMenu::alignItemsVerticallyWithPadding(v3, 14.0); if ( a1->m_editorLayer->m_level->m_levelType != Editor ) { memset(&v236, 75, 3); (*(void (__fastcall **)(_DWORD, cocos2d::CCPoint *))(**((_DWORD **)v152 + 136) + 472))( *((_DWORD *)v152 + 136), &v236); (*(void (__fastcall **)(_DWORD, cocos2d::CCPoint *))(**((_DWORD **)v152 + 133) + 528))( *((_DWORD *)v152 + 133), &v236); v158->setEnabled(v158, 0); (*(void (__fastcall **)(_DWORD, cocos2d::CCPoint *))(**((_DWORD **)v154 + 136) + 472))( *((_DWORD *)v154 + 136), &v236); (*(void (__fastcall **)(_DWORD, cocos2d::CCPoint *))(**((_DWORD **)v154 + 133) + 528))( *((_DWORD *)v154 + 133), &v236); v151->setEnabled(v151, 0); v155->m_BGSprite->setColor(v155->m_BGSprite, (const cocos2d::ccColor3B *)&v236); v155->m_label->setColor(v155->m_label, (const cocos2d::ccColor3B *)&v236); v6->setEnabled(v6, 0); } v9 = cocos2d::CCMenu::create(); a1->addChild(a1, v9); v10 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_audioOnBtn_001.png"); v178 = 0; v177 = EditorPauseLayer::onSong; a1->m_guidelinesOffButton = CCMenuItemSpriteExtra::create( v10, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(EditorPauseLayer::onSong, (unsigned int)a1)); v11 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_audioOffBtn_001.png"); v179 = EditorPauseLayer::onSong; v180 = 0; v12 = CCMenuItemSpriteExtra::create( v11, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(EditorPauseLayer::onSong, (unsigned int)a1)); v13 = v9->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; m_guidelinesOffButton = a1->m_guidelinesOffButton; a1->m_guidelinesOnButton = v12; v13->addChild(v9, m_guidelinesOffButton); v15 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_helpBtn_001.png"); v182 = 0; v181 = EditorPauseLayer::onHelp; v16 = CCMenuItemSpriteExtra::create( v15, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(EditorPauseLayer::onHelp, (unsigned int)a1)); v9->addChild(v9, v16); cocos2d::CCMenu::alignItemsHorizontally(v9); v17 = v163.width * 0.5; setPosition = v9->setPosition; v19 = cocos2d::CCDirector::sharedDirector(); v20 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v19)); cocos2d::CCPoint::CCPoint(&v236, v17, v20 + 28.0); setPosition(v9, &v236); v9->addChild(v9, a1->m_guidelinesOnButton); m_guidelinesOnButton = a1->m_guidelinesOnButton; v22 = m_guidelinesOnButton->setPosition; v23 = a1->m_guidelinesOffButton->getPosition(a1->m_guidelinesOffButton); v22(m_guidelinesOnButton, v23); EditorPauseLayer::updateSongButton(a1); v24 = ButtonSprite::create( (ButtonSprite *)"Uncheck\nPortals", (const char *)&word_32, 0, 0.4, 1, "bigFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(30.0), v135); ((void (__fastcall *)(ButtonSprite *, int))v24->setScale)(v24, 1061997773); v184 = 0; v183 = EditorPauseLayer::uncheckAllPortals; v25 = CCMenuItemSpriteExtra::create( v24, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(EditorPauseLayer::uncheckAllPortals, (unsigned int)a1)); v9->addChild(v9, v25); v26 = v25->setPosition; v27 = cocos2d::CCDirector::sharedDirector(); v28 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v27)); v29 = cocos2d::CCDirector::sharedDirector(); v30 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v29)); cocos2d::CCPoint::CCPoint(&v235, v28 - 50.0, v30 + 30.0); cocos2d::CCNode::convertToNodeSpace(&v236, v9, &v235); v26(v25, &v236); v31 = ButtonSprite::create( (ButtonSprite *)"Reset\nUnused", (const char *)&word_32, 0, 0.4, 1, "bigFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(30.0), v136); ((void (__fastcall *)(ButtonSprite *, int))v31->setScale)(v31, 1061997773); v186 = 0; v185 = EditorPauseLayer::onResetUnusedColors; v32 = CCMenuItemSpriteExtra::create( v31, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(EditorPauseLayer::onResetUnusedColors, (unsigned int)a1)); v9->addChild(v9, v32); v33 = v32->setPosition; v34 = (int)v25->getPosition(v25); cocos2d::CCPoint::CCPoint(&v235, 0.0, 30.0); cocos2d::CCPoint::operator+(&v236, v34, &v235); v33(v32, &v236); v35 = ButtonSprite::create( (ButtonSprite *)"Unlock\nLayers", (const char *)&word_32, 0, 0.4, 1, "bigFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(30.0), v137); ((void (__fastcall *)(ButtonSprite *, int))v35->setScale)(v35, 1061997773); v188 = 0; v187 = EditorPauseLayer::onUnlockAllLayers; v36 = CCMenuItemSpriteExtra::create( v35, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(EditorPauseLayer::onUnlockAllLayers, (unsigned int)a1)); v9->addChild(v9, v36); v37 = v36->setPosition; v38 = (int)v32->getPosition(v32); cocos2d::CCPoint::CCPoint(&v235, 0.0, 30.0); cocos2d::CCPoint::operator+(&v236, v38, &v235); v37(v36, &v236); v39 = ButtonSprite::create( (ButtonSprite *)"Create\nExtras", (const char *)&word_32, 0, 0.4, 1, "bigFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(30.0), v138); ((void (__fastcall *)(ButtonSprite *, int))v39->setScale)(v39, 1061997773); v190 = 0; v189 = EditorPauseLayer::onCreateExtras; v156 = CCMenuItemSpriteExtra::create( v39, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(EditorPauseLayer::onCreateExtras, (unsigned int)a1)); v9->addChild(v9, v156); v40 = v156->setPosition; v41 = (int)v36->getPosition(v36); cocos2d::CCPoint::CCPoint(&v235, 0.0, 30.0); cocos2d::CCPoint::operator+(&v236, v41, &v235); v40(v156, &v236); v42 = ButtonSprite::create( (ButtonSprite *)"Paste+\nColor", (const char *)&word_32, 0, 0.4, 1, "bigFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(30.0), v139); ((void (__fastcall *)(ButtonSprite *, int))v42->setScale)(v42, 1061997773); v192 = 0; v191 = EditorPauseLayer::onPasteWColor; v43 = CCMenuItemSpriteExtra::create( v42, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(EditorPauseLayer::onPasteWColor, (unsigned int)a1)); v9->addChild(v9, v43); v162 = v156; v44 = v43->setPosition; v45 = (int)v156->getPosition(v156); cocos2d::CCPoint::CCPoint(&v235, 0.0, 30.0); cocos2d::CCPoint::operator+(&v236, v45, &v235); v44(v43, &v236); v46 = ButtonSprite::create( (ButtonSprite *)"Copy+\nColor", (const char *)&word_32, 0, 0.4, 1, "bigFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(30.0), v140); ((void (__fastcall *)(ButtonSprite *, int))v46->setScale)(v46, 1061997773); v194 = 0; v193 = EditorPauseLayer::onCopyWColor; v47 = CCMenuItemSpriteExtra::create( v46, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(EditorPauseLayer::onCopyWColor, (unsigned int)a1)); v9->addChild(v9, v47); v48 = v47->setPosition; v49 = (int)v43->getPosition(v43); cocos2d::CCPoint::CCPoint(&v235, 0.0, 30.0); cocos2d::CCPoint::operator+(&v236, v49, &v235); v48(v47, &v236); v50 = ButtonSprite::create( (ButtonSprite *)"Build\nHelper", (const char *)&word_32, 0, 0.4, 1, "bigFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(30.0), v141); ((void (__fastcall *)(ButtonSprite *, int))v50->setScale)(v50, 1061997773); v196 = 0; v195 = EditorPauseLayer::onBuildHelper; v157 = CCMenuItemSpriteExtra::create( v50, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(EditorPauseLayer::onBuildHelper, (unsigned int)a1)); v9->addChild(v9, v157); v51 = v157->setPosition; v52 = (int)v47->getPosition(v47); cocos2d::CCPoint::CCPoint(&v235, 0.0, 30.0); cocos2d::CCPoint::operator+(&v236, v52, &v235); v51(v157, &v236); v53 = ButtonSprite::create( (ButtonSprite *)"Create\nLoop", (const char *)&dword_1C + 2, 0, 0.4, 1, "bigFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(30.0), v142); ((void (__fastcall *)(ButtonSprite *, int))v53->setScale)(v53, 1061997773); v198 = 0; v197 = EditorPauseLayer::onCreateLoop; v54 = CCMenuItemSpriteExtra::create( v53, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(EditorPauseLayer::onCreateLoop, (unsigned int)a1)); v9->addChild(v9, v54); v159 = v54->setPosition; v55 = (int)v157->getPosition(v157); cocos2d::CCPoint::CCPoint(&v235, -50.0, 30.0); cocos2d::CCPoint::operator+(&v236, v55, &v235); v159(v54, &v236); v56 = ButtonSprite::create( (ButtonSprite *)"Re-\nGroup", (const char *)&dword_1C + 2, 0, 0.4, 1, "bigFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(30.0), v143); ((void (__fastcall *)(ButtonSprite *, int))v56->setScale)(v56, 1061997773); v200 = 0; v199 = EditorPauseLayer::onReGroup; v57 = CCMenuItemSpriteExtra::create( v56, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(EditorPauseLayer::onReGroup, (unsigned int)a1)); v9->addChild(v9, v57); v160 = v57->setPosition; v58 = (int)v54->getPosition(v54); cocos2d::CCPoint::CCPoint(&v235, 0.0, 30.0); cocos2d::CCPoint::operator+(&v236, v58, &v235); v160(v57, &v236); v59 = ButtonSprite::create( (ButtonSprite *)"AlignX", (const char *)&dword_1C + 2, 0, 0.4, 1, "bigFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(30.0), v144); ((void (__fastcall *)(ButtonSprite *, int))v59->setScale)(v59, 1061997773); v202 = 0; v201 = EditorPauseLayer::onAlignX; v60 = CCMenuItemSpriteExtra::create( v59, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(EditorPauseLayer::onAlignX, (unsigned int)a1)); v9->addChild(v9, v60); v161 = v60->setPosition; v61 = (int)v157->getPosition(v157); cocos2d::CCPoint::CCPoint(&v235, -50.0, 0.0); cocos2d::CCPoint::operator+(&v236, v61, &v235); v161(v60, &v236); v62 = ButtonSprite::create( (ButtonSprite *)"AlignY", (const char *)&dword_1C + 2, 0, 0.4, 1, "bigFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(30.0), v145); ((void (__fastcall *)(ButtonSprite *, int))v62->setScale)(v62, 1061997773); v204 = 0; v203 = EditorPauseLayer::onAlignY; v63 = CCMenuItemSpriteExtra::create( v62, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(EditorPauseLayer::onAlignY, (unsigned int)a1)); v9->addChild(v9, v63); v64 = v63->setPosition; v65 = (int)v47->getPosition(v47); cocos2d::CCPoint::CCPoint(&v235, -50.0, 0.0); cocos2d::CCPoint::operator+(&v236, v65, &v235); v64(v63, &v236); v66 = ButtonSprite::create( (ButtonSprite *)"Select\nAll", (const char *)&dword_1C + 2, 0, 0.4, 1, "bigFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(30.0), v146); ((void (__fastcall *)(ButtonSprite *, int))v66->setScale)(v66, 1061997773); v206 = 0; v205 = EditorPauseLayer::onSelectAll; v67 = CCMenuItemSpriteExtra::create( v66, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(EditorPauseLayer::onSelectAll, (unsigned int)a1)); v9->addChild(v9, v67); v68 = v67->setPosition; v69 = (int)v162->getPosition(v162); cocos2d::CCPoint::CCPoint(&v235, -50.0, 30.0); cocos2d::CCPoint::operator+(&v236, v69, &v235); v68(v67, &v236); v70 = ButtonSprite::create( (ButtonSprite *)"Select\nAll Left", (const char *)&dword_1C + 2, 0, 0.4, 1, "bigFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(30.0), v147); ((void (__fastcall *)(ButtonSprite *, int))v70->setScale)(v70, 1061997773); v208 = 0; v207 = EditorPauseLayer::onSelectAllLeft; v71 = CCMenuItemSpriteExtra::create( v70, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(EditorPauseLayer::onSelectAllLeft, (unsigned int)a1)); v9->addChild(v9, v71); v72 = v71->setPosition; v73 = (int)v67->getPosition(v67); cocos2d::CCPoint::CCPoint(&v235, 0.0, -30.0); cocos2d::CCPoint::operator+(&v236, v73, &v235); v72(v71, &v236); v74 = ButtonSprite::create( (ButtonSprite *)"Select\nAll Right", (const char *)&dword_1C + 2, 0, 0.4, 1, "bigFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(30.0), v148); ((void (__fastcall *)(ButtonSprite *, int))v74->setScale)(v74, 1061997773); v210 = 0; v209 = EditorPauseLayer::onSelectAllRight; v75 = CCMenuItemSpriteExtra::create( v74, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(EditorPauseLayer::onSelectAllRight, (unsigned int)a1)); v9->addChild(v9, v75); v76 = v75->setPosition; v77 = (int)v71->getPosition(v71); cocos2d::CCPoint::CCPoint(&v235, 0.0, -30.0); cocos2d::CCPoint::operator+(&v236, v77, &v235); v76(v75, &v236); v78 = ButtonSprite::create( (ButtonSprite *)"New\nGroupX", (const char *)&dword_1C + 2, 0, 0.4, 1, "bigFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(30.0), v149); ((void (__fastcall *)(ButtonSprite *, int))v78->setScale)(v78, 1061997773); v212 = 0; v211 = EditorPauseLayer::onNewGroupX; v79 = CCMenuItemSpriteExtra::create( v78, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(EditorPauseLayer::onNewGroupX, (unsigned int)a1)); v9->addChild(v9, v79); v80 = v79->setPosition; v81 = (int)v75->getPosition(v75); cocos2d::CCPoint::CCPoint(&v235, 0.0, -30.0); cocos2d::CCPoint::operator+(&v236, v81, &v235); v80(v79, &v236); v82 = ButtonSprite::create( (ButtonSprite *)"New\nGroupY", (const char *)&dword_1C + 2, 0, 0.4, 1, "bigFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(30.0), v150); ((void (__fastcall *)(ButtonSprite *, int))v82->setScale)(v82, 1061997773); v214 = 0; v213 = EditorPauseLayer::onNewGroupY; v83 = CCMenuItemSpriteExtra::create( v82, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(EditorPauseLayer::onNewGroupY, (unsigned int)a1)); v9->addChild(v9, v83); v84 = v83->setPosition; v85 = (int)v79->getPosition(v79); cocos2d::CCPoint::CCPoint(&v235, 0.0, -30.0); cocos2d::CCPoint::operator+(&v236, v85, &v235); v84(v83, &v236); v86 = cocos2d::CCDirector::sharedDirector(); v153 = (float)(COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v86)) + 25.0) + 0.0; cocos2d::CCPoint::CCPoint(&v164, 8.0, 0.0); sub_776584((int)&v233, "Ignore Damage"); v216 = 0; v215 = EditorPauseLayer::toggleIgnoreDamage; v87 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v87, "0009"); v89 = cocos2d::CCDirector::sharedDirector(); v90 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v89)); cocos2d::CCPoint::CCPoint(&v235, v153, v90 + 24.0); cocos2d::CCPoint::CCPoint(&v236, &v164); GameToolbox::createToggleButton( (int)&v233, (unsigned int)v215, v216, GameVariable, v9, &v235, a1, a1, 0.55, 0.42, 85.0, (int)&v236, (int)"bigFont.fnt", 0, 0, nullptr); sub_774008(&v233); sub_776584((int)&v233, "Select Filter"); v217 = EditorPauseLayer::toggleSelectFilter; v218 = 0; v91 = GameManager::sharedState(); v92 = GameManager::getGameVariable(v91, "0064"); v93 = cocos2d::CCDirector::sharedDirector(); v94 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v93)); cocos2d::CCPoint::CCPoint(&v235, v153, v94 + 48.0); cocos2d::CCPoint::CCPoint(&v236, &v164); GameToolbox::createToggleButton( (int)&v233, (unsigned int)v217, v218, v92, v9, &v235, a1, a1, 0.55, 0.42, 85.0, (int)&v236, (int)"bigFont.fnt", 0, 0, nullptr); sub_774008(&v233); sub_776584((int)&v233, "Show Grid"); v219 = EditorPauseLayer::toggleEditorGrid; v220 = 0; v95 = GameManager::sharedState(); v96 = GameManager::getGameVariable(v95, "0038"); v97 = cocos2d::CCDirector::sharedDirector(); v98 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v97)); cocos2d::CCPoint::CCPoint(&v235, v153, v98 + 72.0); cocos2d::CCPoint::CCPoint(&v236, &v164); GameToolbox::createToggleButton( (int)&v233, (unsigned int)v219, v220, v96, v9, &v235, a1, a1, 0.55, 0.42, 85.0, (int)&v236, (int)"bigFont.fnt", 0, 0, nullptr); sub_774008(&v233); sub_776584((int)&v233, "Show Object Info"); v221 = EditorPauseLayer::toggleShowObjectInfo; v222 = 0; v99 = GameManager::sharedState(); v100 = GameManager::getGameVariable(v99, "0041"); v101 = cocos2d::CCDirector::sharedDirector(); v102 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v101)); cocos2d::CCPoint::CCPoint(&v235, v153, v102 + 96.0); cocos2d::CCPoint::CCPoint(&v236, &v164); GameToolbox::createToggleButton( (int)&v233, (unsigned int)v221, v222, v100, v9, &v235, a1, a1, 0.55, 0.42, 85.0, (int)&v236, (int)"bigFont.fnt", 0, 0, nullptr); sub_774008(&v233); sub_776584((int)&v233, "Show Ground"); v223 = EditorPauseLayer::toggleEditorGround; v224 = 0; v103 = GameManager::sharedState(); LOBYTE(v83) = GameManager::getGameVariable(v103, "0037"); v104 = cocos2d::CCDirector::sharedDirector(); v105 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v104)); cocos2d::CCPoint::CCPoint(&v235, v153, v105 + 120.0); cocos2d::CCPoint::CCPoint(&v236, &v164); GameToolbox::createToggleButton( (int)&v233, (unsigned int)v223, v224, (bool)v83, v9, &v235, a1, a1, 0.55, 0.42, 85.0, (int)&v236, (int)"bigFont.fnt", 0, 0, nullptr); sub_774008(&v233); sub_776584((int)&v233, "Preview Shaders"); v225 = EditorPauseLayer::togglePreviewShaders; v226 = 0; v106 = GameManager::sharedState(); LOBYTE(v83) = GameManager::getGameVariable(v106, "0158"); v107 = cocos2d::CCDirector::sharedDirector(); v108 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v107)); cocos2d::CCPoint::CCPoint(&v235, v153, v108 + 144.0); cocos2d::CCPoint::CCPoint(&v236, &v164); GameToolbox::createToggleButton( (int)&v233, (unsigned int)v225, v226, (bool)v83, v9, &v235, a1, a1, 0.55, 0.42, 85.0, (int)&v236, (int)"bigFont.fnt", 0, 0, nullptr); sub_774008(&v233); sub_776584((int)&v233, "Preview Particles"); v227 = EditorPauseLayer::togglePreviewParticles; v228 = 0; v109 = GameManager::sharedState(); LOBYTE(v83) = GameManager::getGameVariable(v109, "0117"); v110 = cocos2d::CCDirector::sharedDirector(); v111 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v110)); cocos2d::CCPoint::CCPoint(&v235, v153, v111 + 168.0); cocos2d::CCPoint::CCPoint(&v236, &v164); GameToolbox::createToggleButton( (int)&v233, (unsigned int)v227, v228, (bool)v83, v9, &v235, a1, a1, 0.55, 0.42, 85.0, (int)&v236, (int)"bigFont.fnt", 0, 0, nullptr); sub_774008(&v233); sub_776584((int)&v233, "Preview Animations"); v229 = EditorPauseLayer::togglePreviewAnim; v230 = 0; v112 = GameManager::sharedState(); LOBYTE(v83) = GameManager::getGameVariable(v112, "0118"); v113 = cocos2d::CCDirector::sharedDirector(); v114 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v113)); cocos2d::CCPoint::CCPoint(&v235, v153, v114 + 192.0); cocos2d::CCPoint::CCPoint(&v236, &v164); GameToolbox::createToggleButton( (int)&v233, (unsigned int)v229, v230, (bool)v83, v9, &v235, a1, a1, 0.55, 0.42, 85.0, (int)&v236, (int)"bigFont.fnt", 0, 0, nullptr); sub_774008(&v233); sub_776584((int)&v233, "Preview Mode"); v231 = EditorPauseLayer::toggleEditorColorMode; v232 = 0; v115 = GameManager::sharedState(); LOBYTE(v83) = GameManager::getGameVariable(v115, "0036"); v116 = cocos2d::CCDirector::sharedDirector(); v117 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v116)); cocos2d::CCPoint::CCPoint(&v235, v153, v117 + 216.0); cocos2d::CCPoint::CCPoint(&v236, &v164); GameToolbox::createToggleButton( (int)&v233, (unsigned int)v231, v232, (bool)v83, v9, &v235, a1, a1, 0.55, 0.42, 85.0, (int)&v236, (int)"bigFont.fnt", 0, 0, nullptr); sub_774008(&v233); sub_776584((int)&v166, "Hide Invisible"); v233 = EditorPauseLayer::toggleHideInvisible; v234 = 0; v118 = GameManager::sharedState(); v119 = GameManager::getGameVariable(v118, "0121"); v120 = cocos2d::CCDirector::sharedDirector(); v121 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v120)); cocos2d::CCPoint::CCPoint(&v235, v153, v121 + 240.0); cocos2d::CCPoint::CCPoint(&v236, &v164); GameToolbox::createToggleButton( (int)&v166, (unsigned int)v233, v234, v119, v9, &v235, a1, a1, 0.55, 0.42, 85.0, (int)&v236, (int)"bigFont.fnt", 0, 0, nullptr); sub_774008(&v166); sub_776584((int)&v165, "Show Hitboxes"); LODWORD(v235.x) = EditorPauseLayer::toggleDebugDraw; v235.y = 0.0; v122 = GameManager::sharedState(); v123 = GameManager::getGameVariable(v122, "0045"); v124 = cocos2d::CCDirector::sharedDirector(); v125 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v124)); cocos2d::CCPoint::CCPoint(&v166, v153, v125 + 264.0); cocos2d::CCPoint::CCPoint(&v236, &v164); GameToolbox::createToggleButton( (int)&v165, LODWORD(v235.x), LODWORD(v235.y), v123, v9, &v166, a1, a1, 0.55, 0.42, 85.0, (int)&v236, (int)"bigFont.fnt", 0, 0, nullptr); sub_774008(&v165); v126 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_optionsBtn_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, int))v126->setScale)(v126, 1058642330); v236.y = 0.0; LODWORD(v236.x) = EditorPauseLayer::onOptions; v127 = CCMenuItemSpriteExtra::create( v126, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(EditorPauseLayer::onOptions, (unsigned int)a1)); v9->addChild(v9, v127); v128 = v127->setPosition; v129 = (int)v157->getPosition(v157); cocos2d::CCPoint::CCPoint(&v165, 0.0, 60.0); cocos2d::CCPoint::operator+(&v166, v129, &v165); v128(v127, &v166); }
GD Web Decomp Icon

GD Web Decomp

Raw Source