// // SetupObjectOptionsPopup::init from 0x97a1bc to 0x97c024 (7784 bytes) // // 2 xrefs: // > SetupObjectOptionsPopup::create @ 0x97c1a8 // > @ 0x345d8 // // 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 // bool SetupObjectOptionsPopup::init( SetupObjectOptionsPopup *a1, GameObject *a2, cocos2d::CCArray *a3, SetGroupIDLayer *a4) { unsigned __int8 v7; // w0 cocos2d::CCObject *v8; // x2 cocos2d::CCDirector *v9; // x0 cocos2d::CCNode *v10; // x23 void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // x26 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 cocos2d::CCMenu *v13; // x0 cocos2d::CCMenu *m_buttonMenu; // x23 void (__fastcall *v15)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 cocos2d::CCLabelBMFont *v16; // x23 void (__fastcall *v17)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 const char *v18; // x6 cocos2d::CCNode *v19; // x23 CCMenuItemSpriteExtra *v20; // x0 cocos2d::CCNode *v21; // x23 void *v22; // x0 void *v23; // x0 cocos2d::CCMenu *v24; // x28 void (__fastcall *v25)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 cocos2d::CCMenu *v26; // x2 void *v27; // x0 cocos2d::CCMenu *v28; // x2 void *v29; // x0 cocos2d::CCMenu *v30; // x2 void *v31; // x0 cocos2d::CCLayer *v32; // x28 void *v33; // x0 cocos2d::CCLayer *v34; // x28 void *v35; // x0 cocos2d::CCLayer *v36; // x28 void *v37; // x0 cocos2d::CCLayer *v38; // x28 void *v39; // x0 cocos2d::CCLayer *v40; // x28 void *v41; // x0 cocos2d::CCLayer *v42; // x28 void *v43; // x0 cocos2d::CCLayer *v44; // x28 void *v45; // x0 cocos2d::CCLayer *v46; // x28 void *v47; // x0 cocos2d::CCLayer *v48; // x28 void *v49; // x0 cocos2d::CCLayer *v50; // x28 void *v51; // x0 cocos2d::CCLayer *v52; // x28 void *v53; // x0 cocos2d::CCLayer *v54; // x28 void *v55; // x0 cocos2d::CCLayer *v56; // x28 void *v57; // x0 cocos2d::CCLayer *v58; // x28 void *v59; // x0 cocos2d::CCLayer *v60; // x28 void *v61; // x0 cocos2d::CCLayer *v62; // x28 void *v63; // x0 cocos2d::CCMenu *v64; // x2 void *v65; // x0 cocos2d::CCMenu *v66; // x2 void *v67; // x0 cocos2d::CCMenu *v68; // x2 void *v69; // x0 cocos2d::CCMenu *v70; // x2 void *v71; // x0 GameObject *m_gameObject; // x0 bool v74; // w0 cocos2d::CCMenu *v75; // x28 cocos2d::CCLayer *v76; // x22 void *v77; // x20 unsigned int *v78; // x1 int v79; // w2 unsigned int *v80; // x1 int v81; // w2 unsigned int *v82; // x1 int v83; // w2 unsigned int *v84; // x1 int v85; // w2 unsigned int *v86; // x1 int v87; // w2 unsigned int *v88; // x1 int v89; // w2 unsigned int *v90; // x1 int v91; // w2 unsigned int *v92; // x1 int v93; // w2 unsigned int *v94; // x1 int v95; // w2 unsigned int *v96; // x1 int v97; // w2 unsigned int *v98; // x1 int v99; // w2 unsigned int *v100; // x1 int v101; // w2 unsigned int *v102; // x1 int v103; // w2 unsigned int *v104; // x1 int v105; // w2 unsigned int *v106; // x1 int v107; // w2 unsigned int *v108; // x1 int v109; // w2 unsigned int *v110; // x1 int v111; // w2 unsigned int *v112; // x1 int v113; // w2 unsigned int *v114; // x1 int v115; // w2 unsigned int *v116; // x1 int v117; // w2 unsigned int *v118; // x1 int v119; // w2 unsigned int *v120; // x1 int v121; // w2 unsigned int *v122; // x1 int v123; // w2 unsigned int *v124; // x1 int v125; // w2 unsigned int *v126; // x1 int v127; // w2 unsigned int *v128; // x19 int v129; // w0 _QWORD v130[2]; // [xsp+30h] [xbp+0h] BYREF cocos2d::CCLayer *m_mainLayer; // [xsp+D0h] [xbp+A0h] cocos2d::CCMenu *v132; // [xsp+D8h] [xbp+A8h] cocos2d::CCObject *v133; // [xsp+E0h] [xbp+B0h] int m_reverse; // [xsp+ECh] [xbp+BCh] float v135; // [xsp+100h] [xbp+D0h] float v136; // [xsp+104h] [xbp+D4h] cocos2d::CCPoint v137; // [xsp+108h] [xbp+D8h] BYREF cocos2d::CCPoint v138; // [xsp+110h] [xbp+E0h] BYREF cocos2d::CCPoint v139; // [xsp+118h] [xbp+E8h] BYREF cocos2d::CCPoint v140; // [xsp+120h] [xbp+F0h] BYREF cocos2d::CCRect v141; // [xsp+128h] [xbp+F8h] BYREF cocos2d::CCPoint v142; // 0:kr08_8.8 cocos2d::SEL_MenuHandler v143; // 0:x2.16 cocos2d::CCRect v144; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4 v133 = a3; v7 = FLAlertLayer::init(a1, 0x96u); m_reverse = v7; if ( v7 ) { v8 = v133; if ( a2 ) { a1->m_gameObject = a2; cocos2d::CCObject::retain(a2); } else if ( v133 ) { a1->m_gameObjects = (cocos2d::CCArray *)v133; cocos2d::CCObject::retain(v8); } a1->m_groupIDLayer = a4; a1->m_noElasticity = 1; v9 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v9); cocos2d::CCRect::CCRect(&v141, 0.0, 0.0, 80.0, 80.0); v10 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"GJ_square02.png", (const char *)&v141, v144); setContentSize = v10->setContentSize; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v141, 390.0, 310.0); setContentSize(v10, (const cocos2d::CCSize *)&v141); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v10, -2); setPosition = v10->setPosition; cocos2d::CCPoint::CCPoint(&v141.origin, v135 * 0.5, v136 * 0.5); setPosition(v10, &v141.origin); v13 = cocos2d::CCMenu::create(); a1->m_buttonMenu = v13; a1->m_mainLayer->addChild_0(a1->m_mainLayer, v13, 10); m_buttonMenu = a1->m_buttonMenu; v15 = m_buttonMenu->setPosition; cocos2d::CCPoint::CCPoint(&v141.origin, v135 * 0.5, (float)((float)(v136 * 0.5) + -155.0) + 24.0); v15(m_buttonMenu, &v141.origin); a1->determineStartValues(a1); v133 = (cocos2d::CCObject *)"goldFont.fnt"; v16 = cocos2d::CCLabelBMFont::create(); a1->addChild(a1, v16); v16->setScale(v16, 0.5); v17 = v16->setPosition; cocos2d::CCPoint::CCPoint(&v141.origin, v135 * 0.5, (float)((float)(v136 * 0.5) + 155.0) - 15.0); v17(v16, &v141.origin); v19 = (cocos2d::CCNode *)ButtonSprite::create( (ButtonSprite *)"OK", (const char *)&qword_28, 0, 1, 0.8, (const char *)v133, "GJ_button_01.png", v18, 30.0); v19->setScale(v19, 0.8); v143.adj = 1304; v143.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v20 = CCMenuItemSpriteExtra::create(v19, nullptr, v143); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v20); sub_D153B8((unsigned int)v130 + 240, "Help"); sub_D153B8( (unsigned int)v130 + 248, "NoTouch disables player collision for solid objects.\n" "No Effects disables effects for portals.\n" "Passable lets you jump through solid blocks.\n" "Hide makes the opacity 0.\n" "Dont BoostY and BoostX let you disable player being bounced from interaction with moving objects on each a" "xis.\n" "IceBlock, GripSlope, NonStickX, NonStickY, ExtraSticky, and ScaleStick are meant for Platformer game type."); v21 = (cocos2d::CCNode *)InfoAlertButton::create(1.0); v22 = (void *)(*(_QWORD *)&v141.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v122 = (unsigned int *)(*(_QWORD *)&v141.origin - 8LL); do v123 = __ldaxr(v122); while ( __stlxr(v123 - 1, v122) ); } else { v123 = *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL) = v123 - 1; } if ( v123 <= 0 ) operator delete(v22); } v23 = (void *)(*(_QWORD *)&v140 - 24LL); if ( (__int64 *)(*(_QWORD *)&v140 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v120 = (unsigned int *)(*(_QWORD *)&v140 - 8LL); do v121 = __ldaxr(v120); while ( __stlxr(v121 - 1, v120) ); } else { v121 = *(_DWORD *)(*(_QWORD *)&v140 - 8LL); *(_DWORD *)(*(_QWORD *)&v140 - 8LL) = v121 - 1; } if ( v121 <= 0 ) operator delete(v23); } v21->setScale(v21, 0.8); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v21); v24 = a1->m_buttonMenu; v25 = v21->setPosition; cocos2d::CCPoint::CCPoint( &v140, (float)((float)(v135 * 0.5) + -195.0) + 16.0, (float)((float)(v136 * 0.5) + 155.0) - 14.0); v142 = cocos2d::CCNode::convertToNodeSpace(v24, &v140); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCRect *, float, float))v25)(v21, &v141, v142.x, v142.y); cocos2d::CCPoint::CCPoint(&v137, (float)((float)(v135 * 0.5) + -60.0) - 90.0, (float)(v136 * 0.5) + 112.0); sub_D153B8((unsigned int)v130 + 248, "Dont\nFade"); v26 = a1->m_buttonMenu; LODWORD(v133) = a1->m_dontFade; v132 = v26; cocos2d::CCPoint::CCPoint(&v138, 0.0, -0.0); cocos2d::CCPoint::operator+(&v139, &v137, &v138); m_mainLayer = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v140, 8.0, 0.0); GameToolbox::createToggleButton( 0.7, 0.35, 110.0, (__int64)&v141, (void (__cdecl *)(cocos2d::CCObject *))SetupObjectOptionsPopup::onDontFade, 0, (bool)v133, v132, &v139, a1, m_mainLayer, (float *)&v140, (__int64)"bigFont.fnt", 0, 0, nullptr); v27 = (void *)(*(_QWORD *)&v141.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v118 = (unsigned int *)(*(_QWORD *)&v141.origin - 8LL); do v119 = __ldaxr(v118); while ( __stlxr(v119 - 1, v118) ); } else { v119 = *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL) = v119 - 1; } if ( v119 <= 0 ) operator delete(v27); } sub_D153B8((unsigned int)v130 + 248, "Dont\nEnter"); v28 = a1->m_buttonMenu; LODWORD(v133) = a1->m_dontEnter; v132 = v28; cocos2d::CCPoint::CCPoint(&v138, 0.0, -30.0); cocos2d::CCPoint::operator+(&v139, &v137, &v138); m_mainLayer = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v140, 8.0, 0.0); GameToolbox::createToggleButton( 0.7, 0.35, 110.0, (__int64)&v141, (void (__cdecl *)(cocos2d::CCObject *))SetupObjectOptionsPopup::onDontEnter, 0, (bool)v133, v132, &v139, a1, m_mainLayer, (float *)&v140, (__int64)"bigFont.fnt", 0, 0, nullptr); v29 = (void *)(*(_QWORD *)&v141.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v116 = (unsigned int *)(*(_QWORD *)&v141.origin - 8LL); do v117 = __ldaxr(v116); while ( __stlxr(v117 - 1, v116) ); } else { v117 = *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL) = v117 - 1; } if ( v117 <= 0 ) operator delete(v29); } sub_D153B8((unsigned int)v130 + 248, "No\nEffects"); v30 = a1->m_buttonMenu; LODWORD(v133) = a1->m_noEffects; v132 = v30; cocos2d::CCPoint::CCPoint(&v138, 0.0, -60.0); cocos2d::CCPoint::operator+(&v139, &v137, &v138); m_mainLayer = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v140, 8.0, 0.0); GameToolbox::createToggleButton( 0.7, 0.35, 110.0, (__int64)&v141, (void (__cdecl *)(cocos2d::CCObject *))SetupObjectOptionsPopup::onHideEffects, 0, (bool)v133, v132, &v139, a1, m_mainLayer, (float *)&v140, (__int64)"bigFont.fnt", 0, 0, nullptr); v31 = (void *)(*(_QWORD *)&v141.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v114 = (unsigned int *)(*(_QWORD *)&v141.origin - 8LL); do v115 = __ldaxr(v114); while ( __stlxr(v115 - 1, v114) ); } else { v115 = *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL) = v115 - 1; } if ( v115 <= 0 ) operator delete(v31); } sub_D153B8((unsigned int)v130 + 248, "Group\nParent"); LODWORD(v133) = a1->m_groupParent; v132 = a1->m_buttonMenu; m_mainLayer = (cocos2d::CCLayer *)SetupObjectOptionsPopup::onToggleGroupParent; cocos2d::CCPoint::CCPoint(&v138, 0.0, -90.0); cocos2d::CCPoint::operator+(&v139, &v137, &v138); v32 = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v140, 8.0, 0.0); GameToolbox::createToggleButton( 0.7, 0.35, 110.0, (__int64)&v141, (void (__cdecl *)(cocos2d::CCObject *))m_mainLayer, 0, (bool)v133, v132, &v139, a1, v32, (float *)&v140, (__int64)"bigFont.fnt", 0, 0, nullptr); v33 = (void *)(*(_QWORD *)&v141.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v112 = (unsigned int *)(*(_QWORD *)&v141.origin - 8LL); do v113 = __ldaxr(v112); while ( __stlxr(v113 - 1, v112) ); } else { v113 = *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL) = v113 - 1; } if ( v113 <= 0 ) operator delete(v33); } sub_D153B8((unsigned int)v130 + 248, "Area\nParent"); LODWORD(v133) = a1->m_areaParent; v132 = a1->m_buttonMenu; m_mainLayer = (cocos2d::CCLayer *)SetupObjectOptionsPopup::onToggleAreaParent; cocos2d::CCPoint::CCPoint(&v138, 0.0, -120.0); cocos2d::CCPoint::operator+(&v139, &v137, &v138); v34 = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v140, 8.0, 0.0); GameToolbox::createToggleButton( 0.7, 0.35, 110.0, (__int64)&v141, (void (__cdecl *)(cocos2d::CCObject *))m_mainLayer, 0, (bool)v133, v132, &v139, a1, v34, (float *)&v140, (__int64)"bigFont.fnt", 0, 0, nullptr); v35 = (void *)(*(_QWORD *)&v141.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v110 = (unsigned int *)(*(_QWORD *)&v141.origin - 8LL); do v111 = __ldaxr(v110); while ( __stlxr(v111 - 1, v110) ); } else { v111 = *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL) = v111 - 1; } if ( v111 <= 0 ) operator delete(v35); } sub_D153B8((unsigned int)v130 + 248, "Dont\nBoostY"); LODWORD(v133) = a1->m_dontBoostY; v132 = a1->m_buttonMenu; m_mainLayer = (cocos2d::CCLayer *)SetupObjectOptionsPopup::onDontBoost; cocos2d::CCPoint::CCPoint(&v138, 0.0, -150.0); cocos2d::CCPoint::operator+(&v139, &v137, &v138); v36 = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v140, 8.0, 0.0); GameToolbox::createToggleButton( 0.7, 0.35, 110.0, (__int64)&v141, (void (__cdecl *)(cocos2d::CCObject *))m_mainLayer, 0, (bool)v133, v132, &v139, a1, v36, (float *)&v140, (__int64)"bigFont.fnt", 0, 0, nullptr); v37 = (void *)(*(_QWORD *)&v141.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v108 = (unsigned int *)(*(_QWORD *)&v141.origin - 8LL); do v109 = __ldaxr(v108); while ( __stlxr(v109 - 1, v108) ); } else { v109 = *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL) = v109 - 1; } if ( v109 <= 0 ) operator delete(v37); } sub_D153B8((unsigned int)v130 + 248, "Dont\nBoostX"); LODWORD(v133) = a1->m_dontBoostX; v132 = a1->m_buttonMenu; m_mainLayer = (cocos2d::CCLayer *)SetupObjectOptionsPopup::onDontBoostX; cocos2d::CCPoint::CCPoint(&v138, 0.0, -180.0); cocos2d::CCPoint::operator+(&v139, &v137, &v138); v38 = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v140, 8.0, 0.0); GameToolbox::createToggleButton( 0.7, 0.35, 110.0, (__int64)&v141, (void (__cdecl *)(cocos2d::CCObject *))m_mainLayer, 0, (bool)v133, v132, &v139, a1, v38, (float *)&v140, (__int64)"bigFont.fnt", 0, 0, nullptr); v39 = (void *)(*(_QWORD *)&v141.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v106 = (unsigned int *)(*(_QWORD *)&v141.origin - 8LL); do v107 = __ldaxr(v106); while ( __stlxr(v107 - 1, v106) ); } else { v107 = *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL) = v107 - 1; } if ( v107 <= 0 ) operator delete(v39); } if ( a1->m_effectObject ) { sub_D153B8((unsigned int)v130 + 248, "Single\nPTouch"); LODWORD(v133) = a1->m_singlePlayerTouch; v132 = a1->m_buttonMenu; m_mainLayer = (cocos2d::CCLayer *)SetupObjectOptionsPopup::onSinglePlayerTouch; cocos2d::CCPoint::CCPoint(&v138, 0.0, -210.0); cocos2d::CCPoint::operator+(&v139, &v137, &v138); v40 = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v140, 8.0, 0.0); GameToolbox::createToggleButton( 0.7, 0.35, 110.0, (__int64)&v141, (void (__cdecl *)(cocos2d::CCObject *))m_mainLayer, 0, (bool)v133, v132, &v139, a1, v40, (float *)&v140, (__int64)"bigFont.fnt", 0, 0, nullptr); v41 = (void *)(*(_QWORD *)&v141.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v124 = (unsigned int *)(*(_QWORD *)&v141.origin - 8LL); do v125 = __ldaxr(v124); while ( __stlxr(v125 - 1, v124) ); } else { v125 = *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL) = v125 - 1; } if ( v125 <= 0 ) operator delete(v41); } } v137.x = v137.x + 120.0; sub_D153B8((int)&v141, "High\nDetail"); LODWORD(v133) = a1->m_highDetail; v132 = a1->m_buttonMenu; m_mainLayer = (cocos2d::CCLayer *)SetupObjectOptionsPopup::onHighDetail; cocos2d::CCPoint::CCPoint(&v138, 0.0, -0.0); cocos2d::CCPoint::operator+(&v139, &v137, &v138); v42 = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v140, 8.0, 0.0); GameToolbox::createToggleButton( 0.7, 0.35, 110.0, (__int64)&v141, (void (__cdecl *)(cocos2d::CCObject *))m_mainLayer, 0, (bool)v133, v132, &v139, a1, v42, (float *)&v140, (__int64)"bigFont.fnt", 0, 0, nullptr); v43 = (void *)(*(_QWORD *)&v141.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v104 = (unsigned int *)(*(_QWORD *)&v141.origin - 8LL); do v105 = __ldaxr(v104); while ( __stlxr(v105 - 1, v104) ); } else { v105 = *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL) = v105 - 1; } if ( v105 <= 0 ) operator delete(v43); } sub_D153B8((unsigned int)v130 + 248, "NoTouch"); LODWORD(v133) = a1->m_noTouch; v132 = a1->m_buttonMenu; m_mainLayer = (cocos2d::CCLayer *)SetupObjectOptionsPopup::onDisableObject; cocos2d::CCPoint::CCPoint(&v138, 0.0, -30.0); cocos2d::CCPoint::operator+(&v139, &v137, &v138); v44 = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v140, 8.0, 0.0); GameToolbox::createToggleButton( 0.7, 0.35, 110.0, (__int64)&v141, (void (__cdecl *)(cocos2d::CCObject *))m_mainLayer, 0, (bool)v133, v132, &v139, a1, v44, (float *)&v140, (__int64)"bigFont.fnt", 0, 0, nullptr); v45 = (void *)(*(_QWORD *)&v141.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v102 = (unsigned int *)(*(_QWORD *)&v141.origin - 8LL); do v103 = __ldaxr(v102); while ( __stlxr(v103 - 1, v102) ); } else { v103 = *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL) = v103 - 1; } if ( v103 <= 0 ) operator delete(v45); } sub_D153B8((unsigned int)v130 + 248, "Passable"); LODWORD(v133) = a1->m_passable; v132 = a1->m_buttonMenu; m_mainLayer = (cocos2d::CCLayer *)SetupObjectOptionsPopup::onPassable; cocos2d::CCPoint::CCPoint(&v138, 0.0, -60.0); cocos2d::CCPoint::operator+(&v139, &v137, &v138); v46 = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v140, 8.0, 0.0); GameToolbox::createToggleButton( 0.7, 0.35, 110.0, (__int64)&v141, (void (__cdecl *)(cocos2d::CCObject *))m_mainLayer, 0, (bool)v133, v132, &v139, a1, v46, (float *)&v140, (__int64)"bigFont.fnt", 0, 0, nullptr); v47 = (void *)(*(_QWORD *)&v141.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v100 = (unsigned int *)(*(_QWORD *)&v141.origin - 8LL); do v101 = __ldaxr(v100); while ( __stlxr(v101 - 1, v100) ); } else { v101 = *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL) = v101 - 1; } if ( v101 <= 0 ) operator delete(v47); } sub_D153B8((unsigned int)v130 + 248, "Hide"); LODWORD(v133) = a1->m_hide; v132 = a1->m_buttonMenu; m_mainLayer = (cocos2d::CCLayer *)SetupObjectOptionsPopup::onAlwaysHide; cocos2d::CCPoint::CCPoint(&v138, 0.0, -90.0); cocos2d::CCPoint::operator+(&v139, &v137, &v138); v48 = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v140, 8.0, 0.0); GameToolbox::createToggleButton( 0.7, 0.35, 110.0, (__int64)&v141, (void (__cdecl *)(cocos2d::CCObject *))m_mainLayer, 0, (bool)v133, v132, &v139, a1, v48, (float *)&v140, (__int64)"bigFont.fnt", 0, 0, nullptr); v49 = (void *)(*(_QWORD *)&v141.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v98 = (unsigned int *)(*(_QWORD *)&v141.origin - 8LL); do v99 = __ldaxr(v98); while ( __stlxr(v99 - 1, v98) ); } else { v99 = *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL) = v99 - 1; } if ( v99 <= 0 ) operator delete(v49); } sub_D153B8((unsigned int)v130 + 248, "NonStickX"); LODWORD(v133) = a1->m_nonStickX; v132 = a1->m_buttonMenu; m_mainLayer = (cocos2d::CCLayer *)SetupObjectOptionsPopup::onNonStickX; cocos2d::CCPoint::CCPoint(&v138, 0.0, -120.0); cocos2d::CCPoint::operator+(&v139, &v137, &v138); v50 = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v140, 8.0, 0.0); GameToolbox::createToggleButton( 0.7, 0.35, 110.0, (__int64)&v141, (void (__cdecl *)(cocos2d::CCObject *))m_mainLayer, 0, (bool)v133, v132, &v139, a1, v50, (float *)&v140, (__int64)"bigFont.fnt", 0, 0, nullptr); v51 = (void *)(*(_QWORD *)&v141.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v96 = (unsigned int *)(*(_QWORD *)&v141.origin - 8LL); do v97 = __ldaxr(v96); while ( __stlxr(v97 - 1, v96) ); } else { v97 = *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL) = v97 - 1; } if ( v97 <= 0 ) operator delete(v51); } sub_D153B8((unsigned int)v130 + 248, "ExtraSticky"); LODWORD(v133) = a1->m_extraSticky; v132 = a1->m_buttonMenu; m_mainLayer = (cocos2d::CCLayer *)SetupObjectOptionsPopup::onExtraSticky; cocos2d::CCPoint::CCPoint(&v138, 0.0, -150.0); cocos2d::CCPoint::operator+(&v139, &v137, &v138); v52 = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v140, 8.0, 0.0); GameToolbox::createToggleButton( 0.7, 0.35, 110.0, (__int64)&v141, (void (__cdecl *)(cocos2d::CCObject *))m_mainLayer, 0, (bool)v133, v132, &v139, a1, v52, (float *)&v140, (__int64)"bigFont.fnt", 0, 0, nullptr); v53 = (void *)(*(_QWORD *)&v141.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v94 = (unsigned int *)(*(_QWORD *)&v141.origin - 8LL); do v95 = __ldaxr(v94); while ( __stlxr(v95 - 1, v94) ); } else { v95 = *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL) = v95 - 1; } if ( v95 <= 0 ) operator delete(v53); } sub_D153B8((unsigned int)v130 + 248, "Extended\nCollision"); LODWORD(v133) = a1->m_extendedCollision; v132 = a1->m_buttonMenu; m_mainLayer = (cocos2d::CCLayer *)SetupObjectOptionsPopup::onExtendedCollision; cocos2d::CCPoint::CCPoint(&v138, 0.0, -180.0); cocos2d::CCPoint::operator+(&v139, &v137, &v138); v54 = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v140, 8.0, 0.0); GameToolbox::createToggleButton( 0.7, 0.35, 110.0, (__int64)&v141, (void (__cdecl *)(cocos2d::CCObject *))m_mainLayer, 0, (bool)v133, v132, &v139, a1, v54, (float *)&v140, (__int64)"bigFont.fnt", 0, 0, nullptr); v55 = (void *)(*(_QWORD *)&v141.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v92 = (unsigned int *)(*(_QWORD *)&v141.origin - 8LL); do v93 = __ldaxr(v92); while ( __stlxr(v93 - 1, v92) ); } else { v93 = *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL) = v93 - 1; } if ( v93 <= 0 ) operator delete(v55); } if ( a1->m_effectObject ) { sub_D153B8((unsigned int)v130 + 248, "Center\nEffect"); LODWORD(v133) = a1->m_centerEffect; v132 = a1->m_buttonMenu; m_mainLayer = (cocos2d::CCLayer *)SetupObjectOptionsPopup::onCenterEffect; cocos2d::CCPoint::CCPoint(&v138, 0.0, -210.0); cocos2d::CCPoint::operator+(&v139, &v137, &v138); v56 = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v140, 8.0, 0.0); GameToolbox::createToggleButton( 0.7, 0.35, 110.0, (__int64)&v141, (void (__cdecl *)(cocos2d::CCObject *))m_mainLayer, 0, (bool)v133, v132, &v139, a1, v56, (float *)&v140, (__int64)"bigFont.fnt", 0, 0, nullptr); v57 = (void *)(*(_QWORD *)&v141.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v126 = (unsigned int *)(*(_QWORD *)&v141.origin - 8LL); do v127 = __ldaxr(v126); while ( __stlxr(v127 - 1, v126) ); } else { v127 = *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL) = v127 - 1; } if ( v127 <= 0 ) operator delete(v57); } } v137.x = v137.x + 120.0; sub_D153B8((int)&v141, "IceBlock"); LODWORD(v133) = a1->m_iceBlock; v132 = a1->m_buttonMenu; m_mainLayer = (cocos2d::CCLayer *)SetupObjectOptionsPopup::onIceBlock; cocos2d::CCPoint::CCPoint(&v138, 0.0, -0.0); cocos2d::CCPoint::operator+(&v139, &v137, &v138); v58 = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v140, 8.0, 0.0); GameToolbox::createToggleButton( 0.7, 0.35, 110.0, (__int64)&v141, (void (__cdecl *)(cocos2d::CCObject *))m_mainLayer, 0, (bool)v133, v132, &v139, a1, v58, (float *)&v140, (__int64)"bigFont.fnt", 0, 0, nullptr); v59 = (void *)(*(_QWORD *)&v141.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v90 = (unsigned int *)(*(_QWORD *)&v141.origin - 8LL); do v91 = __ldaxr(v90); while ( __stlxr(v91 - 1, v90) ); } else { v91 = *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL) = v91 - 1; } if ( v91 <= 0 ) operator delete(v59); } sub_D153B8((unsigned int)v130 + 248, "GripSlope"); LODWORD(v133) = a1->m_gripSlope; v132 = a1->m_buttonMenu; m_mainLayer = (cocos2d::CCLayer *)SetupObjectOptionsPopup::onGripSlope; cocos2d::CCPoint::CCPoint(&v138, 0.0, -30.0); cocos2d::CCPoint::operator+(&v139, &v137, &v138); v60 = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v140, 8.0, 0.0); GameToolbox::createToggleButton( 0.7, 0.35, 110.0, (__int64)&v141, (void (__cdecl *)(cocos2d::CCObject *))m_mainLayer, 0, (bool)v133, v132, &v139, a1, v60, (float *)&v140, (__int64)"bigFont.fnt", 0, 0, nullptr); v61 = (void *)(*(_QWORD *)&v141.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v88 = (unsigned int *)(*(_QWORD *)&v141.origin - 8LL); do v89 = __ldaxr(v88); while ( __stlxr(v89 - 1, v88) ); } else { v89 = *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL) = v89 - 1; } if ( v89 <= 0 ) operator delete(v61); } sub_D153B8((unsigned int)v130 + 248, "NoGlow"); LODWORD(v133) = a1->m_noGlow; v132 = a1->m_buttonMenu; m_mainLayer = (cocos2d::CCLayer *)SetupObjectOptionsPopup::onDisableGlow; cocos2d::CCPoint::CCPoint(&v138, 0.0, -60.0); cocos2d::CCPoint::operator+(&v139, &v137, &v138); v62 = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v140, 8.0, 0.0); GameToolbox::createToggleButton( 0.7, 0.35, 110.0, (__int64)&v141, (void (__cdecl *)(cocos2d::CCObject *))m_mainLayer, 0, (bool)v133, v132, &v139, a1, v62, (float *)&v140, (__int64)"bigFont.fnt", 0, 0, nullptr); v63 = (void *)(*(_QWORD *)&v141.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v86 = (unsigned int *)(*(_QWORD *)&v141.origin - 8LL); do v87 = __ldaxr(v86); while ( __stlxr(v87 - 1, v86) ); } else { v87 = *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL) = v87 - 1; } if ( v87 <= 0 ) operator delete(v63); } sub_D153B8((unsigned int)v130 + 248, "NoParticle"); v64 = a1->m_buttonMenu; LODWORD(v133) = a1->m_noParticle; v132 = v64; cocos2d::CCPoint::CCPoint(&v138, 0.0, -90.0); cocos2d::CCPoint::operator+(&v139, &v137, &v138); m_mainLayer = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v140, 8.0, 0.0); GameToolbox::createToggleButton( 0.7, 0.35, 110.0, (__int64)&v141, (void (__cdecl *)(cocos2d::CCObject *))SetupObjectOptionsPopup::onNoParticle, 0, (bool)v133, v132, &v139, a1, m_mainLayer, (float *)&v140, (__int64)"bigFont.fnt", 0, 0, nullptr); v65 = (void *)(*(_QWORD *)&v141.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v84 = (unsigned int *)(*(_QWORD *)&v141.origin - 8LL); do v85 = __ldaxr(v84); while ( __stlxr(v85 - 1, v84) ); } else { v85 = *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL) = v85 - 1; } if ( v85 <= 0 ) operator delete(v65); } sub_D153B8((unsigned int)v130 + 248, "NonStickY"); v66 = a1->m_buttonMenu; LODWORD(v133) = a1->m_nonStickY; v132 = v66; cocos2d::CCPoint::CCPoint(&v138, 0.0, -120.0); cocos2d::CCPoint::operator+(&v139, &v137, &v138); m_mainLayer = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v140, 8.0, 0.0); GameToolbox::createToggleButton( 0.7, 0.35, 110.0, (__int64)&v141, (void (__cdecl *)(cocos2d::CCObject *))SetupObjectOptionsPopup::onNonStickY, 0, (bool)v133, v132, &v139, a1, m_mainLayer, (float *)&v140, (__int64)"bigFont.fnt", 0, 0, nullptr); v67 = (void *)(*(_QWORD *)&v141.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v82 = (unsigned int *)(*(_QWORD *)&v141.origin - 8LL); do v83 = __ldaxr(v82); while ( __stlxr(v83 - 1, v82) ); } else { v83 = *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL) = v83 - 1; } if ( v83 <= 0 ) operator delete(v67); } sub_D153B8((unsigned int)v130 + 248, "ScaleStick"); v68 = a1->m_buttonMenu; LODWORD(v133) = a1->m_scaleStick; v132 = v68; cocos2d::CCPoint::CCPoint(&v138, 0.0, -150.0); cocos2d::CCPoint::operator+(&v139, &v137, &v138); m_mainLayer = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v140, 8.0, 0.0); GameToolbox::createToggleButton( 0.7, 0.35, 110.0, (__int64)&v141, (void (__cdecl *)(cocos2d::CCObject *))SetupObjectOptionsPopup::onApplyScaleStick, 0, (bool)v133, v132, &v139, a1, m_mainLayer, (float *)&v140, (__int64)"bigFont.fnt", 0, 0, nullptr); v69 = (void *)(*(_QWORD *)&v141.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v80 = (unsigned int *)(*(_QWORD *)&v141.origin - 8LL); do v81 = __ldaxr(v80); while ( __stlxr(v81 - 1, v80) ); } else { v81 = *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL) = v81 - 1; } if ( v81 <= 0 ) operator delete(v69); } sub_D153B8((unsigned int)v130 + 248, "No Audio\nScale"); v70 = a1->m_buttonMenu; LODWORD(v133) = a1->m_noAudioScale; v132 = v70; cocos2d::CCPoint::CCPoint(&v138, 0.0, -180.0); cocos2d::CCPoint::operator+(&v139, &v137, &v138); m_mainLayer = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v140, 8.0, 0.0); GameToolbox::createToggleButton( 0.7, 0.35, 110.0, (__int64)&v141, (void (__cdecl *)(cocos2d::CCObject *))SetupObjectOptionsPopup::onNoAudioScale, 0, (bool)v133, v132, &v139, a1, m_mainLayer, (float *)&v140, (__int64)"bigFont.fnt", 0, 0, nullptr); v71 = (void *)(*(_QWORD *)&v141.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v78 = (unsigned int *)(*(_QWORD *)&v141.origin - 8LL); do v79 = __ldaxr(v78); while ( __stlxr(v79 - 1, v78) ); } else { v79 = *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL) = v79 - 1; } if ( v79 <= 0 ) operator delete(v71); } m_gameObject = a1->m_gameObject; if ( m_gameObject ) { if ( m_gameObject->m_classType == Effect ) { v74 = m_gameObject->canReverse(m_gameObject); LODWORD(v133) = v74; if ( v74 ) { sub_D153B8((unsigned int)v130 + 248, "Reverse"); v75 = a1->m_buttonMenu; m_reverse = a1->m_reverse; cocos2d::CCPoint::CCPoint(&v138, 0.0, -210.0); cocos2d::CCPoint::operator+(&v139, &v137, &v138); v76 = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v140, 8.0, 0.0); GameToolbox::createToggleButton( 0.7, 0.35, 110.0, (__int64)&v141, (void (__cdecl *)(cocos2d::CCObject *))SetupObjectOptionsPopup::onReverse, 0, m_reverse, v75, &v139, a1, v76, (float *)&v140, (__int64)"bigFont.fnt", 0, 0, nullptr); v77 = (void *)(*(_QWORD *)&v141.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v128 = (unsigned int *)(*(_QWORD *)&v141.origin - 8LL); do v129 = __ldaxr(v128); while ( __stlxr(v129 - 1, v128) ); } else { v129 = *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v141.origin - 8LL) = v129 - 1; } if ( v129 <= 0 ) operator delete(v77); } return (char)v133; } } } } return m_reverse; }
GD Web Decomp Icon

GD Web Decomp

Raw Source