// // EditorPauseLayer::customSetup from 0x1002919f0 to 0x100293683 (7315 bytes) // // 1 xrefs: // > @ 0x1008f7560 // // 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 __fastcall EditorPauseLayer::customSetup(EditorPauseLayer *a1) { cocos2d::CCMenu *v1; // r14 ButtonSprite *v2; // rax CCMenuItemSpriteExtra *v3; // rax CCMenuItemSpriteExtra *v4; // rsi cocos2d::CCMenu_vtbl *v5; // rax CCMenuItemSpriteExtra *v6; // r15 ButtonSprite *v7; // r13 CCMenuItemSpriteExtra *v8; // r12 ButtonSprite *v9; // rax CCMenuItemSpriteExtra *v10; // rax ButtonSprite *v11; // rbx ButtonSprite *v12; // rbx cocos2d::CCMenu *v13; // r13 EditorPauseLayer *v14; // rbx cocos2d::CCSprite *v15; // rax cocos2d::CCSprite *v16; // rax cocos2d::CCSprite *v17; // rax CCMenuItemSpriteExtra *v18; // rax cocos2d::CCDirector *v19; // rax double v20; // xmm0_8 CCMenuItemSpriteExtra *m_guidelinesOnButton; // r15 __int64 v22; // rax GameManager *v23; // rax ButtonSprite *v24; // r15 CCMenuItemSpriteExtra *v25; // r15 cocos2d::CCDirector *v26; // rax cocos2d::CCDirector *v27; // rax double v28; // xmm0_8 ButtonSprite *v29; // r12 CCMenuItemSpriteExtra *v30; // r12 unsigned __int64 *v31; // r15 ButtonSprite *v32; // r14 CCMenuItemSpriteExtra *v33; // r15 unsigned __int64 *v34; // r14 ButtonSprite *v35; // r14 cocos2d::CCObject *v36; // rbx CCMenuItemSpriteExtra *v37; // r12 unsigned __int64 *v38; // r14 ButtonSprite *v39; // r14 CCMenuItemSpriteExtra *v40; // r13 unsigned __int64 *v41; // r14 ButtonSprite *v42; // r14 CCMenuItemSpriteExtra *v43; // r15 unsigned __int64 *v44; // r14 ButtonSprite *v45; // r14 CCMenuItemSpriteExtra *v46; // r12 unsigned __int64 *v47; // r14 ButtonSprite *v48; // r14 CCMenuItemSpriteExtra *v49; // r13 unsigned __int64 *v50; // r14 ButtonSprite *v51; // r14 CCMenuItemSpriteExtra *v52; // r12 unsigned __int64 *v53; // r14 ButtonSprite *v54; // r14 CCMenuItemSpriteExtra *v55; // r13 unsigned __int64 *v56; // r14 ButtonSprite *v57; // r14 CCMenuItemSpriteExtra *v58; // r13 unsigned __int64 *v59; // r14 ButtonSprite *v60; // r14 CCMenuItemSpriteExtra *v61; // r13 unsigned __int64 *v62; // r14 ButtonSprite *v63; // r14 CCMenuItemSpriteExtra *v64; // r15 unsigned __int64 *v65; // r14 ButtonSprite *v66; // r14 CCMenuItemSpriteExtra *v67; // r12 void *v68; // rbx unsigned __int64 *v69; // r14 ButtonSprite *v70; // r14 CCMenuItemSpriteExtra *v71; // r15 unsigned __int64 *v72; // r14 ButtonSprite *v73; // r14 CCMenuItemSpriteExtra *v74; // r12 unsigned __int64 *v75; // r14 cocos2d::CCDirector *v76; // rax GameManager *v77; // rax cocos2d::CCDirector *v78; // rax double v79; // xmm0_8 GameManager *v80; // rax bool GameVariable; // r15 cocos2d::CCDirector *v82; // rax double v83; // xmm0_8 GameManager *v84; // rax bool v85; // r15 cocos2d::CCDirector *v86; // rax double v87; // xmm0_8 GameManager *v88; // rax bool v89; // r15 cocos2d::CCDirector *v90; // rax double v91; // xmm0_8 GameManager *v92; // rax bool v93; // r15 cocos2d::CCDirector *v94; // rax double v95; // xmm0_8 GameManager *v96; // rax bool v97; // r15 cocos2d::CCDirector *v98; // rax double v99; // xmm0_8 GameManager *v100; // rax bool v101; // r15 cocos2d::CCDirector *v102; // rax double v103; // xmm0_8 GameManager *v104; // rax bool v105; // r15 cocos2d::CCDirector *v106; // rax double v107; // xmm0_8 GameManager *v108; // rax bool v109; // r15 cocos2d::CCDirector *v110; // rax double v111; // xmm0_8 GameManager *v112; // rax bool v113; // r15 cocos2d::CCDirector *v114; // rax double v115; // xmm0_8 GameManager *v116; // rax bool v117; // r15 cocos2d::CCDirector *v118; // rax double v119; // xmm0_8 ButtonSprite *v120; // r14 CCMenuItemSpriteExtra *v121; // r15 ButtonSprite *v122; // r13 unsigned __int64 *v123; // r14 void *v124; // r12 cocos2d::CCSprite *v125; // r14 CCMenuItemSpriteExtra *v126; // rbx unsigned __int64 *v127; // r14 float v128; // [rsp+38h] [rbp-178h] BYREF CCMenuItemSpriteExtra *v129; // [rsp+40h] [rbp-170h] char v130; // [rsp+48h] [rbp-168h] BYREF _BYTE v131[23]; // [rsp+49h] [rbp-167h] BYREF void *v132[3]; // [rsp+60h] [rbp-150h] BYREF void *v133[3]; // [rsp+78h] [rbp-138h] BYREF char v134; // [rsp+90h] [rbp-120h] BYREF _BYTE v135[23]; // [rsp+91h] [rbp-11Fh] BYREF char v136; // [rsp+A8h] [rbp-108h] BYREF _BYTE v137[23]; // [rsp+A9h] [rbp-107h] BYREF char v138; // [rsp+C0h] [rbp-F0h] BYREF _BYTE v139[23]; // [rsp+C1h] [rbp-EFh] BYREF char v140; // [rsp+D8h] [rbp-D8h] BYREF _BYTE v141[23]; // [rsp+D9h] [rbp-D7h] BYREF void *v142[3]; // [rsp+F0h] [rbp-C0h] BYREF char v143; // [rsp+108h] [rbp-A8h] BYREF _BYTE v144[23]; // [rsp+109h] [rbp-A7h] BYREF char v145; // [rsp+120h] [rbp-90h] BYREF _BYTE v146[23]; // [rsp+121h] [rbp-8Fh] BYREF char v147; // [rsp+138h] [rbp-78h] BYREF _BYTE v148[23]; // [rsp+139h] [rbp-77h] BYREF ButtonSprite *v149; // [rsp+150h] [rbp-60h] void *v150; // [rsp+158h] [rbp-58h] unsigned __int64 v151; // [rsp+160h] [rbp-50h] BYREF EditorPauseLayer *v152; // [rsp+168h] [rbp-48h] ButtonSprite *v153; // [rsp+170h] [rbp-40h] double v154; // [rsp+178h] [rbp-38h] BYREF unsigned __int64 v155[6]; // [rsp+180h] [rbp-30h] BYREF double v156; // 0:xmm0_8.8 double v157; // 0:xmm0_8.8 ((void (__fastcall *)(EditorPauseLayer *, __int64))a1->setOpacity)(a1, 175); cocos2d::CCDirector::sharedDirector(); *(cocos2d::CCSize *)&v156 = cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v128); v1 = cocos2d::CCMenu::create(); ((void (__fastcall *)(EditorPauseLayer *, cocos2d::CCMenu *, double))a1->addChild)(a1, v1, v156); v2 = ButtonSprite::create_1("Resume", 180, 0, 0.80000001, 1, "goldFont.fnt", "GJ_button_01.png", 28.0); v3 = CCMenuItemSpriteExtra::create( v2, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)EditorPauseLayer::onResume); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v1->addChild)(v1, v3); v153 = ButtonSprite::create_1("Save and Play", 180, 0, 0.80000001, 1, "goldFont.fnt", "GJ_button_01.png", 28.0); v4 = CCMenuItemSpriteExtra::create( v153, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)EditorPauseLayer::onSaveAndPlay); v5 = v1->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v150 = v4; ((void (__fastcall *)(cocos2d::CCMenu *))v5->addChild)(v1); v149 = ButtonSprite::create_1("Save and Exit", 180, 0, 0.80000001, 1, "goldFont.fnt", "GJ_button_01.png", 28.0); v6 = CCMenuItemSpriteExtra::create( v149, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)EditorPauseLayer::onSaveAndExit); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v1->addChild)(v1, v6); v7 = ButtonSprite::create_1("Save", 180, 0, 0.80000001, 1, "goldFont.fnt", "GJ_button_01.png", 28.0); v8 = CCMenuItemSpriteExtra::create( v7, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)EditorPauseLayer::onSave); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v1->addChild)(v1, v8); v9 = ButtonSprite::create_1("Exit", 180, 0, 0.80000001, 1, "goldFont.fnt", "GJ_button_01.png", 28.0); v10 = CCMenuItemSpriteExtra::create( v9, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)EditorPauseLayer::onExitNoSave); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v1->addChild)(v1, v10); cocos2d::CCMenu::alignItemsVerticallyWithPadding(v1, 14.0); v152 = a1; if ( a1->m_editorLayer->m_level->m_levelType != Editor ) { memset(&v154, 75, 3); v11 = v153; ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, double *))v153->m_BGSprite->setColor)( v153->m_BGSprite, &v154); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))v11->m_label->setColor)(v11->m_label, &v154); (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v150 + 1040LL))(v150, 0); v12 = v149; ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, double *))v149->m_BGSprite->setColor)( v149->m_BGSprite, &v154); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))v12->m_label->setColor)(v12->m_label, &v154); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v6->setEnabled)(v6, 0); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, double *))v7->m_BGSprite->setColor)( v7->m_BGSprite, &v154); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))v7->m_label->setColor)(v7->m_label, &v154); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v8->setEnabled)(v8, 0); } v13 = cocos2d::CCMenu::create(); v14 = v152; ((void (__fastcall *)(EditorPauseLayer *, cocos2d::CCMenu *))v152->addChild)(v152, v13); v15 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_audioOnBtn_001.png"); v14->m_guidelinesOffButton = CCMenuItemSpriteExtra::create( v15, nullptr, v14, (cocos2d::SEL_MenuHandler)(unsigned __int64)EditorPauseLayer::onSong); v16 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_audioOffBtn_001.png"); v14->m_guidelinesOnButton = CCMenuItemSpriteExtra::create( v16, nullptr, v14, (cocos2d::SEL_MenuHandler)(unsigned __int64)EditorPauseLayer::onSong); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v13->addChild)(v13, v14->m_guidelinesOffButton); v17 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_helpBtn_001.png"); v18 = CCMenuItemSpriteExtra::create( v17, nullptr, v14, (cocos2d::SEL_MenuHandler)(unsigned __int64)EditorPauseLayer::onHelp); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v13->addChild)(v13, v18); cocos2d::CCMenu::alignItemsHorizontally(v13); *(float *)&v153 = v128 * 0.5; v19 = cocos2d::CCDirector::sharedDirector(); v20 = sub_100484D80(v19); sub_10028CBE0((float *)&v154, *(float *)&v153, *(float *)&v20 + 28.0); ((void (__fastcall *)(cocos2d::CCMenu *, double *))v13->setPosition)(v13, &v154); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v13->addChild)(v13, v14->m_guidelinesOnButton); m_guidelinesOnButton = v14->m_guidelinesOnButton; v22 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v14->m_guidelinesOffButton->getPosition)(v14->m_guidelinesOffButton); ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))m_guidelinesOnButton->setPosition)(m_guidelinesOnButton, v22); v23 = GameManager::sharedState(); LODWORD(m_guidelinesOnButton) = v23->m_showSongMarkers; ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))v14->m_guidelinesOffButton->setVisible)( v14->m_guidelinesOffButton, v23->m_showSongMarkers); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v14->m_guidelinesOffButton->setEnabled)( v14->m_guidelinesOffButton, (unsigned int)m_guidelinesOnButton); LOBYTE(m_guidelinesOnButton) = (unsigned __int8)m_guidelinesOnButton ^ 1; ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v14->m_guidelinesOnButton->setVisible)( v14->m_guidelinesOnButton, (unsigned __int8)m_guidelinesOnButton); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v14->m_guidelinesOnButton->setEnabled)( v14->m_guidelinesOnButton, (unsigned __int8)m_guidelinesOnButton); v24 = ButtonSprite::create_1("Uncheck\nPortals", 50, 0, 0.40000001, 1, "bigFont.fnt", "GJ_button_04.png", 30.0); ((void (__fastcall *)(ButtonSprite *, float))v24->setScale)(v24, 0.80000001); v25 = CCMenuItemSpriteExtra::create( v24, nullptr, v14, (cocos2d::SEL_MenuHandler)(unsigned __int64)EditorPauseLayer::uncheckAllPortals); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v13->addChild)(v13, v25); v26 = cocos2d::CCDirector::sharedDirector(); *(float *)&v153 = sub_100484DA0(v26) + -50.0; v27 = cocos2d::CCDirector::sharedDirector(); v28 = sub_100484D80(v27); sub_10028CBE0((float *)v155, *(float *)&v153, *(float *)&v28 + 30.0); *(cocos2d::CCPoint *)&v157 = cocos2d::CCNode::convertToNodeSpace( (cocos2d::CCNode *)&v154, (const cocos2d::CCPoint *)v13); ((void (__fastcall *)(CCMenuItemSpriteExtra *, double *, double))v25->setPosition)(v25, &v154, v157); v29 = ButtonSprite::create_1("Reset\nUnused", 50, 0, 0.40000001, 1, "bigFont.fnt", "GJ_button_04.png", 30.0); ((void (__fastcall *)(ButtonSprite *, float))v29->setScale)(v29, 0.80000001); v30 = CCMenuItemSpriteExtra::create( v29, nullptr, v14, (cocos2d::SEL_MenuHandler)(unsigned __int64)EditorPauseLayer::onResetUnusedColors); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v13->addChild)(v13, v30); v31 = (unsigned __int64 *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v25->getPosition)(v25); sub_10028CBE0((float *)v155, 0.0, 30.0); sub_10028CCE0(&v154, v31, v155); ((void (__fastcall *)(CCMenuItemSpriteExtra *, double *))v30->setPosition)(v30, &v154); v32 = ButtonSprite::create_1("Unlock\nLayers", 50, 0, 0.40000001, 1, "bigFont.fnt", "GJ_button_04.png", 30.0); ((void (__fastcall *)(ButtonSprite *, float))v32->setScale)(v32, 0.80000001); v33 = CCMenuItemSpriteExtra::create( v32, nullptr, v152, (cocos2d::SEL_MenuHandler)(unsigned __int64)EditorPauseLayer::onUnlockAllLayers); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v13->addChild)(v13, v33); v34 = (unsigned __int64 *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v30->getPosition)(v30); sub_10028CBE0((float *)v155, 0.0, 30.0); sub_10028CCE0(&v154, v34, v155); ((void (__fastcall *)(CCMenuItemSpriteExtra *, double *))v33->setPosition)(v33, &v154); v35 = ButtonSprite::create_1("Create\nExtras", 50, 0, 0.40000001, 1, "bigFont.fnt", "GJ_button_04.png", 30.0); ((void (__fastcall *)(ButtonSprite *, float))v35->setScale)(v35, 0.80000001); v36 = v152; v37 = CCMenuItemSpriteExtra::create( v35, nullptr, v152, (cocos2d::SEL_MenuHandler)(unsigned __int64)EditorPauseLayer::onCreateExtras); v150 = v13; ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v13->addChild)(v13, v37); v38 = (unsigned __int64 *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v33->getPosition)(v33); sub_10028CBE0((float *)v155, 0.0, 30.0); sub_10028CCE0(&v154, v38, v155); ((void (__fastcall *)(CCMenuItemSpriteExtra *, double *))v37->setPosition)(v37, &v154); v39 = ButtonSprite::create_1("Paste+\nColor", 50, 0, 0.40000001, 1, "bigFont.fnt", "GJ_button_04.png", 30.0); ((void (__fastcall *)(ButtonSprite *, float))v39->setScale)(v39, 0.80000001); v40 = CCMenuItemSpriteExtra::create( v39, nullptr, v36, (cocos2d::SEL_MenuHandler)(unsigned __int64)EditorPauseLayer::onPasteWColor); (*(void (__fastcall **)(void *, CCMenuItemSpriteExtra *))(*(_QWORD *)v150 + 440LL))(v150, v40); v153 = (ButtonSprite *)v37; v41 = (unsigned __int64 *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v37->getPosition)(v37); sub_10028CBE0((float *)v155, 0.0, 30.0); sub_10028CCE0(&v154, v41, v155); ((void (__fastcall *)(CCMenuItemSpriteExtra *, double *))v40->setPosition)(v40, &v154); v42 = ButtonSprite::create_1("Copy+\nColor", 50, 0, 0.40000001, 1, "bigFont.fnt", "GJ_button_04.png", 30.0); ((void (__fastcall *)(ButtonSprite *, float))v42->setScale)(v42, 0.80000001); v43 = CCMenuItemSpriteExtra::create( v42, nullptr, v36, (cocos2d::SEL_MenuHandler)(unsigned __int64)EditorPauseLayer::onCopyWColor); (*(void (__fastcall **)(void *, CCMenuItemSpriteExtra *))(*(_QWORD *)v150 + 440LL))(v150, v43); v44 = (unsigned __int64 *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v40->getPosition)(v40); sub_10028CBE0((float *)v155, 0.0, 30.0); sub_10028CCE0(&v154, v44, v155); ((void (__fastcall *)(CCMenuItemSpriteExtra *, double *))v43->setPosition)(v43, &v154); v45 = ButtonSprite::create_1("Build\nHelper", 50, 0, 0.40000001, 1, "bigFont.fnt", "GJ_button_04.png", 30.0); ((void (__fastcall *)(ButtonSprite *, float))v45->setScale)(v45, 0.80000001); v46 = CCMenuItemSpriteExtra::create( v45, nullptr, v36, (cocos2d::SEL_MenuHandler)(unsigned __int64)EditorPauseLayer::onBuildHelper); (*(void (__fastcall **)(void *, CCMenuItemSpriteExtra *))(*(_QWORD *)v150 + 440LL))(v150, v46); v129 = v43; v47 = (unsigned __int64 *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v43->getPosition)(v43); sub_10028CBE0((float *)v155, 0.0, 30.0); sub_10028CCE0(&v154, v47, v155); ((void (__fastcall *)(CCMenuItemSpriteExtra *, double *))v46->setPosition)(v46, &v154); v48 = ButtonSprite::create_1("Create\nLoop", 30, 0, 0.40000001, 1, "bigFont.fnt", "GJ_button_04.png", 30.0); ((void (__fastcall *)(ButtonSprite *, float))v48->setScale)(v48, 0.80000001); v49 = CCMenuItemSpriteExtra::create( v48, nullptr, v36, (cocos2d::SEL_MenuHandler)(unsigned __int64)EditorPauseLayer::onCreateLoop); (*(void (__fastcall **)(void *, CCMenuItemSpriteExtra *))(*(_QWORD *)v150 + 440LL))(v150, v49); v149 = (ButtonSprite *)v46; v50 = (unsigned __int64 *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v46->getPosition)(v46); sub_10028CBE0((float *)v155, -50.0, 30.0); sub_10028CCE0(&v154, v50, v155); ((void (__fastcall *)(CCMenuItemSpriteExtra *, double *))v49->setPosition)(v49, &v154); v51 = ButtonSprite::create_1("Re-\nGroup", 30, 0, 0.40000001, 1, "bigFont.fnt", "GJ_button_04.png", 30.0); ((void (__fastcall *)(ButtonSprite *, float))v51->setScale)(v51, 0.80000001); v52 = CCMenuItemSpriteExtra::create( v51, nullptr, v36, (cocos2d::SEL_MenuHandler)(unsigned __int64)EditorPauseLayer::onReGroup); (*(void (__fastcall **)(void *, CCMenuItemSpriteExtra *))(*(_QWORD *)v150 + 440LL))(v150, v52); v53 = (unsigned __int64 *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v49->getPosition)(v49); sub_10028CBE0((float *)v155, 0.0, 30.0); sub_10028CCE0(&v154, v53, v155); ((void (__fastcall *)(CCMenuItemSpriteExtra *, double *))v52->setPosition)(v52, &v154); v54 = ButtonSprite::create_1("AlignX", 30, 0, 0.40000001, 1, "bigFont.fnt", "GJ_button_04.png", 30.0); ((void (__fastcall *)(ButtonSprite *, float))v54->setScale)(v54, 0.80000001); v55 = CCMenuItemSpriteExtra::create( v54, nullptr, v36, (cocos2d::SEL_MenuHandler)(unsigned __int64)EditorPauseLayer::onAlignX); (*(void (__fastcall **)(void *, CCMenuItemSpriteExtra *))(*(_QWORD *)v150 + 440LL))(v150, v55); v56 = (unsigned __int64 *)((__int64 (__fastcall *)(ButtonSprite *))v149->getPosition)(v149); sub_10028CBE0((float *)v155, -50.0, 0.0); sub_10028CCE0(&v154, v56, v155); ((void (__fastcall *)(CCMenuItemSpriteExtra *, double *))v55->setPosition)(v55, &v154); v57 = ButtonSprite::create_1("AlignY", 30, 0, 0.40000001, 1, "bigFont.fnt", "GJ_button_04.png", 30.0); ((void (__fastcall *)(ButtonSprite *, float))v57->setScale)(v57, 0.80000001); v58 = CCMenuItemSpriteExtra::create( v57, nullptr, v36, (cocos2d::SEL_MenuHandler)(unsigned __int64)EditorPauseLayer::onAlignY); (*(void (__fastcall **)(void *, CCMenuItemSpriteExtra *))(*(_QWORD *)v150 + 440LL))(v150, v58); v59 = (unsigned __int64 *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v129->getPosition)(v129); sub_10028CBE0((float *)v155, -50.0, 0.0); sub_10028CCE0(&v154, v59, v155); ((void (__fastcall *)(CCMenuItemSpriteExtra *, double *))v58->setPosition)(v58, &v154); v60 = ButtonSprite::create_1("Select\nAll", 30, 0, 0.40000001, 1, "bigFont.fnt", "GJ_button_04.png", 30.0); ((void (__fastcall *)(ButtonSprite *, float))v60->setScale)(v60, 0.80000001); v61 = CCMenuItemSpriteExtra::create( v60, nullptr, v36, (cocos2d::SEL_MenuHandler)(unsigned __int64)EditorPauseLayer::onSelectAll); (*(void (__fastcall **)(void *, CCMenuItemSpriteExtra *))(*(_QWORD *)v150 + 440LL))(v150, v61); v62 = (unsigned __int64 *)((__int64 (__fastcall *)(ButtonSprite *))v153->getPosition)(v153); sub_10028CBE0((float *)v155, -50.0, 30.0); sub_10028CCE0(&v154, v62, v155); ((void (__fastcall *)(CCMenuItemSpriteExtra *, double *))v61->setPosition)(v61, &v154); v63 = ButtonSprite::create_1("Select\nAll Left", 30, 0, 0.40000001, 1, "bigFont.fnt", "GJ_button_04.png", 30.0); ((void (__fastcall *)(ButtonSprite *, float))v63->setScale)(v63, 0.80000001); v64 = CCMenuItemSpriteExtra::create( v63, nullptr, v36, (cocos2d::SEL_MenuHandler)(unsigned __int64)EditorPauseLayer::onSelectAllLeft); (*(void (__fastcall **)(void *, CCMenuItemSpriteExtra *))(*(_QWORD *)v150 + 440LL))(v150, v64); v65 = (unsigned __int64 *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v61->getPosition)(v61); sub_10028CBE0((float *)v155, 0.0, -30.0); sub_10028CCE0(&v154, v65, v155); ((void (__fastcall *)(CCMenuItemSpriteExtra *, double *))v64->setPosition)(v64, &v154); v66 = ButtonSprite::create_1("Select\nAll Right", 30, 0, 0.40000001, 1, "bigFont.fnt", "GJ_button_04.png", 30.0); ((void (__fastcall *)(ButtonSprite *, float))v66->setScale)(v66, 0.80000001); v67 = CCMenuItemSpriteExtra::create( v66, nullptr, v36, (cocos2d::SEL_MenuHandler)(unsigned __int64)EditorPauseLayer::onSelectAllRight); v68 = v150; (*(void (__fastcall **)(void *, CCMenuItemSpriteExtra *))(*(_QWORD *)v150 + 440LL))(v150, v67); v69 = (unsigned __int64 *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v64->getPosition)(v64); sub_10028CBE0((float *)v155, 0.0, -30.0); sub_10028CCE0(&v154, v69, v155); ((void (__fastcall *)(CCMenuItemSpriteExtra *, double *))v67->setPosition)(v67, &v154); v70 = ButtonSprite::create_1("New\nGroupX", 30, 0, 0.40000001, 1, "bigFont.fnt", "GJ_button_04.png", 30.0); ((void (__fastcall *)(ButtonSprite *, float))v70->setScale)(v70, 0.80000001); v71 = CCMenuItemSpriteExtra::create( v70, nullptr, v152, (cocos2d::SEL_MenuHandler)(unsigned __int64)EditorPauseLayer::onNewGroupX); (*(void (__fastcall **)(void *, CCMenuItemSpriteExtra *))(*(_QWORD *)v68 + 440LL))(v68, v71); v72 = (unsigned __int64 *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v67->getPosition)(v67); sub_10028CBE0((float *)v155, 0.0, -30.0); sub_10028CCE0(&v154, v72, v155); ((void (__fastcall *)(CCMenuItemSpriteExtra *, double *))v71->setPosition)(v71, &v154); v73 = ButtonSprite::create_1("New\nGroupY", 30, 0, 0.40000001, 1, "bigFont.fnt", "GJ_button_04.png", 30.0); ((void (__fastcall *)(ButtonSprite *, float))v73->setScale)(v73, 0.80000001); v74 = CCMenuItemSpriteExtra::create( v73, nullptr, v152, (cocos2d::SEL_MenuHandler)(unsigned __int64)EditorPauseLayer::onNewGroupY); (*(void (__fastcall **)(void *, CCMenuItemSpriteExtra *))(*(_QWORD *)v68 + 440LL))(v68, v74); v75 = (unsigned __int64 *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v71->getPosition)(v71); sub_10028CBE0((float *)v155, 0.0, -30.0); sub_10028CCE0(&v154, v75, v155); ((void (__fastcall *)(CCMenuItemSpriteExtra *, double *))v74->setPosition)(v74, &v154); v76 = cocos2d::CCDirector::sharedDirector(); LODWORD(v153) = sub_100484D90(v76); sub_10028CBE0((float *)&v154, 8.0, 0.0); v134 = 26; strcpy(v135, "Ignore Damage"); v77 = GameManager::sharedState(); LOBYTE(v71) = GameManager::getGameVariable(v77, "0009"); v78 = cocos2d::CCDirector::sharedDirector(); v79 = sub_100484D80(v78); *(float *)&v153 = *(float *)&v153 + 25.0; sub_10028CBE0((float *)v155, *(float *)&v153, *(float *)&v79 + 24.0); sub_10028CC60(&v151, &v154); GameToolbox::createToggleButton( (unsigned int)&v134, (unsigned int)EditorPauseLayer::toggleIgnoreDamage, 0, (unsigned __int8)v71, (_DWORD)v68, (unsigned int)v155, (__int64)v152, (__int64)v152, (__int64)&v151, (__int64)"bigFont.fnt", 0, 0, 0); if ( (v134 & 1) != 0 ) operator delete(*(void **)&v135[15]); v136 = 26; strcpy(v137, "Select Filter"); v80 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v80, "0064"); v82 = cocos2d::CCDirector::sharedDirector(); v83 = sub_100484D80(v82); sub_10028CBE0((float *)v155, *(float *)&v153, *(float *)&v83 + 48.0); sub_10028CC60(&v151, &v154); GameToolbox::createToggleButton( (unsigned int)&v136, (unsigned int)EditorPauseLayer::toggleSelectFilter, 0, GameVariable, (_DWORD)v68, (unsigned int)v155, (__int64)v152, (__int64)v152, (__int64)&v151, (__int64)"bigFont.fnt", 0, 0, 0); if ( (v136 & 1) != 0 ) operator delete(*(void **)&v137[15]); v130 = 18; strcpy(v131, "Show Grid"); v84 = GameManager::sharedState(); v85 = GameManager::getGameVariable(v84, "0038"); v86 = cocos2d::CCDirector::sharedDirector(); v87 = sub_100484D80(v86); sub_10028CBE0((float *)v155, *(float *)&v153, *(float *)&v87 + 72.0); sub_10028CC60(&v151, &v154); GameToolbox::createToggleButton( (unsigned int)&v130, (unsigned int)EditorPauseLayer::toggleEditorGrid, 0, v85, (_DWORD)v68, (unsigned int)v155, (__int64)v152, (__int64)v152, (__int64)&v151, (__int64)"bigFont.fnt", 0, 0, 0); if ( (v130 & 1) != 0 ) operator delete(*(void **)&v131[15]); strcpy((char *)v132, " Show Object Info"); v88 = GameManager::sharedState(); v89 = GameManager::getGameVariable(v88, "0041"); v90 = cocos2d::CCDirector::sharedDirector(); v91 = sub_100484D80(v90); sub_10028CBE0((float *)v155, *(float *)&v153, *(float *)&v91 + 96.0); sub_10028CC60(&v151, &v154); GameToolbox::createToggleButton( (unsigned int)v132, (unsigned int)EditorPauseLayer::toggleShowObjectInfo, 0, v89, (_DWORD)v68, (unsigned int)v155, (__int64)v152, (__int64)v152, (__int64)&v151, (__int64)"bigFont.fnt", 0, 0, 0); if ( ((__int64)v132[0] & 1) != 0 ) operator delete(v132[2]); v138 = 22; strcpy(v139, "Show Ground"); v92 = GameManager::sharedState(); v93 = GameManager::getGameVariable(v92, "0037"); v94 = cocos2d::CCDirector::sharedDirector(); v95 = sub_100484D80(v94); sub_10028CBE0((float *)v155, *(float *)&v153, *(float *)&v95 + 120.0); sub_10028CC60(&v151, &v154); GameToolbox::createToggleButton( (unsigned int)&v138, (unsigned int)EditorPauseLayer::toggleEditorGround, 0, v93, (_DWORD)v68, (unsigned int)v155, (__int64)v152, (__int64)v152, (__int64)&v151, (__int64)"bigFont.fnt", 0, 0, 0); if ( (v138 & 1) != 0 ) operator delete(*(void **)&v139[15]); v140 = 30; strcpy(v141, "Preview Shaders"); v96 = GameManager::sharedState(); v97 = GameManager::getGameVariable(v96, "0158"); v98 = cocos2d::CCDirector::sharedDirector(); v99 = sub_100484D80(v98); sub_10028CBE0((float *)v155, *(float *)&v153, *(float *)&v99 + 144.0); sub_10028CC60(&v151, &v154); GameToolbox::createToggleButton( (unsigned int)&v140, (unsigned int)EditorPauseLayer::togglePreviewShaders, 0, v97, (_DWORD)v68, (unsigned int)v155, (__int64)v152, (__int64)v152, (__int64)&v151, (__int64)"bigFont.fnt", 0, 0, 0); if ( (v140 & 1) != 0 ) operator delete(*(void **)&v141[15]); strcpy((char *)v133, "\"Preview Particles"); v100 = GameManager::sharedState(); v101 = GameManager::getGameVariable(v100, "0117"); v102 = cocos2d::CCDirector::sharedDirector(); v103 = sub_100484D80(v102); sub_10028CBE0((float *)v155, *(float *)&v153, *(float *)&v103 + 168.0); sub_10028CC60(&v151, &v154); GameToolbox::createToggleButton( (unsigned int)v133, (unsigned int)EditorPauseLayer::togglePreviewParticles, 0, v101, (_DWORD)v68, (unsigned int)v155, (__int64)v152, (__int64)v152, (__int64)&v151, (__int64)"bigFont.fnt", 0, 0, 0); if ( ((__int64)v133[0] & 1) != 0 ) operator delete(v133[2]); strcpy((char *)v142, "$Preview Animations"); v104 = GameManager::sharedState(); v105 = GameManager::getGameVariable(v104, "0118"); v106 = cocos2d::CCDirector::sharedDirector(); v107 = sub_100484D80(v106); sub_10028CBE0((float *)v155, *(float *)&v153, *(float *)&v107 + 192.0); sub_10028CC60(&v151, &v154); GameToolbox::createToggleButton( (unsigned int)v142, (unsigned int)EditorPauseLayer::togglePreviewAnim, 0, v105, (_DWORD)v68, (unsigned int)v155, (__int64)v152, (__int64)v152, (__int64)&v151, (__int64)"bigFont.fnt", 0, 0, 0); if ( ((__int64)v142[0] & 1) != 0 ) operator delete(v142[2]); v143 = 24; strcpy(v144, "Preview Mode"); v108 = GameManager::sharedState(); v109 = GameManager::getGameVariable(v108, "0036"); v110 = cocos2d::CCDirector::sharedDirector(); v111 = sub_100484D80(v110); sub_10028CBE0((float *)v155, *(float *)&v153, *(float *)&v111 + 216.0); sub_10028CC60(&v151, &v154); GameToolbox::createToggleButton( (unsigned int)&v143, (unsigned int)EditorPauseLayer::toggleEditorColorMode, 0, v109, (_DWORD)v68, (unsigned int)v155, (__int64)v152, (__int64)v152, (__int64)&v151, (__int64)"bigFont.fnt", 0, 0, 0); if ( (v143 & 1) != 0 ) operator delete(*(void **)&v144[15]); v145 = 28; strcpy(v146, "Hide Invisible"); v112 = GameManager::sharedState(); v113 = GameManager::getGameVariable(v112, "0121"); v114 = cocos2d::CCDirector::sharedDirector(); v115 = sub_100484D80(v114); sub_10028CBE0((float *)v155, *(float *)&v153, *(float *)&v115 + 240.0); sub_10028CC60(&v151, &v154); GameToolbox::createToggleButton( (unsigned int)&v145, (unsigned int)EditorPauseLayer::toggleHideInvisible, 0, v113, (_DWORD)v68, (unsigned int)v155, (__int64)v152, (__int64)v152, (__int64)&v151, (__int64)"bigFont.fnt", 0, 0, 0); if ( (v145 & 1) != 0 ) operator delete(*(void **)&v146[15]); v147 = 26; strcpy(v148, "Show Hitboxes"); v116 = GameManager::sharedState(); v117 = GameManager::getGameVariable(v116, "0045"); v118 = cocos2d::CCDirector::sharedDirector(); v119 = sub_100484D80(v118); sub_10028CBE0((float *)v155, *(float *)&v153, *(float *)&v119 + 264.0); sub_10028CC60(&v151, &v154); GameToolbox::createToggleButton( (unsigned int)&v147, (unsigned int)EditorPauseLayer::toggleDebugDraw, 0, v117, (_DWORD)v68, (unsigned int)v155, (__int64)v152, (__int64)v152, (__int64)&v151, (__int64)"bigFont.fnt", 0, 0, 0); if ( (v147 & 1) != 0 ) operator delete(*(void **)&v148[15]); v120 = ButtonSprite::create_1("Keys", 50, 0, 0.60000002, 1, "goldFont.fnt", "GJ_button_04.png", 30.0); ((void (__fastcall *)(ButtonSprite *, float, float, double))v120->setScale)( v120, 0.80000001, 30.0, COERCE_DOUBLE(1118437376)); v121 = CCMenuItemSpriteExtra::create( v120, nullptr, v152, (cocos2d::SEL_MenuHandler)(unsigned __int64)EditorPauseLayer::onKeybindings); (*(void (__fastcall **)(void *, CCMenuItemSpriteExtra *))(*(_QWORD *)v68 + 440LL))(v68, v121); v122 = v149; v123 = (unsigned __int64 *)((__int64 (__fastcall *)(ButtonSprite *))v149->getPosition)(v149); sub_10028CBE0((float *)&v151, 0.0, 30.0); v124 = v68; sub_10028CCE0((double *)v155, v123, &v151); ((void (__fastcall *)(CCMenuItemSpriteExtra *, unsigned __int64 *))v121->setPosition)(v121, v155); v125 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_optionsBtn_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v125->setScale)(v125, 0.60000002); v126 = CCMenuItemSpriteExtra::create( v125, nullptr, v152, (cocos2d::SEL_MenuHandler)(unsigned __int64)EditorPauseLayer::onOptions); (*(void (__fastcall **)(void *, CCMenuItemSpriteExtra *))(*(_QWORD *)v124 + 440LL))(v124, v126); v127 = (unsigned __int64 *)((__int64 (__fastcall *)(ButtonSprite *))v122->getPosition)(v122); sub_10028CBE0((float *)&v151, 0.0, 60.0); sub_10028CCE0((double *)v155, v127, &v151); ((void (__fastcall *)(CCMenuItemSpriteExtra *, unsigned __int64 *))v126->setPosition)(v126, v155); }