// // GJPathPage::init from 0x58d140 to 0x58e1fc (4284 bytes) // // 1 xrefs: // > GJPathPage::create @ 0x58e288 // // 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 GJPathPage::init(GJPathPage *a1, int a2, GJPathsLayer *a3) { GameStatsManager *v4; // r0 cocos2d::CCDirector *v5; // r0 cocos2d::CCLayer *v6; // r0 GJPathPage_vtbl *v7; // r3 CCSpriteGrayscale *v8; // r7 char v9; // r3 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r5 float width; // s18 float v12; // s18 float height; // s17 float v14; // s15 cocos2d::CCSprite *v15; // r0 CCMenuItemSpriteExtra *v16; // r7 cocos2d::CCMenu *v17; // r0 float v18; // s18 float v19; // s14 float v20; // s17 float v21; // s13 cocos2d::CCMenu_vtbl *v22; // r3 cocos2d::CCMenu *v23; // r7 void (__fastcall *v24)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r5 CCMenuItemSpriteExtra *v25; // r5 cocos2d::CCMenu *m_buttonMenu; // r10 void (__fastcall *v27)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 GJPathSprite *v28; // r8 cocos2d::CCString *v29; // r0 char *CString; // r0 CCSpriteGrayscale *v31; // r5 float v32; // r1 void (__fastcall *setColor)(cocos2d::CCSprite *__hidden, const cocos2d::ccColor3B *); // r2 float v34; // s22 float *v35; // r0 void (__fastcall *v36)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r10 float v37; // s19 void (__fastcall *v38)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 float *v39; // r0 float v40; // s19 float v41; // s22 cocos2d::CCSprite *v42; // r5 void (__fastcall *setAnchorPoint)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 void (__fastcall *setScaleX)(cocos2d::CCSprite *__hidden, float); // r7 float *v45; // r0 void (__fastcall *setScaleY)(cocos2d::CCSprite *__hidden, float); // r7 int v47; // r0 GameStatsManager *v48; // r0 GameStatsManager *v49; // r0 float v50; // s20 int v51; // r10 cocos2d::CCString *i; // r0 cocos2d::CCSprite *v53; // r7 void (__fastcall *v54)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 void (__fastcall *v55)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r9 void (__fastcall *v56)(cocos2d::CCSprite *__hidden, float); // r6 float *v57; // r0 void (__fastcall *v58)(cocos2d::CCSprite *__hidden, float); // r6 int v59; // r0 char *v60; // r0 GameManager *v61; // r8 GJItemIcon *v62; // r7 float v63; // s24 CCMenuItemSpriteExtra *v64; // r6 void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // r8 int v66; // r0 void (__fastcall *v67)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r9 float v68; // s23 float v69; // s16 int v70; // r0 AchievementManager *v71; // r0 cocos2d::CCSprite *v72; // r7 CCMenuItemSpriteExtra *v73; // r6 cocos2d::CCMenu *v74; // r10 void (__fastcall *v75)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCLabelBMFont *v76; // r6 void (__fastcall *v77)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 float *v78; // r0 cocos2d::CCSprite *v79; // r8 void (__fastcall *v80)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7 int v81; // r11 float v82; // s17 float v83; // s14 float v84; // s15 cocos2d::CCString *v85; // r0 cocos2d::CCLabelBMFont *v86; // r6 void (__fastcall *v87)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7 cocos2d::CCSprite *v88; // r7 void (__fastcall *v89)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 int v90; // r9 float v91; // s19 float v92; // s15 cocos2d::CCSprite *v93; // r8 void (__fastcall *v94)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r9 int v95; // r7 GameStatsManager *v96; // r0 int v97; // r7 GameStatsManager *v98; // r0 cocos2d::CCMenu *v99; // r10 cocos2d::CCLayer *v100; // r9 cocos2d::CCSprite *v101; // r5 void (__fastcall *v102)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r6 int v104; // r2 int v105; // r9 float v106; // s15 float v107; // s23 float v108; // s16 cocos2d::CCSprite *v109; // r6 void (__fastcall *v110)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 void (__fastcall *v111)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 void (__fastcall *v112)(cocos2d::CCSprite *__hidden, float); // r7 float *v113; // r0 void (__fastcall *v114)(cocos2d::CCSprite *__hidden, float); // r7 int v115; // r0 const char *v116; // r1 cocos2d::CCNode *v117; // r6 void (__fastcall *v118)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 int v119; // r0 const char *v120; // r1 cocos2d::CCNode *v121; // r6 void (__fastcall *v122)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 int v123; // r0 cocos2d::ccColor3B v124; // [sp+Ch] [bp-C8h] _BOOL4 isItemUnlocked; // [sp+34h] [bp-A0h] char *StatFromKey; // [sp+38h] [bp-9Ch] int v128; // [sp+3Ch] [bp-98h] cocos2d::CCSprite *v129; // [sp+40h] [bp-94h] void (__fastcall *v130)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [sp+48h] [bp-8Ch] cocos2d::CCMenu *v131; // [sp+4Ch] [bp-88h] cocos2d::CCLayer *m_mainLayer; // [sp+50h] [bp-84h] _BYTE v133[4]; // [sp+6Ch] [bp-68h] BYREF int v134; // [sp+70h] [bp-64h] BYREF int v135; // [sp+74h] [bp-60h] int v136; // [sp+78h] [bp-5Ch] cocos2d::CCSprite *v137; // [sp+7Ch] [bp-58h] BYREF char *v138; // [sp+80h] [bp-54h] BYREF const char *v139; // [sp+84h] [bp-50h] BYREF cocos2d::CCLabelBMFont *v140; // [sp+88h] [bp-4Ch] BYREF cocos2d::CCSize v141; // [sp+8Ch] [bp-48h] BYREF cocos2d::CCPoint v142; // [sp+94h] [bp-40h] BYREF cocos2d::CCPoint v143; // [sp+9Ch] [bp-38h] BYREF cocos2d::CCPoint v144; // [sp+A4h] [bp-30h] BYREF void (*v145)(GJPathPage *, cocos2d::CCObject *); // [sp+ACh] [bp-28h] int v146; // [sp+B0h] [bp-24h] void (*v147)(GJPathPage *, cocos2d::CCObject *); // [sp+B4h] [bp-20h] int v148; // [sp+B8h] [bp-1Ch] cocos2d::CCPoint v149; // [sp+BCh] [bp-18h] BYREF cocos2d::CCPoint v150; // [sp+C4h] [bp-10h] BYREF a1->m_pathNumber = a2; a1->m_pathsLayer = a3; GJPathsLayer::darkenButtons(a3, 1); v4 = GameStatsManager::sharedState(); isItemUnlocked = GameStatsManager::isItemUnlocked(v4, GJItem, a2 + 5); FLAlertLayer::incrementForcePrio(a1); v150.x = -1.1642e-10; v128 = cocos2d::CCLayerColor::initWithColor(a1, (const cocos2d::_ccColor4B *)&v150); if ( v128 ) { a1->setTouchEnabled(a1, 1); a1->setKeypadEnabled(a1, 1); v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v141, v5); v6 = cocos2d::CCLayer::create(); v7 = a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_mainLayer = v6; v7->addChild(a1, v6); memset(v133, 50, 3); LOWORD(v134) = 7710; BYTE2(v134) = 30; LOWORD(v135) = -26986; BYTE2(v135) = -106; LOWORD(v136) = -1; BYTE2(v136) = -1; if ( isItemUnlocked ) { v8 = (CCSpriteGrayscale *)cocos2d::CCSprite::createWithSpriteFrameName("pathInnerBG_001.png"); switch ( a2 ) { case 1: v133[0] = -1; v133[1] = -126; LOWORD(v135) = 19455; v133[2] = 74; v9 = 0; BYTE1(v136) = -56; BYTE2(v135) = 0; goto LABEL_15; case 2: v133[0] = 59; BYTE2(v135) = -1; v133[1] = -123; v133[2] = -49; LOBYTE(v135) = 0; LOBYTE(v136) = 0; break; case 3: v133[0] = 73; v133[1] = -96; v133[2] = 56; v9 = 0; LOWORD(v135) = -24576; BYTE2(v135) = 0; LOBYTE(v136) = 0; goto LABEL_15; case 4: v133[0] = -113; v133[1] = 79; v133[2] = -62; *(_WORD *)((char *)&v135 + 1) = -14336; BYTE1(v136) = 50; break; case 5: v133[0] = -60; qmemcpy(&v133[1], "J=", 2); LOWORD(v135) = 175; BYTE2(v135) = 0; BYTE1(v136) = 50; v9 = 25; goto LABEL_15; case 6: v133[0] = -91; qmemcpy(&v133[1], "T3", 2); LOWORD(v135) = 25251; BYTE2(v135) = 70; LOWORD(v136) = -7939; v9 = -96; goto LABEL_15; case 7: v133[0] = -26; memset(&v133[1], 34, 2); v9 = 0; *(_WORD *)((char *)&v135 + 1) = 0; BYTE1(v136) = 0; goto LABEL_15; case 8: v133[0] = -52; v133[1] = -52; v133[2] = -52; LOWORD(v135) = -32640; BYTE2(v135) = 0x80; break; case 9: v133[0] = -1; v133[1] = -78; LOWORD(v135) = -1281; v133[2] = 79; BYTE2(v135) = 127; v9 = -64; goto LABEL_15; case 10: v133[0] = -62; v133[1] = 69; v133[2] = -103; LOWORD(v135) = 100; BYTE1(v136) = 0; v9 = 125; LABEL_15: BYTE2(v136) = v9; break; default: break; } BYTE1(v134) = (unsigned int)(float)((float)v133[1] * 0.22); BYTE2(v134) = (unsigned int)(float)((float)v133[2] * 0.22); LOBYTE(v134) = (unsigned int)(float)((float)v133[0] * 0.22); } else { sub_776584((int)&v150, "pathInnerBG_001.png"); v8 = CCSpriteGrayscale::createWithSpriteFrameName((const char **)&v150); sub_774008(&v150); CCSpriteWithHue::setEvenLuminance(v8, 2.5); } a1->m_mainLayer->addChild_0(a1->m_mainLayer, v8, -1); ((void (__fastcall *)(CCSpriteGrayscale *, int))v8->setScale)(v8, 1067869798); setPosition = v8->setPosition; cocos2d::CCPoint::CCPoint(&v150, v141.width * 0.5, v141.height * 0.5); setPosition(v8, &v150); width = v8->getContentSize(v8)->width; v12 = width * COERCE_FLOAT(((int (__fastcall *)(CCSpriteGrayscale *))v8->getScale)(v8)); height = v8->getContentSize(v8)->height; v14 = COERCE_FLOAT(((int (__fastcall *)(CCSpriteGrayscale *))v8->getScale)(v8)); v8->setColor(v8, (const cocos2d::ccColor3B *)v133); a1->m_joystickConnected = -1; v15 = cocos2d::CCSprite::createWithSpriteFrameName("backArrowPlain_01_001.png"); v146 = 0; v145 = GJPathPage::onBack; v16 = CCMenuItemSpriteExtra::create( v15, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(GJPathPage::onBack, (unsigned int)a1)); CCMenuItemSpriteExtra::setSizeMult(v16, 1.6); v17 = (cocos2d::CCMenu *)cocos2d::CCMenu::create((cocos2d::CCMenu *)v16, nullptr); v18 = v12 * 0.5; v19 = v141.height; v20 = (float)(height * v14) * 0.5; v21 = (float)(v141.width * 0.5) - v18; v22 = v17->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_buttonMenu = v17; v23 = v17; v24 = v22->setPosition; cocos2d::CCPoint::CCPoint(&v150, v21 + 12.0, (float)(v20 + (float)(v19 * 0.5)) - 12.0); v24(v23, &v150); a1->m_mainLayer->addChild_0(a1->m_mainLayer, a1->m_buttonMenu, 10); sub_776584((int)&v149, "Paths of Power"); sub_776584( (int)&v150, "When you activate a path, Stars and Moons you collect will level up your Path. You" " can unlock multiple paths, but only one can be active at a time."); v25 = InfoAlertButton::create((int)&v149, (int)&v150, 1061997773); sub_774008(&v150); sub_774008(&v149); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v25); m_buttonMenu = a1->m_buttonMenu; v27 = v25->setPosition; cocos2d::CCPoint::CCPoint( &v149, (float)(v18 + (float)(v141.width * 0.5)) - 14.0, (float)(v20 + (float)(v141.height * 0.5)) - 14.0); cocos2d::CCNode::convertToNodeSpace(&v150, m_buttonMenu, &v149); v27(v25, &v150); v28 = GJPathSprite::create(a1->m_pathNumber); GJPathSprite::updateState(v28); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v28, 1); ((void (__fastcall *)(GJPathSprite *, int))v28->setScale)(v28, 1065353216); v29 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"pathLabel_%02d_001.png", (const char *)a2); CString = (char *)cocos2d::CCString::getCString(v29); sub_776584((int)&v137, CString); if ( isItemUnlocked ) { v31 = (CCSpriteGrayscale *)cocos2d::CCSprite::createWithSpriteFrameName((const char *)v137); } else { sub_776584((int)&v139, (char *)v137); v31 = CCSpriteGrayscale::createWithSpriteFrameName(&v139); sub_774008(&v139); if ( (unsigned int)(a2 - 2) > 8 ) v32 = 3.0; else v32 = *(float *)&word_9ADC48[2 * a2 + 10]; CCSpriteWithHue::setEvenLuminance(v31, v32); setColor = v31->setColor; memset(&v150, 100, 3); setColor(v31, (const cocos2d::ccColor3B *)&v150); } a1->m_mainLayer->addChild_0(a1->m_mainLayer, v31, 1); cocos2d::CCPoint::CCPoint(&v142, v141.width * 0.5, (float)(v20 + (float)(v141.height * 0.5)) - 8.0); v34 = v28->getContentSize(v28)->width; v35 = (float *)v31->getContentSize(v31); v36 = v28->setPosition; v37 = (float)(v34 + *v35) + 10.0; cocos2d::CCPoint::CCPoint(&v149, (float)(v37 * 0.5) - (float)(v34 * 0.5), 0.0); cocos2d::CCPoint::operator+(&v150, &v142, &v149); v36(v28, &v150); v38 = v31->setPosition; v39 = (float *)v31->getContentSize(v31); cocos2d::CCPoint::CCPoint(&v149, (float)(*v39 * 0.5) - (float)(v37 * 0.5), -2.0); cocos2d::CCPoint::operator+(&v150, &v142, &v149); v38(v31, &v150); v40 = (float)(v141.width * 0.5) - 170.0; v41 = (float)(v141.height * 0.5) + 0.0; v129 = cocos2d::CCSprite::createWithSpriteFrameName("playerSquare_001.png"); cocos2d::CCPoint::CCPoint( &v143, (float)(v141.width * 0.5) - 170.0, (float)((float)((float)(v141.height * 0.5) - v20) + 30.0) + 10.0); v42 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare20_001.png"); setAnchorPoint = v42->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v150, 0.0, 0.5); setAnchorPoint(v42, &v150); v42->setPosition(v42, &v143); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v42, 0); setScaleX = v42->setScaleX; v45 = (float *)v42->getContentSize(v42); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD))setScaleX)(v42, 340.0 / *v45); setScaleY = v42->setScaleY; v47 = (int)v42->getContentSize(v42); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD))setScaleY)(v42, 5.0 / *(float *)(v47 + 4)); v42->setColor(v42, (const cocos2d::ccColor3B *)&v134); v48 = GameStatsManager::sharedState(); if ( GameStatsManager::getStatFromKey(v48, (StatKey)(a2 + 29)) >= 1000 ) { StatFromKey = (_BYTE *)(&stru_3DC + 12); } else { v49 = GameStatsManager::sharedState(); StatFromKey = (char *)GameStatsManager::getStatFromKey(v49, (StatKey)(a2 + 29)); } v50 = (float)(int)StatFromKey / 1000.0; if ( v50 >= 1.0 ) { v50 = 1.0; } else if ( v50 <= 0.0 ) { LABEL_28: v51 = 0; for ( i = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"geometry.ach.path%02d.%02d", (const char *)a2, 0); ; i = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"geometry.ach.path%02d.%02d", (const char *)a2, v51) ) { v60 = (char *)cocos2d::CCString::getCString(i); sub_776584((int)&v138, v60); v139 = nullptr; v140 = nullptr; v61 = GameManager::sharedState(); sub_775C20(&v144); GameManager::getUnlockForAchievement((int)v61, (const char **)&v144, (int *)&v139, (int *)&v140); sub_774008(&v144); if ( !v140 ) { v140 = (cocos2d::CCLabelBMFont *)(&dword_0 + 1); v139 = (_BYTE *)(&dword_0 + 1); } *(_WORD *)&v124.r = -1; v124.b = -1; v62 = GJItemIcon::create( (UnlockType)v140, (int)v139, (cocos2d::ccColor3B)v135, (cocos2d::ccColor3B)v136, 0, 1, 1, v124); if ( v62 ) { v63 = GJItemIcon::scaleForType((UnlockType)1); v62->setScale(v62, COERCE_FLOAT(LODWORD(v63))); v148 = 0; v147 = GJPathPage::onIconInfo; v64 = CCMenuItemSpriteExtra::create( v62, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(GJPathPage::onIconInfo, (unsigned int)a1)); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v64); setContentSize = v64->setContentSize; v66 = (int)v129->getContentSize(v129); setContentSize(v64, (const cocos2d::CCSize *)v66); v67 = v62->setPosition; v68 = v64->getContentSize(v64)->width; v69 = 0.5; v70 = (int)v64->getContentSize(v64); cocos2d::CCPoint::CCPoint(&v150, v68 * 0.5, *(float *)(v70 + 4) * 0.5); v67(v62, &v150); v64->setTag(v64, v51); if ( !v51 && isItemUnlocked || (v71 = AchievementManager::sharedState(), AchievementManager::isAchievementEarned(v71, v138)) ) { v105 = 1; } else { GJItemIcon::changeToLockedState(v62, 1.0 / v63); GJItemIcon::darkenStoreItem((int)v62, v134, v104); v105 = 0; } v106 = (float)v51; if ( (v51 & 1) != 0 ) v69 = 0.0; v130 = v64->setPosition; v131 = a1->m_buttonMenu; v107 = v40 + (float)(v106 * 34.0); m_mainLayer = a1->m_mainLayer; if ( (v51 & 1) != 0 ) v108 = v41 + v69; else v108 = v41; cocos2d::CCPoint::CCPoint(&v144, v40 + (float)(v106 * 34.0), v108 + 10.0); cocos2d::CCNode::convertToWorldSpace(&v149, m_mainLayer, &v144); cocos2d::CCNode::convertToNodeSpace(&v150, v131, &v149); v130(v64, &v150); v109 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare20_001.png"); v110 = v109->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v150, 0.5, 1.0); v110(v109, &v150); v111 = v109->setPosition; cocos2d::CCPoint::CCPoint(&v150, v107, (float)(v108 - 17.0) + 10.0); v111(v109, &v150); v112 = v109->setScaleX; v113 = (float *)v109->getContentSize(v109); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD))v112)(v109, 1.5 / *v113); v114 = v109->setScaleY; v115 = (int)v109->getContentSize(v109); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD))v114)(v109, 16.0 / *(float *)(v115 + 4)); v109->setColor(v109, &stru_9ADC88); v109->setOpacity(v109, 25); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v109, 0); v117 = (cocos2d::CCNode *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"smallDot.png", v116); v118 = v117->setPosition; v119 = (int)v42->getPosition(v42); cocos2d::CCPoint::CCPoint(&v150, v107, *(float *)(v119 + 4)); v118(v117, &v150); ((void (__fastcall *)(cocos2d::CCNode *, int *))v117->__vftable[1].getTag)(v117, &v134); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v117, 0); if ( v105 ) { v121 = (cocos2d::CCNode *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"smallDot.png", v120); v122 = v121->setPosition; v123 = (int)v42->getPosition(v42); cocos2d::CCPoint::CCPoint(&v150, v107, *(float *)(v123 + 4)); v122(v121, &v150); ((void (__fastcall *)(cocos2d::CCNode *, _BYTE *))v121->__vftable[1].getTag)(v121, v133); ((void (__fastcall *)(cocos2d::CCNode *, int))v121->setScale)(v121, 1060320051); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v121, 1); } } ++v51; sub_774008(&v138); if ( v51 == 11 ) break; } if ( isItemUnlocked ) { v85 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i/%i", StatFromKey, 1000); cocos2d::CCString::getCString(v85); v86 = cocos2d::CCLabelBMFont::create(); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v86->setScale)(v86, 1058642330); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v86, 1); v87 = v86->setPosition; cocos2d::CCPoint::CCPoint( &v150, (float)(v141.width * 0.5) - 12.0, (float)((float)((float)(v141.height * 0.5) - v20) + 12.0) + 7.0); v87(v86, &v150); v88 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_starsIcon_001.png"); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v88, 1); v89 = v88->setPosition; v90 = (int)v86->getPosition(v86); v91 = v86->getContentSize(v86)->width; v92 = (float)(v91 * v86->getScale(v86)) * 0.5 + 7.0; cocos2d::CCPoint::CCPoint(&v149, v92, -1.5); cocos2d::CCPoint::operator+(&v150, v90, &v149); v89(v88, &v150); ((void (__fastcall *)(cocos2d::CCSprite *, int))v88->setScale)(v88, 1056964608); v93 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_moonsIcon_001.png"); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v93, 1); v94 = v93->setPosition; v95 = (int)v88->getPosition(v88); cocos2d::CCPoint::CCPoint(&v149, 12.0, 0.0); cocos2d::CCPoint::operator+(&v150, v95, &v149); v94(v93, &v150); ((void (__fastcall *)(cocos2d::CCSprite *, int))v93->setScale)(v93, 1057803469); if ( v50 < 1.0 ) { v96 = GameStatsManager::sharedState(); GameStatsManager::trySelectActivePath(v96); v97 = a1->m_pathNumber + 29; sub_776584((int)&v140, "Active"); LODWORD(v150.x) = GJPathPage::onActivatePath; v150.y = 0.0; v98 = GameStatsManager::sharedState(); v99 = a1->m_buttonMenu; LOBYTE(v97) = v98->m_activePath == v97; cocos2d::CCPoint::CCPoint( &v144, (float)((float)(v141.width * 0.5) - v18) + 17.0, (float)((float)(v141.height * 0.5) - v20) - 8.0); v100 = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v149, 6.0, 0.5); GameToolbox::createToggleButton( (int)&v140, LODWORD(v150.x), LODWORD(v150.y), v97, v99, &v144, a1, v100, 0.6, 0.5, 100.0, (int)&v149, (int)"goldFont.fnt", 0, 0, nullptr); sub_774008(&v140); goto LABEL_48; } } else { v72 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_lock_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, int))v72->setScale)(v72, 1067030938); v149.y = 0.0; LODWORD(v149.x) = GJPathPage::onUnlock; v73 = CCMenuItemSpriteExtra::create( v72, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(GJPathPage::onUnlock, (unsigned int)a1)); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v73); v74 = a1->m_buttonMenu; v75 = v73->setPosition; cocos2d::CCPoint::CCPoint(&v144, v141.width * 0.5, (float)((float)(v141.height * 0.5) - v20) + 15.0); cocos2d::CCNode::convertToNodeSpace(&v150, v74, &v144); v75(v73, &v150); GameToolbox::pointsToString((GameToolbox *)&v140, 0x61A8u); v76 = cocos2d::CCLabelBMFont::create(); v72->addChild(v72, v76); v77 = v76->setPosition; v78 = (float *)v72->getContentSize(v72); cocos2d::CCPoint::CCPoint(&v150, (float)(*v78 * 0.5) - 4.0, -6.5); v77(v76, &v150); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v76->setScale)(v76, 1051931443); v79 = cocos2d::CCSprite::createWithSpriteFrameName("currencyOrbIcon_001.png"); v72->addChild(v72, v79); v80 = v79->setPosition; v81 = (int)v76->getPosition(v76); v82 = v76->getContentSize(v76)->width; v83 = (float)((float)(v82 * 0.5) * COERCE_FLOAT(((int (__fastcall *)(cocos2d::CCLabelBMFont *))v76->getScale)(v76))) + 6.0; v84 = 1.0; if ( a2 != 4 ) v84 = 0.0; cocos2d::CCPoint::CCPoint(&v144, v83 + v84, -0.5); cocos2d::CCPoint::operator+(&v150, v81, &v144); v80(v79, &v150); v79->setScale(v79, 0.5); sub_774008(&v140); } if ( v50 >= 1.0 ) { LABEL_47: sub_774008(&v137); return v128; } LABEL_48: v101 = cocos2d::CCSprite::createWithSpriteFrameName("chestIcon_001.png"); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v101, 3); v101->setColor(v101, (const cocos2d::ccColor3B *)&v134); v102 = v101->setPosition; cocos2d::CCPoint::CCPoint(&v144, (float)(v18 + (float)(v141.width * 0.5)) - 28.5, v143.y); v102(v101, &v144); v101->setOpacity(v101, 200); goto LABEL_47; } v53 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare20_001.png"); v54 = v53->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v150, 0.0, 0.5); v54(v53, &v150); v55 = v53->setPosition; cocos2d::CCPoint::CCPoint(&v149, 2.0, 0.0); cocos2d::CCPoint::operator+(&v150, &v143, &v149); v55(v53, &v150); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v53, 1); v56 = v53->setScaleX; v57 = (float *)v53->getContentSize(v53); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD))v56)(v53, (float)(v50 * 336.0) / *v57); v58 = v53->setScaleY; v59 = (int)v53->getContentSize(v53); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD))v58)(v53, 2.0 / *(float *)(v59 + 4)); v53->setColor(v53, (const cocos2d::ccColor3B *)v133); goto LABEL_28; } return v128; }
GD Web Decomp Icon

GD Web Decomp

Raw Source