// // GJGarageLayer::init from 0x798e70 to 0x79a7fc (6540 bytes) // // 3 xrefs: // > GJGarageLayer::scene @ 0x7903fc // > @ 0x6a2a8 // > @ 0x1178660 // // 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 GJGarageLayer::init(GJGarageLayer *a1) { bool v2; // w25 GameManager *v4; // x0 GJGarageLayer_vtbl *v5; // x2 cocos2d::CCDirector *v6; // x0 float v7; // s9 const char *v8; // x1 cocos2d::CCNode *v9; // x21 void (__fastcall *setAnchorPoint)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24 int (__fastcall *getTag)(const cocos2d::CCObject *__hidden); // x3 cocos2d::CCSprite *v13; // x21 void (__fastcall *v14)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x26 void (__fastcall *v15)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x26 cocos2d::CCDirector *v16; // x0 float v17; // s0 float v18; // s10 cocos2d::CCDirector *v19; // x0 float v20; // s0 cocos2d::CCSprite *v21; // x21 void (__fastcall *v22)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x26 void (__fastcall *v23)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x26 cocos2d::CCDirector *v24; // x0 float v25; // s0 float v26; // s10 cocos2d::CCDirector *v27; // x0 float v28; // s0 cocos2d::CCSprite *v29; // x21 void (__fastcall *v30)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x24 void (__fastcall *v31)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x24 cocos2d::CCDirector *v32; // x0 float v33; // s0 float v34; // s10 cocos2d::CCDirector *v35; // x0 float v36; // s0 CCTextInputNode *v37; // x0 float v38; // s1 float v39; // s8 CCTextInputNode *m_usernameInput; // x21 void (__fastcall *v41)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22 cocos2d::CCDirector *v42; // x0 float v43; // s0 CCTextInputNode *v44; // x0 CCTextInputNode *v45; // x21 char *v46; // x0 GJAccountManager *v47; // x0 CCTextInputNode *v48; // x24 char *v49; // x0 char *v50; // x0 cocos2d::CCSprite *v51; // x24 const cocos2d::CCSize *v52; // x0 void (__fastcall *v53)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x22 const cocos2d::CCPoint *v54; // x26 cocos2d::CCSprite *v55; // x22 void (__fastcall *v56)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x26 GameManager *v57; // x0 SimplePlayer *v58; // x0 SimplePlayer *m_playerObject; // x24 void (__fastcall *setScale)(cocos2d::CCSprite *__hidden, float); // x26 long double v61; // q0 SimplePlayer *v62; // x24 cocos2d::CCSprite *v63; // x0 const cocos2d::CCPoint *(__fastcall *getPosition)(cocos2d::CCNode *__hidden); // x1 void (__fastcall *v65)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x22 __int64 v66; // x26 float v67; // s0 __int32 v68; // w0 cocos2d::CCSprite *v69; // x0 cocos2d::CCMenu *v70; // x22 cocos2d::CCNode *v71; // x22 void (__fastcall *v72)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24 cocos2d::CCDirector *v73; // x0 float v74; // s0 float v75; // s9 cocos2d::CCDirector *v76; // x0 float v77; // s0 cocos2d::CCSprite *v78; // x0 CCMenuItemSpriteExtra *v79; // x24 float v80; // s0 float v81; // s1 void (__fastcall *addChild)(cocos2d::CCNode *__hidden, cocos2d::CCNode *); // x3 void (__fastcall *v83)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 cocos2d::CCSprite *v84; // x0 CCMenuItemSpriteExtra *v85; // x24 void (__fastcall *v86)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 cocos2d::CCSprite *v87; // x0 CCMenuItemSpriteExtra *v88; // x24 void (__fastcall *v89)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 cocos2d::CCSprite *v90; // x27 void (__fastcall *v91)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x24 cocos2d::CCDirector *v92; // x0 float v93; // s0 float v94; // s9 cocos2d::CCDirector *v95; // x0 float v96; // s0 GameStatsManager *v97; // x0 unsigned int Stat; // w0 cocos2d::CCString *v99; // x0 cocos2d::CCLabelBMFont *v100; // x28 const cocos2d::CCPoint *(__fastcall *v101)(cocos2d::CCNode *__hidden); // x1 cocos2d::CCSprite *v102; // x28 cocos2d::CCSprite *v103; // x0 const cocos2d::CCPoint *(__fastcall *v104)(cocos2d::CCNode *__hidden); // x1 void (__fastcall *v105)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x27 GameStatsManager *v106; // x0 unsigned int v107; // w0 cocos2d::CCString *v108; // x0 cocos2d::CCLabelBMFont *v109; // x27 const cocos2d::CCPoint *(__fastcall *v110)(cocos2d::CCNode *__hidden); // x1 cocos2d::CCSprite *v111; // x27 cocos2d::CCSprite *v112; // x0 const cocos2d::CCPoint *(__fastcall *v113)(cocos2d::CCNode *__hidden); // x1 void (__fastcall *v114)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x28 GameStatsManager *v115; // x0 unsigned int v116; // w0 cocos2d::CCString *v117; // x0 cocos2d::CCLabelBMFont *v118; // x28 const cocos2d::CCPoint *(__fastcall *v119)(cocos2d::CCNode *__hidden); // x1 cocos2d::CCSprite *v120; // x28 cocos2d::CCSprite *v121; // x0 const cocos2d::CCPoint *(__fastcall *v122)(cocos2d::CCNode *__hidden); // x1 void (__fastcall *v123)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x27 GameStatsManager *v124; // x0 unsigned int v125; // w0 cocos2d::CCString *v126; // x0 cocos2d::CCLabelBMFont *v127; // x27 const cocos2d::CCPoint *(__fastcall *v128)(cocos2d::CCNode *__hidden); // x1 cocos2d::CCSprite *v129; // x27 cocos2d::CCSprite *v130; // x0 const cocos2d::CCPoint *(__fastcall *v131)(cocos2d::CCNode *__hidden); // x1 void (__fastcall *v132)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x28 GameStatsManager *v133; // x0 unsigned int v134; // w0 cocos2d::CCString *v135; // x0 cocos2d::CCLabelBMFont *v136; // x28 const cocos2d::CCPoint *(__fastcall *v137)(cocos2d::CCNode *__hidden); // x1 cocos2d::CCSprite *v138; // x28 cocos2d::CCSprite *v139; // x0 const cocos2d::CCPoint *(__fastcall *v140)(cocos2d::CCNode *__hidden); // x1 void (__fastcall *v141)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x27 GameStatsManager *v142; // x0 unsigned int v143; // w0 cocos2d::CCString *v144; // x0 cocos2d::CCLabelBMFont *v145; // x27 const cocos2d::CCPoint *(__fastcall *v146)(cocos2d::CCNode *__hidden); // x1 cocos2d::CCSprite *v147; // x27 cocos2d::CCSprite *v148; // x0 const cocos2d::CCPoint *(__fastcall *v149)(cocos2d::CCNode *__hidden); // x1 void (__fastcall *v150)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x28 GameStatsManager *v151; // x0 unsigned int v152; // w0 cocos2d::CCString *v153; // x0 cocos2d::CCLabelBMFont *v154; // x24 void (__fastcall *v155)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x26 void (__fastcall *v156)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 __int64 v157; // x28 GameManager *v158; // x0 cocos2d::CCSprite *v159; // x24 CCMenuItemSpriteExtra *v160; // x24 void (__fastcall *v161)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 cocos2d::CCDirector *v162; // x0 float v163; // s0 float v164; // s8 cocos2d::CCDirector *v165; // x0 float v166; // s0 bool isControllerConnected; // w0 size_t v168; // x28 cocos2d::CCLayer *v169; // x5 size_t v170; // x2 int v171; // w24 char *v172; // x3 __int64 v173; // x28 char *v174; // x0 char *v175; // x0 CCTextInputNode *v176; // x24 char *v177; // x0 char *v178; // x0 cocos2d::CCSprite *v179; // x22 void (__fastcall *v180)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x24 const cocos2d::CCPoint *v181; // x26 SimplePlayer *v182; // x22 GameManager *v183; // x0 SimplePlayer *v184; // x22 GameManager *v185; // x0 SimplePlayer *v186; // x22 GameManager *v187; // x0 SimplePlayer *v188; // x22 GameManager *v189; // x0 SimplePlayer *v190; // x22 GameManager *v191; // x0 SimplePlayer *v192; // x22 GameManager *v193; // x0 SimplePlayer *v194; // x22 GameManager *v195; // x0 SimplePlayer *v196; // x22 GameManager *v197; // x0 unsigned int *v198; // x3 int v199; // w1 unsigned int *v200; // x1 int v201; // w2 unsigned int *v202; // x1 int v203; // w2 unsigned int *v204; // x1 int v205; // w2 unsigned int *v206; // x1 int v207; // w2 unsigned int *v208; // x1 int v209; // w2 unsigned int *v210; // x4 int v211; // w1 cocos2d::CCLayer *v212[2]; // [xsp+0h] [xbp+0h] BYREF cocos2d::CCLayer *v213; // [xsp+98h] [xbp+98h] char *v214; // [xsp+A0h] [xbp+A0h] void (__fastcall *v215)(cocos2d::CCLabelBMFont *, void **); // [xsp+A8h] [xbp+A8h] __int64 v216; // [xsp+C0h] [xbp+C0h] float v217; // [xsp+C8h] [xbp+C8h] float v218; // [xsp+CCh] [xbp+CCh] cocos2d::CCSize v219; // [xsp+D0h] [xbp+D0h] BYREF char *v220; // [xsp+D8h] [xbp+D8h] BYREF void *v221; // [xsp+E0h] [xbp+E0h] BYREF cocos2d::CCPoint v222; // 0:kr08_8.8 cocos2d::CCPoint v223; // 0:kr10_8.8 cocos2d::CCPoint v224; // 0:kr18_8.8 cocos2d::CCPoint v225; // 0:kr20_8.8 cocos2d::SEL_MenuHandler v226; // 0:x2.16 cocos2d::SEL_MenuHandler v227; // 0:x2.16 cocos2d::SEL_MenuHandler v228; // 0:x2.16 cocos2d::SEL_MenuHandler v229; // 0:x2.16 cocos2d::SEL_MenuHandler v230; // 0:x2.16 v2 = cocos2d::CCLayer::init(a1); if ( v2 ) { GameManager::sharedState()->m_inMenuLayer = 1; v4 = GameManager::sharedState(); v5 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v4->m_sceneEnum = 0; v5->setKeypadEnabled(a1, 1); a1->setKeyboardEnabled(a1, 1); v6 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v6); v7 = (float)(v218 * 0.5) + 50.0; v9 = (cocos2d::CCNode *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_gradientBG.png", v8); setAnchorPoint = v9->setAnchorPoint; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, 0.0, 0.0); setAnchorPoint(v9, (const cocos2d::CCPoint *)&v221); a1->addChild_0(a1, v9, -2); v9->setScaleX(v9, (float)(v217 + 10.0) / v9[1].m_obContentSize.height); v9->setScaleY(v9, (float)(v218 + 10.0) / v9[1].m_sAdditionalTransform.a); setPosition = v9->setPosition; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, -5.0, -5.0); setPosition(v9, (const cocos2d::CCPoint *)&v221); getTag = v9->__vftable[1].getTag; LOWORD(v221) = -26986; BYTE2(v221) = -106; ((void (__fastcall *)(cocos2d::CCNode *, void **))getTag)(v9, &v221); v13 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png"); v14 = v13->setAnchorPoint; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, 0.0, 1.0); v14(v13, (const cocos2d::CCPoint *)&v221); v15 = v13->setPosition; v16 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenLeft(v16); v18 = v17; v19 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenTop(v19); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, v18 - 1.0, v20 + 1.0); v15(v13, (const cocos2d::CCPoint *)&v221); cocos2d::CCSprite::setFlipY(v13, 1); a1->addChild_0(a1, v13, -1); v21 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png"); v22 = v21->setAnchorPoint; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, 0.0, 0.0); v22(v21, (const cocos2d::CCPoint *)&v221); v23 = v21->setPosition; v24 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenLeft(v24); v26 = v25; v27 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenBottom(v27); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, v26 - 1.0, v28 - 1.0); v23(v21, (const cocos2d::CCPoint *)&v221); a1->addChild_0(a1, v21, 1); v29 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png"); v30 = v29->setAnchorPoint; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, 1.0, 0.0); v30(v29, (const cocos2d::CCPoint *)&v221); v31 = v29->setPosition; v32 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenRight(v32); v34 = v33; v35 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenBottom(v35); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, v34 + 1.0, v36 - 1.0); v31(v29, (const cocos2d::CCPoint *)&v221); cocos2d::CCSprite::setFlipX(v29, 1); a1->addChild_0(a1, v29, 1); GJAccountManager::sharedState(); v37 = CCTextInputNode::create(180.0, 50.0, "Player", "Thonburi"); a1->m_usernameInput = v37; a1->addChild_0(a1, v37, 20); v38 = v217; a1->m_usernameInput->m_delegate = &a1->TextInputDelegate; v39 = v38 * 0.5; m_usernameInput = a1->m_usernameInput; v41 = m_usernameInput->setPosition; v42 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenTop(v42); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, v39, v43 - 34.0); v41(m_usernameInput, (const cocos2d::CCPoint *)&v221); a1->m_usernameInput->m_textField->setVisible(a1->m_usernameInput->m_textField, 0); v44 = a1->m_usernameInput; LOBYTE(v216) = 120; v44->m_maxLabelLength = 15; *(_WORD *)((char *)&v216 + 1) = -3926; CCTextInputNode::setLabelPlaceholderColor(v44, (cocos2d::ccColor3B)v216); CCTextInputNode::setLabelPlaceholderScale(a1->m_usernameInput, 0.7); v45 = a1->m_usernameInput; sub_D153B8((unsigned int)v212 + 224, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"); CCTextInputNode::setAllowedChars((__int64)v45, (__int64)&v221); v46 = (char *)v221 - 24; if ( (char *)v221 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v204 = (unsigned int *)((char *)v221 - 8); do v205 = __ldaxr(v204); while ( __stlxr(v205 - 1, v204) ); } else { v205 = *((_DWORD *)v221 - 2); *((_DWORD *)v221 - 2) = v205 - 1; } if ( v205 <= 0 ) operator delete(v46); } v47 = GJAccountManager::sharedState(); if ( v47->m_accountID == v47->m_unkInt1 ) { GameManager::sharedState(); sub_D18D28(&v220); sub_D153B8((unsigned int)v212 + 224, &byte_F288A0); v214 = v220; v168 = *((_QWORD *)v220 - 3); v169 = *((cocos2d::CCLayer **)v221 - 3); v215 = (void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v221; v213 = v169; if ( (unsigned __int64)v169 > v168 ) v170 = v168; else v170 = (size_t)v169; v171 = memcmp(v220, v221, v170); v172 = v214; if ( !v171 ) { v171 = 0x7FFFFFFF; v173 = v168 - (_QWORD)v213; if ( v173 <= 0x7FFFFFFF ) { if ( v173 >= (__int64)0xFFFFFFFF80000000LL ) v171 = v173; else v171 = 0x80000000; } } v174 = (char *)v215 - 24; if ( (__int64 *)((char *)v215 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v210 = (unsigned int *)((char *)v215 - 8); do v211 = __ldaxr(v210); while ( __stlxr(v211 - 1, v210) ); } else { v211 = *((_DWORD *)v215 - 2); *((_DWORD *)v215 - 2) = v211 - 1; } if ( v211 <= 0 ) operator delete(v174); v172 = v220; } v175 = v172 - 24; if ( v172 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v198 = (unsigned int *)(v172 - 8); do v199 = __ldaxr(v198); while ( __stlxr(v199 - 1, v198) ); } else { v199 = *((_DWORD *)v172 - 2); *((_DWORD *)v172 - 2) = v199 - 1; } if ( v199 <= 0 ) operator delete(v175); } if ( v171 ) { v176 = a1->m_usernameInput; GameManager::sharedState(); sub_D18D28(&v220); sub_D153B8((int)&v221, v220); CCTextInputNode::setString(v176, (const unsigned __int8 **)&v221); v177 = (char *)v221 - 24; if ( (char *)v221 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v202 = (unsigned int *)((char *)v221 - 8); do v203 = __ldaxr(v202); while ( __stlxr(v203 - 1, v202) ); } else { v203 = *((_DWORD *)v221 - 2); *((_DWORD *)v221 - 2) = v203 - 1; } if ( v203 <= 0 ) operator delete(v177); } v178 = v220 - 24; if ( v220 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v200 = (unsigned int *)(v220 - 8); do v201 = __ldaxr(v200); while ( __stlxr(v201 - 1, v200) ); } else { v201 = *((_DWORD *)v220 - 2); *((_DWORD *)v220 - 2) = v201 - 1; } if ( v201 <= 0 ) operator delete(v178); } } if ( !GameManager::sharedState()->m_clickedName ) { v179 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_nameTxt_001.png"); a1->addChild(a1, v179); v180 = v179->setPosition; v181 = a1->m_usernameInput->getPosition(a1->m_usernameInput); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v220, 115.0, 10.0); cocos2d::CCPoint::operator+(&v221, v181, &v220); v180(v179, (const cocos2d::CCPoint *)&v221); } } else { v48 = a1->m_usernameInput; GJAccountManager::sharedState(); sub_D18D28(&v220); sub_D153B8((int)&v221, v220); CCTextInputNode::setString(v48, (const unsigned __int8 **)&v221); v49 = (char *)v221 - 24; if ( (char *)v221 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v206 = (unsigned int *)((char *)v221 - 8); do v207 = __ldaxr(v206); while ( __stlxr(v207 - 1, v206) ); } else { v207 = *((_DWORD *)v221 - 2); *((_DWORD *)v221 - 2) = v207 - 1; } if ( v207 <= 0 ) operator delete(v49); } v50 = v220 - 24; if ( v220 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v208 = (unsigned int *)(v220 - 8); do v209 = __ldaxr(v208); while ( __stlxr(v209 - 1, v208) ); } else { v209 = *((_DWORD *)v220 - 2); *((_DWORD *)v220 - 2) = v209 - 1; } if ( v209 <= 0 ) operator delete(v50); } a1->m_usernameInput->setTouchEnabled(a1->m_usernameInput, 0); v51 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_lockGray_001.png"); a1->addChild_0(a1, v51, 2); v52 = a1->m_usernameInput->m_textLabel->getContentSize(a1->m_usernameInput->m_textLabel); cocos2d::CCSize::CCSize(&v219, v52); v53 = v51->setPosition; v54 = a1->m_usernameInput->getPosition(a1->m_usernameInput); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v220, (float)(v219.width * 0.5) + 8.0, 10.0); cocos2d::CCPoint::operator+(&v221, v54, &v220); v53(v51, (const cocos2d::CCPoint *)&v221); v51->setScale(v51, 0.6); } v55 = cocos2d::CCSprite::createWithSpriteFrameName("floorLine_001.png"); a1->addChild_0(a1, v55, 0); v56 = v55->setPosition; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, v217 * 0.5, v7); v56(v55, (const cocos2d::CCPoint *)&v221); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v55->setBlendFunc)(v55, 0x100000302LL); v57 = GameManager::sharedState(); v58 = SimplePlayer::create(v57->m_playerFrame.random - v57->m_playerFrame.seed); a1->m_playerObject = v58; a1->addChild_0(a1, v58, 0); SimplePlayer::createRobotSprite(a1->m_playerObject, 1); SimplePlayer::createSpiderSprite(a1->m_playerObject, 1); m_playerObject = a1->m_playerObject; setScale = m_playerObject->setScale; if ( GameManager::sharedState()->m_playerIconType == Jetpack ) LODWORD(v61) = 1.5; else LODWORD(v61) = 1070386381; setScale(m_playerObject, v61); v62 = a1->m_playerObject; v63 = v55; getPosition = v55->getPosition; v65 = v62->setPosition; v66 = (__int64)getPosition(v63); v67 = a1->m_playerObject->getScale(a1->m_playerObject); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v220, 0.0, (float)((float)(v67 * 30.0) * 0.5) + 1.0); cocos2d::CCPoint::operator+(&v221, v66, &v220); v65(v62, (const cocos2d::CCPoint *)&v221); GJGarageLayer::updatePlayerColors(a1); v68 = GameManager::sharedState()->m_playerIconType - 1; switch ( v68 ) { case 0: v194 = a1->m_playerObject; v195 = GameManager::sharedState(); SimplePlayer::updatePlayerFrame(v194, v195->m_playerShip.random - v195->m_playerShip.seed, Ship); break; case 1: v192 = a1->m_playerObject; v193 = GameManager::sharedState(); SimplePlayer::updatePlayerFrame(v192, v193->m_playerBall.random - v193->m_playerBall.seed, Ball); break; case 2: v190 = a1->m_playerObject; v191 = GameManager::sharedState(); SimplePlayer::updatePlayerFrame(v190, v191->m_playerBird.random - v191->m_playerBird.seed, Ufo); break; case 3: v188 = a1->m_playerObject; v189 = GameManager::sharedState(); SimplePlayer::updatePlayerFrame(v188, v189->m_playerDart.random - v189->m_playerDart.seed, Wave); break; case 4: v186 = a1->m_playerObject; v187 = GameManager::sharedState(); SimplePlayer::updatePlayerFrame(v186, v187->m_playerRobot.random - v187->m_playerRobot.seed, Robot); break; case 5: v184 = a1->m_playerObject; v185 = GameManager::sharedState(); SimplePlayer::updatePlayerFrame(v184, v185->m_playerSpider.random - v185->m_playerSpider.seed, Spider); break; case 6: v182 = a1->m_playerObject; v183 = GameManager::sharedState(); SimplePlayer::updatePlayerFrame(v182, v183->m_playerSwing.random - v183->m_playerSwing.seed, Swing); break; case 7: v196 = a1->m_playerObject; v197 = GameManager::sharedState(); SimplePlayer::updatePlayerFrame(v196, v197->m_playerJetpack.random - v197->m_playerJetpack.seed, Jetpack); break; default: break; } GJGarageLayer::setupIconSelect(a1); v69 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_03_001.png"); v226.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v226.adj = (size_t)GJGarageLayer::onBack; v70 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v69, nullptr, v226); v213 = v70; CCMenuItemSpriteExtra::setSizeMult((CCMenuItemSpriteExtra *)v70, 1.6); v71 = (cocos2d::CCNode *)cocos2d::CCMenu::create(v70, nullptr); a1->addChild_0(a1, v71, 1); v72 = v71->setPosition; v73 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenLeft(v73); v75 = v74; v76 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenTop(v76); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, v75 + 24.0, v77 - 23.0); v72(v71, (const cocos2d::CCPoint *)&v221); v78 = cocos2d::CCSprite::createWithSpriteFrameName("shopRope_001.png"); v227.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v227.adj = (size_t)GJGarageLayer::onShop; v79 = CCMenuItemSpriteExtra::create(v78, nullptr, v227); CCMenuItemSpriteExtra::useAnimationType(v79, Move); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, 0.0, -15.0); cocos2d::CCPoint::operator=(&v79->m_offset, v80, v81); addChild = v71->addChild; v79->m_duration = 0.3; v79->m_unselectedDuration = 0.3; addChild(v71, v79); v83 = v79->setPosition; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v220, (float)(v217 * 0.5) + -135.0, v218 - 25.0); v222 = cocos2d::CCNode::convertToNodeSpace(v71, (const cocos2d::CCPoint *)&v220); ((void (__fastcall *)(CCMenuItemSpriteExtra *, void **, float, float))v83)(v79, &v221, v222.x, v222.y); v84 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_shardsBtn_001.png"); v228.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v228.adj = (size_t)GJGarageLayer::onShards; v85 = CCMenuItemSpriteExtra::create(v84, nullptr, v228); v71->addChild(v71, v85); v86 = v85->setPosition; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v220, 30.0, v218 - 80.0); v223 = cocos2d::CCNode::convertToNodeSpace(v71, (const cocos2d::CCPoint *)&v220); ((void (__fastcall *)(CCMenuItemSpriteExtra *, void **, float, float))v86)(v85, &v221, v223.x, v223.y); v87 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_paintBtn_001.png"); v229.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v229.adj = (size_t)GJGarageLayer::onPaint; v88 = CCMenuItemSpriteExtra::create(v87, nullptr, v229); v71->addChild(v71, v88); v89 = v88->setPosition; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v220, 30.0, v218 - 120.0); v224 = cocos2d::CCNode::convertToNodeSpace(v71, (const cocos2d::CCPoint *)&v220); ((void (__fastcall *)(CCMenuItemSpriteExtra *, void **, float, float))v89)(v88, &v221, v224.x, v224.y); v90 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_starsIcon_001.png"); v90->setScale(v90, 0.54); a1->addChild(a1, v90); v91 = v90->setPosition; v92 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenRight(v92); v94 = v93; v95 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenTop(v95); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, v94 - 18.0, v96 - 12.0); v91(v90, (const cocos2d::CCPoint *)&v221); v97 = GameStatsManager::sharedState(); Stat = GameStatsManager::getStat(v97, "6"); v99 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)Stat); cocos2d::CCString::getCString(v99); v100 = cocos2d::CCLabelBMFont::create(); a1->addChild(a1, v100); v215 = (void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v100->setAnchorPoint; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, 1.0, 0.5); v215(v100, &v221); v101 = v90->getPosition; v214 = (char *)v100->setPosition; v215 = (void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v101(v90); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v220, -12.0, 0.5); cocos2d::CCPoint::operator+(&v221, v215, &v220); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v214)(v100, &v221); v100->setScale(v100, 0.34); v102 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_moonsIcon_001.png"); v102->setScale(v102, 0.54); a1->addChild(a1, v102); v103 = v90; v104 = v90->getPosition; v105 = v102->setPosition; v215 = (void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v104(v103); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v220, 0.0, -15.0); cocos2d::CCPoint::operator+(&v221, v215, &v220); v105(v102, (const cocos2d::CCPoint *)&v221); v106 = GameStatsManager::sharedState(); v107 = GameStatsManager::getStat(v106, "28"); v108 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v107); cocos2d::CCString::getCString(v108); v109 = cocos2d::CCLabelBMFont::create(); a1->addChild(a1, v109); v215 = (void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v109->setAnchorPoint; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, 1.0, 0.5); v215(v109, &v221); v110 = v102->getPosition; v214 = (char *)v109->setPosition; v215 = (void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v110(v102); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v220, -12.0, 0.5); cocos2d::CCPoint::operator+(&v221, v215, &v220); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v214)(v109, &v221); v109->setScale(v109, 0.34); v111 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_coinsIcon_001.png"); a1->addChild(a1, v111); v112 = v102; v113 = v102->getPosition; v114 = v111->setPosition; v215 = (void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v113(v112); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v220, 0.0, -15.0); cocos2d::CCPoint::operator+(&v221, v215, &v220); v114(v111, (const cocos2d::CCPoint *)&v221); v111->setScale(v111, 0.51); v115 = GameStatsManager::sharedState(); v116 = GameStatsManager::getStat(v115, "8"); v117 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v116); cocos2d::CCString::getCString(v117); v118 = cocos2d::CCLabelBMFont::create(); a1->addChild(a1, v118); v215 = (void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v118->setAnchorPoint; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, 1.0, 0.5); v215(v118, &v221); v119 = v111->getPosition; v214 = (char *)v118->setPosition; v215 = (void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v119(v111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v220, -12.0, 0.5); cocos2d::CCPoint::operator+(&v221, v215, &v220); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v214)(v118, &v221); v118->setScale(v118, 0.34); v120 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_coinsIcon2_001.png"); a1->addChild(a1, v120); v121 = v111; v122 = v111->getPosition; v123 = v120->setPosition; v215 = (void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v122(v121); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v220, 0.0, -15.0); cocos2d::CCPoint::operator+(&v221, v215, &v220); v123(v120, (const cocos2d::CCPoint *)&v221); v120->setScale(v120, 0.51); v124 = GameStatsManager::sharedState(); v125 = GameStatsManager::getStat(v124, "12"); v126 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v125); cocos2d::CCString::getCString(v126); v127 = cocos2d::CCLabelBMFont::create(); a1->addChild(a1, v127); v215 = (void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v127->setAnchorPoint; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, 1.0, 0.5); v215(v127, &v221); v128 = v120->getPosition; v214 = (char *)v127->setPosition; v215 = (void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v128(v120); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v220, -12.0, 0.5); cocos2d::CCPoint::operator+(&v221, v215, &v220); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v214)(v127, &v221); v127->setScale(v127, 0.34); v129 = cocos2d::CCSprite::createWithSpriteFrameName("currencyOrbIcon_001.png"); a1->addChild(a1, v129); v129->setScale(v129, 0.54); v130 = v120; v131 = v120->getPosition; v132 = v129->setPosition; v215 = (void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v131(v130); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v220, 0.0, -15.0); cocos2d::CCPoint::operator+(&v221, v215, &v220); v132(v129, (const cocos2d::CCPoint *)&v221); v133 = GameStatsManager::sharedState(); v134 = GameStatsManager::getStat(v133, "14"); v135 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v134); cocos2d::CCString::getCString(v135); v136 = cocos2d::CCLabelBMFont::create(); a1->addChild(a1, v136); v215 = (void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v136->setAnchorPoint; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, 1.0, 0.5); v215(v136, &v221); v137 = v129->getPosition; v214 = (char *)v136->setPosition; v215 = (void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v137(v129); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v220, -12.0, 0.5); cocos2d::CCPoint::operator+(&v221, v215, &v220); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v214)(v136, &v221); v136->setScale(v136, 0.34); v138 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_diamondsIcon_001.png"); a1->addChild(a1, v138); v138->setScale(v138, 0.6); v139 = v129; v140 = v129->getPosition; v141 = v138->setPosition; v215 = (void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v140(v139); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v220, 0.0, -15.0); cocos2d::CCPoint::operator+(&v221, v215, &v220); v141(v138, (const cocos2d::CCPoint *)&v221); v142 = GameStatsManager::sharedState(); v143 = GameStatsManager::getStat(v142, "13"); v144 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v143); cocos2d::CCString::getCString(v144); v145 = cocos2d::CCLabelBMFont::create(); a1->addChild(a1, v145); v215 = (void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v145->setAnchorPoint; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, 1.0, 0.5); v215(v145, &v221); v146 = v138->getPosition; v214 = (char *)v145->setPosition; v215 = (void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v146(v138); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v220, -12.0, 0.5); cocos2d::CCPoint::operator+(&v221, v215, &v220); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v214)(v145, &v221); v145->setScale(v145, 0.34); v147 = cocos2d::CCSprite::createWithSpriteFrameName("currencyDiamondIcon_001.png"); a1->addChild(a1, v147); v147->setScale(v147, 0.54); v148 = v138; v149 = v138->getPosition; v150 = v147->setPosition; v215 = (void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v149(v148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v220, 0.0, -15.0); cocos2d::CCPoint::operator+(&v221, v215, &v220); v150(v147, (const cocos2d::CCPoint *)&v221); v151 = GameStatsManager::sharedState(); v152 = GameStatsManager::getStat(v151, "29"); v153 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v152); cocos2d::CCString::getCString(v153); v154 = cocos2d::CCLabelBMFont::create(); a1->addChild(a1, v154); v155 = v154->setAnchorPoint; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, 1.0, 0.5); v155(v154, (const cocos2d::CCPoint *)&v221); v156 = v154->setPosition; v157 = (__int64)v147->getPosition(v147); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v220, -12.0, 0.5); cocos2d::CCPoint::operator+(&v221, v157, &v220); v156(v154, (const cocos2d::CCPoint *)&v221); v154->setScale(v154, 0.34); v158 = GameManager::sharedState(); if ( v158->m_playerUserID.random != v158->m_playerUserID.seed ) { v159 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); v159->setScale(v159, 0.8); v230.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v230.adj = (size_t)GJGarageLayer::onInfo; v160 = CCMenuItemSpriteExtra::create(v159, nullptr, v230); CCMenuItemSpriteExtra::setSizeMult(v160, 2.0); v161 = v160->setPosition; v162 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenRight(v162); v164 = v163; v165 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenTop(v165); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v220, v164 - 15.0, v166 - 15.0); v225 = cocos2d::CCNode::convertToNodeSpace(v71, (const cocos2d::CCPoint *)&v220); ((void (__fastcall *)(CCMenuItemSpriteExtra *, void **, float, float))v161)(v160, &v221, v225.x, v225.y); } isControllerConnected = PlatformToolbox::isControllerConnected(); if ( isControllerConnected ) { v2 = isControllerConnected; GameToolbox::addBackButton(a1, (cocos2d::CCMenuItem *)v213); } } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source