// // GJGarageLayer::init from 0x406e78 to 0x407efc (4228 bytes) // // 1 xrefs: // > GJGarageLayer::node @ 0x402546 // // 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) { cocos2d::CCDirector *v2; // r0 float v3; // s18 const char *v4; // r1 cocos2d::CCNode *v5; // r6 void (__fastcall *setAnchorPoint)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 int (__fastcall *getTag)(const cocos2d::CCObject *__hidden); // r2 cocos2d::CCSprite *v9; // r6 void (__fastcall *v10)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r9 void (__fastcall *v11)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCDirector *v12; // r0 float v13; // s19 cocos2d::CCDirector *v14; // r0 float v15; // r0 cocos2d::CCSprite *v16; // r6 void (__fastcall *v17)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r9 void (__fastcall *v18)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCDirector *v19; // r0 float v20; // s19 cocos2d::CCDirector *v21; // r0 float v22; // r0 cocos2d::CCSprite *v23; // r6 void (__fastcall *v24)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 void (__fastcall *v25)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCDirector *v26; // r0 float v27; // s19 cocos2d::CCDirector *v28; // r0 float v29; // r0 GJAccountManager *v30; // r0 const char *v31; // r3 CCTextInputNode *v32; // r0 GJGarageLayer_vtbl *v33; // r3 float width; // s19 CCTextInputNode *m_usernameInput; // r6 void (__fastcall *v36)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7 cocos2d::CCDirector *v37; // r0 float v38; // r0 CCTextInputNode *v39; // r0 CCTextInputNode *v40; // r7 GJAccountManager *v41; // r0 CCTextInputNode *v42; // r8 char *v43; // r2 cocos2d::CCSprite *v44; // r7 const cocos2d::CCSize *v45; // r0 void (__fastcall *v46)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 const cocos2d::CCPoint *v47; // r9 int v48; // r8 CCTextInputNode *v49; // r8 char *v50; // r2 cocos2d::CCSprite *v51; // r7 void (__fastcall *v52)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 const cocos2d::CCPoint *v53; // r9 cocos2d::CCSprite *v54; // r7 void (__fastcall *v55)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 void (__fastcall *setBlendFunc)(cocos2d::CCSprite *__hidden, cocos2d::ccBlendFunc); // r12 GameManager *v57; // r0 SimplePlayer *v58; // r0 GJGarageLayer_vtbl *v59; // r3 SimplePlayer *m_playerObject; // r8 void (__fastcall *setScale)(cocos2d::CCSprite *__hidden, float); // r9 float v62; // r1 SimplePlayer *v63; // r8 void (__fastcall *v64)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r9 int v65; // r7 float v66; // r0 SimplePlayer *v67; // r5 GameManager *v68; // r0 IconType v69; // r2 int random; // r1 int seed; // r3 SimplePlayer *v72; // r0 int v73; // r1 SimplePlayer *v74; // r5 GameManager *v75; // r0 int v76; // r1 int v77; // r3 SimplePlayer *v78; // r5 GameManager *v79; // r0 int v80; // r1 int v81; // r3 SimplePlayer *v82; // r5 GameManager *v83; // r0 int v84; // r1 int v85; // r3 SimplePlayer *v86; // r5 GameManager *v87; // r0 int v88; // r1 int v89; // r3 SimplePlayer *v90; // r5 GameManager *v91; // r0 int v92; // r1 int v93; // r3 SimplePlayer *v94; // r5 GameManager *v95; // r0 int v96; // r1 int v97; // r3 SimplePlayer *v98; // r5 GameManager *v99; // r0 int v100; // r1 int v101; // r3 cocos2d::CCSprite *v102; // r0 cocos2d::CCNode *v103; // r8 void (__fastcall *v104)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r6 cocos2d::CCDirector *v105; // r0 float v106; // s16 cocos2d::CCDirector *v107; // r0 float v108; // r0 cocos2d::CCSprite *v109; // r0 CCMenuItemSpriteExtra *v110; // r10 int v111; // r2 bool v112; // r3 void (__fastcall *v113)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCSprite *v114; // r0 CCMenuItemSpriteExtra *v115; // r10 void (__fastcall *v116)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCSprite *v117; // r0 CCMenuItemSpriteExtra *v118; // r10 void (__fastcall *v119)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCSprite *v120; // r10 void (__fastcall *v121)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCDirector *v122; // r0 float v123; // s16 cocos2d::CCDirector *v124; // r0 float v125; // r0 GameStatsManager *v126; // r0 const char *Stat; // r0 cocos2d::CCString *v128; // r0 cocos2d::CCLabelBMFont *v129; // r9 cocos2d::CCSprite *v130; // r9 int v131; // r10 GameStatsManager *v132; // r0 const char *v133; // r0 cocos2d::CCString *v134; // r0 cocos2d::CCLabelBMFont *v135; // r10 cocos2d::CCSprite *v136; // r10 int v137; // r9 GameStatsManager *v138; // r0 const char *v139; // r0 cocos2d::CCString *v140; // r0 cocos2d::CCLabelBMFont *v141; // r9 cocos2d::CCSprite *v142; // r9 int v143; // r10 GameStatsManager *v144; // r0 const char *v145; // r0 cocos2d::CCString *v146; // r0 cocos2d::CCLabelBMFont *v147; // r10 cocos2d::CCSprite *v148; // r10 int v149; // r9 GameStatsManager *v150; // r0 const char *v151; // r0 cocos2d::CCString *v152; // r0 cocos2d::CCLabelBMFont *v153; // r9 cocos2d::CCSprite *v154; // r9 int v155; // r10 GameStatsManager *v156; // r0 const char *v157; // r0 cocos2d::CCString *v158; // r0 cocos2d::CCLabelBMFont *v159; // r10 cocos2d::CCSprite *v160; // r10 int v161; // r9 GameStatsManager *v162; // r0 const char *v163; // r0 cocos2d::CCString *v164; // r0 cocos2d::CCLabelBMFont *v165; // r9 int v166; // r10 GameManager *v167; // r0 cocos2d::CCSprite *v168; // r5 CCMenuItemSpriteExtra *v169; // r7 void (__fastcall *v170)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCDirector *v171; // r0 float v172; // s16 cocos2d::CCDirector *v173; // r0 float v174; // r0 _BOOL4 isControllerConnected; // r5 const char *v177; // [sp+4h] [bp-78h] cocos2d::CCString *v178; // [sp+Ch] [bp-70h] cocos2d::CCString *v179; // [sp+Ch] [bp-70h] _BOOL4 v180; // [sp+14h] [bp-68h] CCMenuItemSpriteExtra *v181; // [sp+18h] [bp-64h] void (__fastcall *v182)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // [sp+20h] [bp-5Ch] int v183; // [sp+20h] [bp-5Ch] void (__fastcall *v184)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [sp+20h] [bp-5Ch] void (__fastcall *v185)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // [sp+20h] [bp-5Ch] int v186; // [sp+20h] [bp-5Ch] void (__fastcall *v187)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [sp+20h] [bp-5Ch] void (__fastcall *v188)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // [sp+20h] [bp-5Ch] int v189; // [sp+20h] [bp-5Ch] void (__fastcall *v190)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [sp+20h] [bp-5Ch] void (__fastcall *v191)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // [sp+20h] [bp-5Ch] int v192; // [sp+20h] [bp-5Ch] void (__fastcall *v193)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [sp+20h] [bp-5Ch] void (__fastcall *v194)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // [sp+20h] [bp-5Ch] int v195; // [sp+20h] [bp-5Ch] void (__fastcall *v196)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [sp+20h] [bp-5Ch] void (__fastcall *v197)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // [sp+20h] [bp-5Ch] int v198; // [sp+20h] [bp-5Ch] void (__fastcall *v199)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [sp+20h] [bp-5Ch] void (__fastcall *v200)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [sp+24h] [bp-58h] void (__fastcall *v201)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [sp+24h] [bp-58h] void (__fastcall *v202)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [sp+24h] [bp-58h] void (__fastcall *v203)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [sp+24h] [bp-58h] void (__fastcall *v204)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [sp+24h] [bp-58h] void (__fastcall *v205)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [sp+24h] [bp-58h] cocos2d::ccColor3B v206; // [sp+28h] [bp-54h] cocos2d::CCSize v207; // [sp+2Ch] [bp-50h] BYREF _DWORD v208[2]; // [sp+34h] [bp-48h] BYREF cocos2d::CCPoint v209; // [sp+3Ch] [bp-40h] BYREF cocos2d::CCPoint v210; // [sp+44h] [bp-38h] BYREF void (*v211)(GJGarageLayer *, cocos2d::CCObject *); // [sp+4Ch] [bp-30h] int v212; // [sp+50h] [bp-2Ch] void (*v213)(GJGarageLayer *, cocos2d::CCObject *); // [sp+54h] [bp-28h] int v214; // [sp+58h] [bp-24h] cocos2d::CCSize v215; // [sp+5Ch] [bp-20h] BYREF cocos2d::CCPoint v216; // [sp+64h] [bp-18h] BYREF cocos2d::CCPoint v217; // [sp+6Ch] [bp-10h] BYREF v180 = cocos2d::CCLayer::init(a1); if ( v180 ) { GameManager::sharedState()->m_inMenuLayer = 1; GameManager::sharedState()->m_sceneEnum = 0; a1->setKeypadEnabled(a1, 1); a1->setKeyboardEnabled(a1, 1); v2 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v207, v2); v3 = (float)(v207.height * 0.5) + 50.0; v5 = (cocos2d::CCNode *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_gradientBG.png", v4); setAnchorPoint = v5->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v217, 0.0, 0.0); setAnchorPoint(v5, &v217); a1->addChild_0(a1, v5, -2); ((void (__fastcall *)(cocos2d::CCNode *, _DWORD))v5->setScaleX)(v5, (float)(v207.width + 10.0) / v5[1].m_fSkewX); ((void (__fastcall *)(cocos2d::CCNode *, _DWORD))v5->setScaleY)(v5, (float)(v207.height + 10.0) / v5[1].m_fSkewY); setPosition = v5->setPosition; cocos2d::CCPoint::CCPoint(&v217, -5.0, -5.0); setPosition(v5, &v217); getTag = v5->__vftable[1].getTag; LOWORD(v217.x) = -26986; BYTE2(v217.x) = -106; ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCPoint *))getTag)(v5, &v217); v9 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png"); v10 = v9->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v217, 0.0, 1.0); v10(v9, &v217); v11 = v9->setPosition; v12 = cocos2d::CCDirector::sharedDirector(); v13 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v12)); v14 = cocos2d::CCDirector::sharedDirector(); v15 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v14)); cocos2d::CCPoint::CCPoint(&v217, v13 - 1.0, v15 + 1.0); v11(v9, &v217); cocos2d::CCSprite::setFlipY(v9, 1); a1->addChild_0(a1, v9, -1); v16 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png"); v17 = v16->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v217, 0.0, 0.0); v17(v16, &v217); v18 = v16->setPosition; v19 = cocos2d::CCDirector::sharedDirector(); v20 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v19)); v21 = cocos2d::CCDirector::sharedDirector(); v22 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v21)); cocos2d::CCPoint::CCPoint(&v217, v20 - 1.0, v22 - 1.0); v18(v16, &v217); a1->addChild_0(a1, v16, 1); v23 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png"); v24 = v23->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v217, 1.0, 0.0); v24(v23, &v217); v25 = v23->setPosition; v26 = cocos2d::CCDirector::sharedDirector(); v27 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v26)); v28 = cocos2d::CCDirector::sharedDirector(); v29 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v28)); cocos2d::CCPoint::CCPoint(&v217, v27 + 1.0, v29 - 1.0); v25(v23, &v217); cocos2d::CCSprite::setFlipX(v23, 1); a1->addChild_0(a1, v23, 1); v30 = GJAccountManager::sharedState(); if ( v30->m_accountID == v30->m_unkInt1 ) v31 = "bigFont.fnt"; else v31 = "goldFont.fnt"; v177 = v31; v32 = CCTextInputNode::create(180.0, 50.0, "Player", "Thonburi"); v33 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_usernameInput = v32; ((void (__fastcall *)(GJGarageLayer *, CCTextInputNode *, int, void (__fastcall *)(cocos2d::CCNode *__hidden, cocos2d::CCNode *, int), int, const char *))v33->addChild_0)( a1, v32, 20, v33->addChild_0, 24, v177); width = v207.width; a1->m_usernameInput->m_delegate = &a1->TextInputDelegate; m_usernameInput = a1->m_usernameInput; v36 = m_usernameInput->setPosition; v37 = cocos2d::CCDirector::sharedDirector(); v38 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v37)); cocos2d::CCPoint::CCPoint(&v217, width * 0.5, v38 - 34.0); v36(m_usernameInput, &v217); a1->m_usernameInput->m_textField->setVisible(a1->m_usernameInput->m_textField, 0); v39 = a1->m_usernameInput; v39->m_maxLabelLength = 15; *(_WORD *)&v206.r = -21896; v206.b = -16; CCTextInputNode::setLabelPlaceholderColor(v39, v206); CCTextInputNode::setLabelPlaceholderScale(a1->m_usernameInput, 0.7); v40 = a1->m_usernameInput; sub_776584((int)&v217, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"); CCTextInputNode::setAllowedChars((int)v40, (int)&v217); sub_774008(&v217); v41 = GJAccountManager::sharedState(); if ( v41->m_accountID == v41->m_unkInt1 ) { GameManager::sharedState(); sub_775C20(&v216); sub_776584((int)&v217, (char *)&unk_939830); v48 = sub_774DBC(&v216, &v217); sub_774008(&v217); sub_774008(&v216); if ( v48 ) { v49 = a1->m_usernameInput; GameManager::sharedState(); sub_775C20(&v216); sub_776584((int)&v217, (char *)LODWORD(v216.x)); CCTextInputNode::setString((int)v49, (char *)&v217, v50); sub_774008(&v217); sub_774008(&v216); } if ( !GameManager::sharedState()->m_clickedName ) { v51 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_nameTxt_001.png"); a1->addChild(a1, v51); v52 = v51->setPosition; v53 = a1->m_usernameInput->getPosition(a1->m_usernameInput); cocos2d::CCPoint::CCPoint(&v216, 115.0, 10.0); cocos2d::CCPoint::operator+(&v217, v53, &v216); v52(v51, &v217); } } else { v42 = a1->m_usernameInput; GJAccountManager::sharedState(); sub_775C20(&v216); sub_776584((int)&v217, (char *)LODWORD(v216.x)); CCTextInputNode::setString((int)v42, (char *)&v217, v43); sub_774008(&v217); sub_774008(&v216); a1->m_usernameInput->setTouchEnabled(a1->m_usernameInput, 0); v44 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_lockGray_001.png"); a1->addChild_0(a1, v44, 2); v45 = a1->m_usernameInput->m_textLabel->getContentSize(a1->m_usernameInput->m_textLabel); cocos2d::CCSize::CCSize(&v215, v45); v46 = v44->setPosition; v47 = a1->m_usernameInput->getPosition(a1->m_usernameInput); cocos2d::CCPoint::CCPoint(&v216, (float)(v215.width * 0.5) + 8.0, 10.0); cocos2d::CCPoint::operator+(&v217, v47, &v216); v46(v44, &v217); ((void (__fastcall *)(cocos2d::CCSprite *, int))v44->setScale)(v44, 1058642330); } v54 = cocos2d::CCSprite::createWithSpriteFrameName("floorLine_001.png"); a1->addChild_0(a1, v54, 0); v55 = v54->setPosition; cocos2d::CCPoint::CCPoint(&v217, v207.width * 0.5, v3); v55(v54, &v217); setBlendFunc = v54->setBlendFunc; v208[0] = 770; v208[1] = 1; ((void (__fastcall *)(cocos2d::CCSprite *, int, int, _DWORD *))setBlendFunc)(v54, 770, 1, v208); v57 = GameManager::sharedState(); v58 = SimplePlayer::create(v57->m_playerFrame.random - v57->m_playerFrame.seed); v59 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_playerObject = v58; v59->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 ) v62 = 1.5; else v62 = 1.6; ((void (__fastcall *)(SimplePlayer *, _DWORD))setScale)(m_playerObject, LODWORD(v62)); v63 = a1->m_playerObject; v64 = v63->setPosition; v65 = (int)v54->getPosition(v54); v66 = a1->m_playerObject->getScale(a1->m_playerObject); cocos2d::CCPoint::CCPoint(&v216, 0.0, (float)((float)(v66 * 30.0) * 0.5) + 1.0); cocos2d::CCPoint::operator+(&v217, v65, &v216); v64(v63, &v217); GJGarageLayer::updatePlayerColors(a1); switch ( GameManager::sharedState()->m_playerIconType ) { case Ship: v67 = a1->m_playerObject; v68 = GameManager::sharedState(); v69 = Ship; random = v68->m_playerShip.random; seed = v68->m_playerShip.seed; v72 = v67; v73 = random - seed; goto LABEL_23; case Ball: v74 = a1->m_playerObject; v75 = GameManager::sharedState(); v69 = Ball; v76 = v75->m_playerBall.random; v77 = v75->m_playerBall.seed; v72 = v74; v73 = v76 - v77; goto LABEL_23; case Ufo: v78 = a1->m_playerObject; v79 = GameManager::sharedState(); v69 = Ufo; v80 = v79->m_playerBird.random; v81 = v79->m_playerBird.seed; v72 = v78; v73 = v80 - v81; goto LABEL_23; case Wave: v82 = a1->m_playerObject; v83 = GameManager::sharedState(); v69 = Wave; v84 = v83->m_playerDart.random; v85 = v83->m_playerDart.seed; v72 = v82; v73 = v84 - v85; goto LABEL_23; case Robot: v86 = a1->m_playerObject; v87 = GameManager::sharedState(); v69 = Robot; v88 = v87->m_playerRobot.random; v89 = v87->m_playerRobot.seed; v72 = v86; v73 = v88 - v89; goto LABEL_23; case Spider: v90 = a1->m_playerObject; v91 = GameManager::sharedState(); v69 = Spider; v92 = v91->m_playerSpider.random; v93 = v91->m_playerSpider.seed; v72 = v90; v73 = v92 - v93; goto LABEL_23; case Swing: v94 = a1->m_playerObject; v95 = GameManager::sharedState(); v69 = Swing; v96 = v95->m_playerSwing.random; v97 = v95->m_playerSwing.seed; v72 = v94; v73 = v96 - v97; goto LABEL_23; case Jetpack: v98 = a1->m_playerObject; v99 = GameManager::sharedState(); v69 = Jetpack; v100 = v99->m_playerJetpack.random; v101 = v99->m_playerJetpack.seed; v72 = v98; v73 = v100 - v101; LABEL_23: SimplePlayer::updatePlayerFrame(v72, v73, v69); break; default: break; } GJGarageLayer::setupIconSelect(a1); v102 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_03_001.png"); v212 = 0; v211 = GJGarageLayer::onBack; v181 = CCMenuItemSpriteExtra::create( v102, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(GJGarageLayer::onBack, (unsigned int)a1)); CCMenuItemSpriteExtra::setSizeMult(v181, 1.6); v103 = (cocos2d::CCNode *)cocos2d::CCMenu::create((cocos2d::CCMenu *)v181, nullptr); a1->addChild_0(a1, v103, 1); v104 = v103->setPosition; v105 = cocos2d::CCDirector::sharedDirector(); v106 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v105)); v107 = cocos2d::CCDirector::sharedDirector(); v108 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v107)); cocos2d::CCPoint::CCPoint(&v217, v106 + 24.0, v108 - 23.0); v104(v103, &v217); v109 = cocos2d::CCSprite::createWithSpriteFrameName("shopRope_001.png"); v214 = 0; v213 = GJGarageLayer::onShop; v110 = CCMenuItemSpriteExtra::create( v109, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(GJGarageLayer::onShop, (unsigned int)a1)); CCMenuItemSpriteExtra::useAnimationType(v110, Move); cocos2d::CCPoint::CCPoint(&v217, 0.0, -15.0); cocos2d::CCPoint::operator=((PlayerObject *)&v110->m_offset, COERCE_FLOAT(&v217), v111, v112); v110->m_duration = 0.3; v110->m_unselectedDuration = 0.3; v103->addChild(v103, v110); v113 = v110->setPosition; cocos2d::CCPoint::CCPoint(&v216, (float)(v207.width * 0.5) - 135.0, v207.height - 25.0); cocos2d::CCNode::convertToNodeSpace(&v217, v103, &v216); v113(v110, &v217); v114 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_shardsBtn_001.png"); v215.height = 0.0; LODWORD(v215.width) = GJGarageLayer::onShards; v115 = CCMenuItemSpriteExtra::create( v114, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(GJGarageLayer::onShards, (unsigned int)a1)); v103->addChild(v103, v115); v116 = v115->setPosition; cocos2d::CCPoint::CCPoint(&v216, 30.0, v207.height - 80.0); cocos2d::CCNode::convertToNodeSpace(&v217, v103, &v216); v116(v115, &v217); v117 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_paintBtn_001.png"); v216.y = 0.0; LODWORD(v216.x) = GJGarageLayer::onPaint; v118 = CCMenuItemSpriteExtra::create( v117, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(GJGarageLayer::onPaint, (unsigned int)a1)); v103->addChild(v103, v118); v119 = v118->setPosition; cocos2d::CCPoint::CCPoint(&v210, 30.0, v207.height - 120.0); cocos2d::CCNode::convertToNodeSpace(&v217, v103, &v210); v119(v118, &v217); v120 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_starsIcon_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, int))v120->setScale)(v120, 1057635697); a1->addChild(a1, v120); v121 = v120->setPosition; v122 = cocos2d::CCDirector::sharedDirector(); v123 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v122)); v124 = cocos2d::CCDirector::sharedDirector(); v125 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v124)); cocos2d::CCPoint::CCPoint(&v217, v123 - 18.0, v125 - 12.0); v121(v120, &v217); v126 = GameStatsManager::sharedState(); Stat = (const char *)GameStatsManager::getStat(v126, "6"); v128 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", Stat); cocos2d::CCString::getCString(v128); v129 = cocos2d::CCLabelBMFont::create(); a1->addChild(a1, v129); v182 = v129->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v217, 1.0, 0.5); v182(v129, &v217); v200 = v129->setPosition; v183 = (int)v120->getPosition(v120); cocos2d::CCPoint::CCPoint(&v210, -12.0, 0.5); cocos2d::CCPoint::operator+(&v217, v183, &v210); v200(v129, &v217); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v129->setScale)(v129, 1051595899); v130 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_moonsIcon_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, int))v130->setScale)(v130, 1057635697); a1->addChild(a1, v130); v184 = v130->setPosition; v131 = (int)v120->getPosition(v120); cocos2d::CCPoint::CCPoint(&v210, 0.0, -15.0); cocos2d::CCPoint::operator+(&v217, v131, &v210); v184(v130, &v217); v132 = GameStatsManager::sharedState(); v133 = (const char *)GameStatsManager::getStat(v132, "28"); v134 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v133); cocos2d::CCString::getCString(v134); v135 = cocos2d::CCLabelBMFont::create(); a1->addChild(a1, v135); v185 = v135->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v217, 1.0, 0.5); v185(v135, &v217); v201 = v135->setPosition; v186 = (int)v130->getPosition(v130); cocos2d::CCPoint::CCPoint(&v210, -12.0, 0.5); cocos2d::CCPoint::operator+(&v217, v186, &v210); v201(v135, &v217); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v135->setScale)(v135, 1051595899); v136 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_coinsIcon_001.png"); a1->addChild(a1, v136); v187 = v136->setPosition; v137 = (int)v130->getPosition(v130); cocos2d::CCPoint::CCPoint(&v210, 0.0, -15.0); cocos2d::CCPoint::operator+(&v217, v137, &v210); v187(v136, &v217); ((void (__fastcall *)(cocos2d::CCSprite *, int))v136->setScale)(v136, 1057132381); v138 = GameStatsManager::sharedState(); v139 = (const char *)GameStatsManager::getStat(v138, (const char *)&aO1i2r3e45s7t89[12]); v140 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v139); cocos2d::CCString::getCString(v140); v141 = cocos2d::CCLabelBMFont::create(); a1->addChild(a1, v141); v188 = v141->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v217, 1.0, 0.5); v188(v141, &v217); v202 = v141->setPosition; v189 = (int)v136->getPosition(v136); cocos2d::CCPoint::CCPoint(&v210, -12.0, 0.5); cocos2d::CCPoint::operator+(&v217, v189, &v210); v202(v141, &v217); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v141->setScale)(v141, 1051595899); v142 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_coinsIcon2_001.png"); a1->addChild(a1, v142); v190 = v142->setPosition; v143 = (int)v136->getPosition(v136); cocos2d::CCPoint::CCPoint(&v210, 0.0, -15.0); cocos2d::CCPoint::operator+(&v217, v143, &v210); v190(v142, &v217); ((void (__fastcall *)(cocos2d::CCSprite *, int))v142->setScale)(v142, 1057132381); v144 = GameStatsManager::sharedState(); v145 = (const char *)GameStatsManager::getStat(v144, "12"); v146 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v145); cocos2d::CCString::getCString(v146); v147 = cocos2d::CCLabelBMFont::create(); a1->addChild(a1, v147); v191 = v147->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v217, 1.0, 0.5); v191(v147, &v217); v203 = v147->setPosition; v192 = (int)v142->getPosition(v142); cocos2d::CCPoint::CCPoint(&v210, -12.0, 0.5); cocos2d::CCPoint::operator+(&v217, v192, &v210); v203(v147, &v217); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v147->setScale)(v147, 1051595899); v148 = cocos2d::CCSprite::createWithSpriteFrameName("currencyOrbIcon_001.png"); a1->addChild(a1, v148); ((void (__fastcall *)(cocos2d::CCSprite *, int))v148->setScale)(v148, 1057635697); v193 = v148->setPosition; v149 = (int)v142->getPosition(v142); cocos2d::CCPoint::CCPoint(&v210, 0.0, -15.0); cocos2d::CCPoint::operator+(&v217, v149, &v210); v193(v148, &v217); v150 = GameStatsManager::sharedState(); v151 = (const char *)GameStatsManager::getStat(v150, "14"); v152 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v151); cocos2d::CCString::getCString(v152); v153 = cocos2d::CCLabelBMFont::create(); a1->addChild(a1, v153); v194 = v153->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v217, 1.0, 0.5); v194(v153, &v217); v204 = v153->setPosition; v195 = (int)v148->getPosition(v148); cocos2d::CCPoint::CCPoint(&v210, -12.0, 0.5); cocos2d::CCPoint::operator+(&v217, v195, &v210); v204(v153, &v217); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v153->setScale)(v153, 1051595899); v154 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_diamondsIcon_001.png"); a1->addChild(a1, v154); ((void (__fastcall *)(cocos2d::CCSprite *, int))v154->setScale)(v154, 1058642330); v196 = v154->setPosition; v155 = (int)v148->getPosition(v148); cocos2d::CCPoint::CCPoint(&v210, 0.0, -15.0); cocos2d::CCPoint::operator+(&v217, v155, &v210); v196(v154, &v217); v156 = GameStatsManager::sharedState(); v157 = (const char *)GameStatsManager::getStat(v156, "13"); v158 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v157); cocos2d::CCString::getCString(v158); v159 = cocos2d::CCLabelBMFont::create(); a1->addChild(a1, v159); v197 = v159->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v217, 1.0, 0.5); v197(v159, &v217); v205 = v159->setPosition; v198 = (int)v154->getPosition(v154); cocos2d::CCPoint::CCPoint(&v210, -12.0, 0.5); cocos2d::CCPoint::operator+(&v217, v198, &v210); v205(v159, &v217); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v159->setScale)(v159, 1051595899); v160 = cocos2d::CCSprite::createWithSpriteFrameName("currencyDiamondIcon_001.png"); a1->addChild(a1, v160); ((void (__fastcall *)(cocos2d::CCSprite *, int))v160->setScale)(v160, 1057635697); v199 = v160->setPosition; v161 = (int)v154->getPosition(v154); cocos2d::CCPoint::CCPoint(&v210, 0.0, -15.0); cocos2d::CCPoint::operator+(&v217, v161, &v210); v199(v160, &v217); v162 = GameStatsManager::sharedState(); v163 = (const char *)GameStatsManager::getStat(v162, "29"); v164 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v163); cocos2d::CCString::getCString(v164); v165 = cocos2d::CCLabelBMFont::create(); a1->addChild(a1, v165); v178 = (cocos2d::CCString *)v165->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v217, 1.0, 0.5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, cocos2d::CCPoint *))v178)(v165, &v217); v179 = (cocos2d::CCString *)v165->setPosition; v166 = (int)v160->getPosition(v160); cocos2d::CCPoint::CCPoint(&v210, -12.0, 0.5); cocos2d::CCPoint::operator+(&v217, v166, &v210); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, cocos2d::CCPoint *))v179)(v165, &v217); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v165->setScale)(v165, 1051595899); v167 = GameManager::sharedState(); if ( v167->m_playerUserID.random != v167->m_playerUserID.seed ) { v168 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, int))v168->setScale)(v168, 1061997773); v217.y = 0.0; LODWORD(v217.x) = GJGarageLayer::onInfo; v169 = CCMenuItemSpriteExtra::create( v168, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(GJGarageLayer::onInfo, (unsigned int)a1)); CCMenuItemSpriteExtra::setSizeMult(v169, 2.0); v170 = v169->setPosition; v171 = cocos2d::CCDirector::sharedDirector(); v172 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v171)); v173 = cocos2d::CCDirector::sharedDirector(); v174 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v173)); cocos2d::CCPoint::CCPoint(&v209, v172 - 15.0, v174 - 15.0); cocos2d::CCNode::convertToNodeSpace(&v210, v103, &v209); v170(v169, &v210); } isControllerConnected = PlatformToolbox::isControllerConnected(); if ( isControllerConnected ) { GameToolbox::addBackButton(a1, v181); LOBYTE(v180) = isControllerConnected; } } return v180; }
GD Web Decomp Icon

GD Web Decomp

Raw Source