// // SecretRewardsLayer::init from 0xb9efb0 to 0xba0c0c (7260 bytes) // // 2 xrefs: // > SecretRewardsLayer::create @ 0xba0d1c // > @ 0x9de28 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:02:46 +0000 // __int64 __fastcall SecretRewardsLayer::init(SecretRewardsLayer *this, unsigned __int8 a2) { cocos2d::CCTextureCache *v4; // x0 cocos2d::CCSpriteFrameCache *v5; // x0 cocos2d::CCSpriteFrameCache *v6; // x0 cocos2d::CCDirector *v7; // x0 cocos2d::CCDirector *v8; // x0 GameManager *WinSize; // x0 GameManager *v10; // x0 GameManager *UGV; // x0 GameManager *v12; // x0 unsigned __int64 v13; // x0 __int64 v14; // x19 cocos2d::CCLayer *v15; // x0 __int64 v16; // x0 const char *v17; // x1 __int64 v18; // x19 void (__fastcall *v19)(__int64, __int64 *); // x21 __int64 v20; // x19 void (__fastcall *v21)(__int64, __int64 *); // x21 __int64 v22; // x0 void (__fastcall *v23)(__int64, __int64 *); // x2 const char *v24; // x1 __int64 v25; // x19 void (__fastcall *v26)(__int64, __int64 *); // x22 void (__fastcall *v27)(__int64, __int64 *); // x22 void (__fastcall *v28)(__int64, __int64 *); // x2 const char *v29; // x1 cocos2d::CCSprite *v30; // x19 void (__fastcall *v31)(cocos2d::CCSprite *, __int64 *); // x21 void (__fastcall *v32)(cocos2d::CCSprite *, __int64 *); // x21 void (__fastcall *v33)(cocos2d::CCSprite *, __int64 *); // x2 const char *v34; // x1 __int64 v35; // x0 cocos2d::CCMenu *v36; // x21 cocos2d::CCDirector **v37; // x19 __int64 (__fastcall *v38)(cocos2d::CCDirector **, __int64 *); // x22 cocos2d::CCDirector *v39; // x0 cocos2d::CCDirector *ScreenLeft; // x0 float v41; // s0 float v42; // s8 cocos2d::CCDirector *v43; // x0 float v44; // s0 PlatformToolbox *v45; // x0 unsigned __int64 isControllerConnected; // x0 cocos2d::CCMenuItem *v47; // x2 GameStatsManager *v48; // x0 unsigned int Stat; // w0 int v50; // w20 cocos2d::CCString *v51; // x0 cocos2d::CCLabelBMFont *CString; // x0 const char *v53; // x2 __int64 v54; // x22 float v55; // s1 void (__fastcall *v56)(__int64, __int64 *); // x23 __int64 v57; // x22 void (__fastcall *v58)(__int64, __int64 *); // x23 const char *v59; // x1 __int64 v60; // x0 __int64 v61; // x22 __int64 (__fastcall *v62)(__int64, __int64 *); // x23 __int64 v63; // x24 GameStatsManager *v64; // x0 GameStatsManager *v65; // x0 unsigned int v66; // w0 cocos2d::CCString *v67; // x0 cocos2d::CCLabelBMFont *v68; // x0 const char *v69; // x2 __int64 v70; // x0 __int64 v71; // x19 void (__fastcall *v72)(__int64, __int64); // x21 __int64 v73; // x0 __int64 v74; // x19 void (__fastcall *v75)(__int64, __int64 *); // x21 const char *v76; // x1 __int64 v77; // x0 __int64 v78; // x19 void (__fastcall *v79)(__int64, __int64 *); // x21 __int64 v80; // x22 const char *v81; // x1 __int64 v82; // x19 void (__fastcall *v83)(__int64, __int64 *); // x21 const char *v84; // x1 float *v85; // x19 void (__fastcall *v86)(float *, __int64 *); // x21 void (__fastcall *v87)(float *, __int64 *); // x21 cocos2d::CCArray *v88; // x0 cocos2d::CCObject *v89; // x0 float v90; // s8 unsigned int v91; // w22 cocos2d::CCLayer *v92; // x0 __int64 v93; // x21 cocos2d::CCNode *v94; // x23 int v95; // w22 cocos2d::CCString *v96; // x0 size_t v97; // x0 cocos2d::CCString *v98; // x0 size_t v99; // x0 unsigned int v100; // w22 cocos2d::CCString *v101; // x0 char *v102; // x0 __int64 *v103; // x0 __int64 v104; // x19 float v105; // s9 __int64 v106; // x22 CCMenuItemSpriteExtra *v107; // x19 char *v108; // x1 size_t v109; // x2 void (__fastcall *v110)(CCMenuItemSpriteExtra *, __int64 *); // x24 void (__fastcall *v111)(__int64, __int64 *); // x24 float v112; // s8 __int64 v113; // x0 __int64 v114; // x2 void (__fastcall *v115)(CCMenuItemSpriteExtra *, __int64 *); // x22 const char *v116; // x1 __int64 v117; // x22 void (__fastcall *v118)(__int64, __int64 *); // x19 cocos2d::CCSprite *v119; // x0 __int64 v120; // x19 __int64 v121; // x0 __int64 (__fastcall *v122)(__int64); // x1 void (__fastcall *v123)(__int64, __int64 *); // x22 __int64 v124; // x23 GameStatsManager *v125; // x0 cocos2d::CCLayer *v126; // x0 cocos2d::CCObject *v127; // x19 cocos2d::CCMenu *v128; // x0 __int64 v129; // x21 __int64 v130; // x22 CCMenuItemSpriteExtra *v131; // x20 __int64 *v132; // x0 void (__fastcall *v133)(CCMenuItemSpriteExtra *, __int64 *); // x23 float v134; // s9 float v135; // s0 void (__fastcall *v136)(__int64, __int64 *); // x23 __int64 v137; // x0 __int64 v138; // x2 cocos2d::CCNode *v139; // x0 __int64 (__fastcall *v140)(CCMenuItemSpriteExtra *, __int64 *); // x21 GameStatsManager *v141; // x0 GameStatsManager *v142; // x0 const char *v143; // x1 unsigned int v144; // w23 __int64 v145; // x20 void (__fastcall *v146)(__int64, __int64 *); // x21 void (__fastcall *v147)(__int64, __int64 *); // x2 const char *v148; // x1 __int64 v149; // x21 __int64 v150; // x0 __int64 (__fastcall *v151)(__int64); // x1 void (__fastcall *v152)(__int64, __int64 *); // x20 __int64 v153; // x22 const char *v154; // x2 __int64 v155; // x0 __int64 v156; // x20 void (__fastcall *v157)(__int64, __int64 *); // x21 cocos2d::CCLayer *updated; // x0 cocos2d::CCObject *v159; // x19 cocos2d::CCMenu *v160; // x0 cocos2d::CCSprite *v161; // x0 __int64 v162; // x21 _DWORD *v163; // x19 void (__fastcall *v164)(_DWORD *, __int64 *); // x20 int i; // w19 cocos2d::CCSprite *v166; // x0 __int64 v167; // x20 void (__fastcall *v168)(__int64, __int64 *); // x22 __int64 v169; // x0 cocos2d::CCDirector *v170; // x0 cocos2d::CCArray **v171; // x19 float v172; // s9 cocos2d::CCDirector *v173; // x0 float v174; // s0 cocos2d::CCDirector *v175; // x0 __int64 v176; // x19 cocos2d::CCDirector *v177; // x0 cocos2d::CCDirector *ScreenRight; // x0 float v179; // s0 cocos2d::CCDirector *v180; // x0 float v181; // s0 cocos2d::CCNode *v182; // x19 float v183; // s8 const char *v184; // x1 __int64 v185; // x0 __int64 v186; // x0 cocos2d::CCDirector **v187; // x23 void (__fastcall *v188)(cocos2d::CCDirector **, __int64 *); // x24 cocos2d::CCDirector *v189; // x0 float v190; // s0 const char *v191; // x1 cocos2d::CCSprite *v192; // x22 __int64 v193; // x0 cocos2d::CCDirector **v194; // x20 void (__fastcall *v195)(cocos2d::CCDirector **, __int64 *); // x21 cocos2d::CCDirector *v196; // x0 float v197; // s0 int TotalPages; // w19 int v199; // w0 __int64 v200; // x0 GameStatsManager *v201; // x0 unsigned int v202; // w22 __int64 v203; // x0 unsigned int v204; // w23 cocos2d::CCString *v205; // x0 cocos2d::CCLabelBMFont *v206; // x0 cocos2d::CCObject *v207; // x22 __int64 v208; // x0 __int64 (__fastcall *v209)(__int64); // x1 void (__fastcall *v210)(cocos2d::CCObject *, __int64 *); // x19 __int64 v211; // x21 void (__fastcall *v212)(cocos2d::CCObject *, __int64 *); // x2 cocos2d::CCMenu *v213; // x19 cocos2d::CCObject *v214; // x21 cocos2d::CCString *v215; // x0 cocos2d::CCSprite *v216; // x0 const char *v217; // x1 __int64 v218; // x19 void (__fastcall *v219)(__int64, __int64 *); // x24 __int64 *v220; // x19 __int64 v221; // x22 bool isSpecialChestUnlocked; // w0 __int64 v223; // x22 const char *v224; // x2 __int64 v225; // x0 __int64 v226; // x22 void (__fastcall *v227)(__int64, __int64 *); // x19 const char *v228; // x1 __int64 v229; // x22 void (__fastcall *v230)(__int64, __int64 *); // x19 int v231; // [xsp+A8h] [xbp+A8h] unsigned __int8 v232; // [xsp+AFh] [xbp+AFh] cocos2d::CCDictionary *v233; // [xsp+B0h] [xbp+B0h] cocos2d::CCPoint *v234; // [xsp+B8h] [xbp+B8h] _BOOL4 v235; // [xsp+B8h] [xbp+B8h] char *v236; // [xsp+C8h] [xbp+C8h] cocos2d::CCArray *v237; // [xsp+D0h] [xbp+D0h] int v238; // [xsp+D8h] [xbp+D8h] int v239; // [xsp+DCh] [xbp+DCh] unsigned int v240; // [xsp+E8h] [xbp+E8h] cocos2d::CCNode *v241; // [xsp+E8h] [xbp+E8h] float v242; // [xsp+F0h] [xbp+F0h] float v243; // [xsp+F0h] [xbp+F0h] __int64 v244; // [xsp+100h] [xbp+100h] BYREF _BYTE v245[8]; // [xsp+108h] [xbp+108h] BYREF _BYTE v246[8]; // [xsp+110h] [xbp+110h] BYREF float v247; // [xsp+118h] [xbp+118h] BYREF _BYTE v248[8]; // [xsp+120h] [xbp+120h] BYREF __int64 v249[2]; // [xsp+128h] [xbp+128h] BYREF __int64 v250[2]; // [xsp+138h] [xbp+138h] BYREF void *v251; // [xsp+148h] [xbp+148h] __int64 v252[2]; // [xsp+150h] [xbp+150h] BYREF void *v253; // [xsp+160h] [xbp+160h] __int64 v254[3]; // [xsp+168h] [xbp+168h] BYREF __int64 v255[3]; // [xsp+180h] [xbp+180h] BYREF __int64 v256; // [xsp+198h] [xbp+198h] BYREF __int64 v257; // [xsp+1A0h] [xbp+1A0h] void *v258; // [xsp+1A8h] [xbp+1A8h] cocos2d::CCLayer *v259; // [xsp+1B0h] [xbp+1B0h] BYREF size_t v260; // [xsp+1B8h] [xbp+1B8h] void *v261; // [xsp+1C0h] [xbp+1C0h] v231 = a2; v232 = cocos2d::CCLayer::init(this); if ( !v232 ) return v232; *((_BYTE *)this + 584) = 1; v4 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache((cocos2d::CCTextureCache *)&v244); v5 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCTextureCache::addImage(v4, "TreasureRoomSheet.png", 0); v6 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v5); cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v6, "TreasureRoomSheet.plist"); (*(void (__fastcall **)(SecretRewardsLayer *, __int64))(*(_QWORD *)this + 1072LL))(this, 1); v7 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(SecretRewardsLayer *, __int64))(*(_QWORD *)this + 1088LL))( this, 1); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7); WinSize = (GameManager *)cocos2d::CCDirector::getWinSize(&v244, v8); v10 = (GameManager *)GameManager::sharedState(WinSize); UGV = (GameManager *)(unsigned __int8)GameManager::getUGV(v10, "10"); if ( (_BYTE)UGV ) { UGV = (GameManager *)byte_4; *((_DWORD *)this + 142) = (unsigned int)byte_4; } v12 = (GameManager *)GameManager::sharedState(UGV); v13 = (unsigned __int8)GameManager::getUGV(v12, "21"); if ( (_BYTE)v13 ) { v13 = 3; *((_DWORD *)this + 143) = 3; } v14 = GameManager::sharedState((GameManager *)v13); v259 = nullptr; v260 = 0; v261 = nullptr; std::string::__init((__int64 *)&v259, "secretLoop.mp3", 0xEu); GameManager::fadeInMusic(v14, (unsigned __int8 *)&v259); v15 = (cocos2d::CCLayer *)(unsigned __int8)v259; if ( ((unsigned __int8)v259 & 1) != 0 ) operator delete(v261); v16 = cocos2d::CCLayer::create(v15); *((_QWORD *)this + 53) = v16; (*(void (__fastcall **)(SecretRewardsLayer *, __int64, _QWORD))(*(_QWORD *)this + 464LL))(this, v16, 0); v18 = cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_gradientBG.png", v17); *((_QWORD *)this + 70) = v18; v19 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v18 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, 0.0, 0.0); v19(v18, v249); (*(void (__fastcall **)(SecretRewardsLayer *, _QWORD, __int64))(*(_QWORD *)this + 464LL))( this, *((_QWORD *)this + 70), 4294967293LL); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 70) + 128LL))( *((_QWORD *)this + 70), (float)(*(float *)&v244 + 10.0) / *(float *)(*((_QWORD *)this + 70) + 432LL)); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 70) + 144LL))( *((_QWORD *)this + 70), (float)(*((float *)&v244 + 1) + 10.0) / *(float *)(*((_QWORD *)this + 70) + 436LL)); v20 = *((_QWORD *)this + 70); v21 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v20 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, -5.0, -5.0); v21(v20, v249); v22 = *((_QWORD *)this + 70); v23 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v22 + 960LL); LOWORD(v249[0]) = 70; BYTE2(v249[0]) = 75; v23(v22, v249); v25 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"treasureRoomSpiderweb_001.png", v24); v26 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v25 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, 1.0, 1.0); v26(v25, v249); v27 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v25 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, *(float *)&v244 + 5.0, *((float *)&v244 + 1) + 5.0); v27(v25, v249); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v25 + 912LL))(v25, 63); v28 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v25 + 960LL); LOWORD(v249[0]) = 0; BYTE2(v249[0]) = 0; v28(v25, v249); (*(void (__fastcall **)(SecretRewardsLayer *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v25, 0xFFFFFFFFLL); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v25 + 160LL))(v25, 1.1); v30 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"treasureRoomSpiderweb_001.png", v29); v31 = *(void (__fastcall **)(cocos2d::CCSprite *, __int64 *))(*(_QWORD *)v30 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, 0.0, 1.0); v31(v30, v249); v32 = *(void (__fastcall **)(cocos2d::CCSprite *, __int64 *))(*(_QWORD *)v30 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, -5.0, *((float *)&v244 + 1) + 5.0); v32(v30, v249); (*(void (__fastcall **)(cocos2d::CCSprite *, __int64))(*(_QWORD *)v30 + 912LL))(v30, 63); cocos2d::CCSprite::setFlipX(v30, 1); v33 = *(void (__fastcall **)(cocos2d::CCSprite *, __int64 *))(*(_QWORD *)v30 + 960LL); LOWORD(v249[0]) = 0; BYTE2(v249[0]) = 0; v33(v30, v249); (*(void (__fastcall **)(SecretRewardsLayer *, cocos2d::CCSprite *, __int64))(*(_QWORD *)this + 464LL))( this, v30, 0xFFFFFFFFLL); (*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v30 + 160LL))(v30, 1.1); v35 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_03_001.png", v34); *((_QWORD *)this + 66) = v35; v36 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v35, 0, (__int64)this, (__int64)SecretRewardsLayer::onBack, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v36, 1.6); v37 = (cocos2d::CCDirector **)cocos2d::CCMenu::create(v36, nullptr); (*(void (__fastcall **)(SecretRewardsLayer *, cocos2d::CCDirector **, __int64))(*(_QWORD *)this + 464LL))( this, v37, 1); v38 = *((__int64 (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v37 + 23); v39 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v37); ScreenLeft = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenLeft(v39); v42 = v41; v43 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ScreenLeft); cocos2d::CCDirector::getScreenTop(v43); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, v42 + 24.0, v44 - 23.0); v45 = (PlatformToolbox *)v38(v37, v249); isControllerConnected = (unsigned __int8)PlatformToolbox::isControllerConnected(v45); if ( (_BYTE)isControllerConnected ) isControllerConnected = GameToolbox::addBackButton(this, v36, v47); v48 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)isControllerConnected); Stat = GameStatsManager::getStat(v48, "21"); v239 = 3; v50 = 0; v51 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)Stat); CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v51); v54 = cocos2d::CCLabelBMFont::create(CString, "bigFont.fnt", v53); v55 = *(float *)&v244; *((_QWORD *)this + 59) = v54; v56 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v54 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, v55 - 55.0, *((float *)&v244 + 1) - 18.0); v56(v54, v249); v57 = *((_QWORD *)this + 59); v58 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v57 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, 1.0, 0.5); v58(v57, v249); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 59) + 160LL))(*((_QWORD *)this + 59), 0.6); (*(void (__fastcall **)(SecretRewardsLayer *, _QWORD))(*(_QWORD *)this + 456LL))(this, *((_QWORD *)this + 59)); v60 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_bigKey_001.png", v59); *((_QWORD *)this + 61) = v60; (*(void (__fastcall **)(SecretRewardsLayer *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v60, 3); v61 = *((_QWORD *)this + 61); v62 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v61 + 184LL); v63 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 59) + 192LL))(*((_QWORD *)this + 59)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 25.0, -0.5); cocos2d::CCPoint::operator+(v249, v63); v64 = (GameStatsManager *)v62(v61, v249); v65 = (GameStatsManager *)GameStatsManager::sharedState(v64); v66 = GameStatsManager::getStat(v65, "43"); v67 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v66); v68 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v67); v70 = cocos2d::CCLabelBMFont::create(v68, "bigFont.fnt", v69); *((_QWORD *)this + 60) = v70; v71 = v70; v72 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v70 + 184LL); v73 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 59) + 192LL))(*((_QWORD *)this + 59)); v72(v71, v73); v74 = *((_QWORD *)this + 60); v75 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v74 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, 1.0, 0.5); v75(v74, v249); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 60) + 160LL))(*((_QWORD *)this + 60), 0.6); (*(void (__fastcall **)(SecretRewardsLayer *, _QWORD))(*(_QWORD *)this + 456LL))(this, *((_QWORD *)this + 60)); v77 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_bigGoldKey_001.png", v76); *((_QWORD *)this + 62) = v77; (*(void (__fastcall **)(SecretRewardsLayer *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v77, 3); v78 = *((_QWORD *)this + 62); v79 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v78 + 184LL); v80 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 60) + 192LL))(*((_QWORD *)this + 60)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 25.0, -0.5); cocos2d::CCPoint::operator+(v249, v80); v79(v78, v249); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 60) + 344LL))(*((_QWORD *)this + 60), 0); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 62) + 344LL))(*((_QWORD *)this + 62), 0); v82 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"treasureRoomLabel_001.png", v81); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 53) + 464LL))(*((_QWORD *)this + 53), v82, 2); v83 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v82 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, *(float *)&v244 * 0.5, *((float *)&v244 + 1) - 42.0); v83(v82, v249); v85 = (float *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"treasureRoomGround_001.png", v84); (*(void (__fastcall **)(SecretRewardsLayer *, float *, __int64))(*(_QWORD *)this + 464LL))(this, v85, 2); v86 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v85 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, 0.0, 1.0); v86(v85, v249); v87 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v85 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, -10.0, 35.0); v87(v85, v249); (*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v85 + 1080LL))(v85, 0x100000302LL); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v85 + 160LL))(v85, (float)(*(float *)&v244 + 20.0) / v85[108]); v88 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(float *, __int64))(*(_QWORD *)v85 + 912LL))(v85, 4294967190LL); v237 = (cocos2d::CCArray *)cocos2d::CCArray::create(v88); v233 = (cocos2d::CCDictionary *)cocos2d::CCArray::create(v237); v89 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v233); *((_QWORD *)this + 58) = v89; cocos2d::CCObject::retain(v89); do { v90 = floorf((float)v50 / 3.0); v91 = (int)v90; v92 = (cocos2d::CCLayer *)cocos2d::CCArray::count(v237); if ( (unsigned int)v92 < (int)v90 + 1 ) { v213 = (cocos2d::CCMenu *)cocos2d::CCLayer::create(v92); v214 = (cocos2d::CCObject *)cocos2d::CCMenu::create(v213); (*(void (__fastcall **)(cocos2d::CCMenu *, cocos2d::CCObject *))(*(_QWORD *)v213 + 456LL))(v213, v214); cocos2d::CCArray::addObject(v237, v213); cocos2d::CCArray::addObject(v233, v214); } v93 = cocos2d::CCArray::objectAtIndex(v237, v91); v94 = (cocos2d::CCNode *)cocos2d::CCArray::objectAtIndex(v233, v91); v95 = v50 % 3; if ( v50 % 3 ) { cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v246, (float)((float)(v95 - 1) * 100.0) + (float)(*(float *)&v244 * 0.5), (float)(*((float *)&v244 + 1) * 0.5) + 10.0); if ( v50 >= 6 ) v199 = 2; else v199 = v239; v240 = v199; } else { if ( v50 <= 5 ) { v240 = v239; v215 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"tier%ilabel_001.png", (const char *)(unsigned int)(int)(float)(v90 + 1.0)); v216 = (cocos2d::CCSprite *)cocos2d::CCString::getCString(v215); v218 = cocos2d::CCSprite::createWithSpriteFrameName(v216, v217); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v93 + 464LL))(v93, v218, 2); v219 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v218 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v249, *(float *)&v244 * 0.5, (float)(*((float *)&v244 + 1) * 0.5) + 70.0); v219(v218, v249); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v218 + 160LL))(v218, 0.8); } else { v240 = 2; } cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v246, (float)(*(float *)&v244 * 0.5) + -100.0, (float)(*((float *)&v244 + 1) * 0.5) + 10.0); } v96 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"chest_0%i_price_001.png", (const char *)v240); v236 = (char *)cocos2d::CCString::getCString(v96); v250[0] = 0; v250[1] = 0; v251 = nullptr; v97 = strlen(v236); std::string::__init(v250, v236, v97); v98 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"chest_0%i_02_001.png", (const char *)v240); v234 = (cocos2d::CCPoint *)cocos2d::CCString::getCString(v98); v252[0] = 0; v252[1] = 0; v253 = nullptr; v99 = strlen((const char *)v234); std::string::__init(v252, v234, v99); if ( v50 <= 2 ) { qmemcpy(v245, "n8", 2); v235 = 0; v105 = 0.8; v245[2] = -126; } else { memset(v245, 100, 3); if ( v50 > 5 ) { v100 = v95 + 1; v245[1] = 0; v245[2] = -76; v101 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"chestSpecial_0%i_price_001.png", (const char *)v100); v102 = (char *)cocos2d::CCString::getCString(v101); v103 = std::string::assign(v250, v102); if ( v100 == 2 ) { v220 = v255; v223 = GameStatsManager::sharedState((GameStatsManager *)v103); memset(v255, 0, sizeof(v255)); std::string::__init(v255, "0005", 4u); isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v223, (char *)v255); } else { if ( v100 == 3 ) { v104 = GameStatsManager::sharedState((GameStatsManager *)v103); v256 = 0; v257 = 0; v258 = nullptr; std::string::__init(&v256, "0006", 4u); v235 = GameStatsManager::isSpecialChestUnlocked(v104, (char *)&v256); if ( (v256 & 1) != 0 ) operator delete(v258); LABEL_24: v105 = 1.0; goto LABEL_25; } v220 = v254; v221 = GameStatsManager::sharedState((GameStatsManager *)v103); memset(v254, 0, sizeof(v254)); std::string::__init(v254, "0004", 4u); isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v221, (char *)v254); } v235 = isSpecialChestUnlocked; if ( (*(_BYTE *)v220 & 1) != 0 ) operator delete((void *)v220[2]); goto LABEL_24; } v105 = 0.8; v235 = 0; } LABEL_25: v106 = GJChestSprite::create((GJChestSprite *)v240); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v106 + 160LL))(v106, 0.6); v107 = (CCMenuItemSpriteExtra *)CCMenuItemSpriteExtra::create( v106, 0, (__int64)this, (__int64)SecretRewardsLayer::onChestType, 0); v259 = nullptr; v260 = 0; v261 = nullptr; std::string::__init((__int64 *)&v259, "chestClick.ogg", 0xEu); if ( (cocos2d::CCLayer **)((char *)v107 + 440) != &v259 ) { if ( ((unsigned __int8)v259 & 1) != 0 ) { v108 = (char *)v261; v109 = v260; } else { v109 = (unsigned __int8)v259 >> 1; v108 = (char *)&v259 + 1; } std::string::assign((__int64 *)v107 + 55, v108, v109); } if ( ((unsigned __int8)v259 & 1) != 0 ) operator delete(v261); v110 = *(void (__fastcall **)(CCMenuItemSpriteExtra *, __int64 *))(*(_QWORD *)v107 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v249, 60.0, 48.0); v110(v107, v249); v111 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v106 + 184LL); v112 = *(float *)(*(__int64 (__fastcall **)(CCMenuItemSpriteExtra *))(*(_QWORD *)v107 + 328LL))(v107); v113 = (*(__int64 (__fastcall **)(CCMenuItemSpriteExtra *))(*(_QWORD *)v107 + 328LL))(v107); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, v112 * 0.5, *(float *)(v113 + 4) * 0.5); v111(v106, v249); (*(void (__fastcall **)(cocos2d::CCNode *, CCMenuItemSpriteExtra *))(*(_QWORD *)v94 + 456LL))(v94, v107); v114 = *(_QWORD *)v107; *((_BYTE *)v107 + 409) = 1; *((_BYTE *)v107 + 408) = 0; v115 = *(void (__fastcall **)(CCMenuItemSpriteExtra *, __int64 *))(v114 + 184); cocos2d::CCNode::convertToNodeSpace(v249, v94, (const cocos2d::CCPoint *)v246); v115(v107, v249); (*(void (__fastcall **)(CCMenuItemSpriteExtra *, _QWORD))(*(_QWORD *)v107 + 72LL))(v107, (unsigned int)v50); if ( v235 ) SecretRewardsLayer::switchToOpenedState(this, v107); v117 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"chestPlatform_01_001.png", v116); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v93 + 464LL))(v93, v117, 2); v118 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v117 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 0.0, -34.0); cocos2d::CCPoint::operator+(v249, v246); v118(v117, v249); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v117 + 960LL))(v117, v245); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v117 + 912LL))(v117, 4294967240LL); v119 = (cocos2d::CCSprite *)((char *)v250 + 1); if ( (v250[0] & 1) != 0 ) v119 = (cocos2d::CCSprite *)v251; v120 = cocos2d::CCSprite::createWithSpriteFrameName(v119, (const char *)LOBYTE(v250[0])); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v93 + 464LL))(v93, v120, 2); v121 = v117; v122 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v117 + 192LL); v123 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v120 + 184LL); v124 = v122(v121); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 0.0, -20.0); cocos2d::CCPoint::operator+(v249, v124); v123(v120, v249); v125 = (GameStatsManager *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v120 + 160LL))(v120, v105); if ( v50 <= 5 ) { v200 = GameStatsManager::sharedState(v125); v201 = (GameStatsManager *)GameStatsManager::countUnlockedSecretChests(v200, v240); v202 = (unsigned int)v201; v203 = GameStatsManager::sharedState(v201); v204 = GameStatsManager::countSecretChests(v203, v240); v238 = v202; v205 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i / %i", (const char *)v202, v204); v206 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v205); v207 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(v206, "bigFont.fnt", "Path of Light Rank 1"); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v93 + 456LL))(v93, v207); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v207 + 160LL))(v207, 0.4); v208 = v120; v209 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v120 + 192LL); v210 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v207 + 184LL); v211 = v209(v208); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 0.0, -35.0); cocos2d::CCPoint::operator+(v249, v211); v210(v207, v249); v212 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v207 + 1072LL); if ( v238 < (int)v204 ) { LOWORD(v249[0]) = 31419; BYTE2(v249[0]) = 107; } else { LOWORD(v249[0]) = -256; BYTE2(v249[0]) = 0; } v212(v207, v249); cocos2d::CCDictionary::setObject(*((cocos2d::CCDictionary **)this + 58), v207, (int)v240); if ( (v252[0] & 1) != 0 ) goto LABEL_74; } else { if ( v50 == 6 ) { cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v247, (float)(*(float *)&v244 * 0.5) + 10.0, (float)(*((float *)&v244 + 1) * 0.5) + 72.0); v225 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "bigFont.fnt", v224); *((_QWORD *)this + 55) = v225; (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v225 + 184LL))(v225, &v247); v226 = *((_QWORD *)this + 55); v227 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v226 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, 1.0, 0.5); v227(v226, v249); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 55) + 160LL))(*((_QWORD *)this + 55), 0.5); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v93 + 456LL))(v93, *((_QWORD *)this + 55)); v229 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"chest03_small_001.png", v228); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v93 + 456LL))(v93, v229); v230 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v229 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 22.0, 0.0); cocos2d::CCPoint::operator+(v249, &v247); v230(v229, v249); SecretRewardsLayer::updateUnlockedLabel(this); } if ( (v252[0] & 1) != 0 ) { LABEL_74: operator delete(v253); if ( (v250[0] & 1) == 0 ) goto LABEL_40; goto LABEL_75; } } if ( (v250[0] & 1) == 0 ) goto LABEL_40; LABEL_75: operator delete(v251); LABEL_40: ++v50; ++v239; } while ( v50 != 9 ); v126 = (cocos2d::CCLayer *)cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v245, *(float *)&v244 * 0.5, (float)(*((float *)&v244 + 1) * 0.5) + 12.0); v127 = (cocos2d::CCObject *)cocos2d::CCLayer::create(v126); v128 = (cocos2d::CCMenu *)cocos2d::CCArray::addObject(v237, v127); v129 = cocos2d::CCMenu::create(v128); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v127 + 456LL))(v127, v129); v130 = GJChestSprite::create((GJChestSprite *)byte_9); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v130 + 160LL))(v130, 0.72); v131 = (CCMenuItemSpriteExtra *)CCMenuItemSpriteExtra::create( v130, 0, (__int64)this, (__int64)SecretRewardsLayer::onGoldChest, 0); v259 = nullptr; v260 = 0; v261 = nullptr; std::string::__init((__int64 *)&v259, "chestClick.ogg", 0xEu); v132 = (__int64 *)((char *)v131 + 440); if ( (cocos2d::CCLayer **)((char *)v131 + 440) != &v259 ) { if ( ((unsigned __int8)v259 & 1) != 0 ) std::string::assign(v132, v261, v260); else std::string::assign(v132, (char *)&v259 + 1, (unsigned __int8)v259 >> 1); } if ( ((unsigned __int8)v259 & 1) != 0 ) operator delete(v261); v133 = *(void (__fastcall **)(CCMenuItemSpriteExtra *, __int64 *))(*(_QWORD *)v131 + 320LL); v134 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v130 + 168LL))(v130); v135 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v130 + 168LL))(v130); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v249, v134 * 100.0, v135 * 80.0); v133(v131, v249); v136 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v130 + 184LL); v242 = *(float *)(*(__int64 (__fastcall **)(CCMenuItemSpriteExtra *))(*(_QWORD *)v131 + 328LL))(v131) * 0.5; v137 = (*(__int64 (__fastcall **)(CCMenuItemSpriteExtra *))(*(_QWORD *)v131 + 328LL))(v131); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, v242, *(float *)(v137 + 4) * 0.5); v136(v130, v249); (*(void (__fastcall **)(__int64, CCMenuItemSpriteExtra *))(*(_QWORD *)v129 + 456LL))(v129, v131); *((_BYTE *)v131 + 408) = 0; v138 = *(_QWORD *)v131; *((_BYTE *)v131 + 409) = 1; v139 = (cocos2d::CCNode *)v129; v140 = *(__int64 (__fastcall **)(CCMenuItemSpriteExtra *, __int64 *))(v138 + 184); cocos2d::CCNode::convertToNodeSpace(v249, v139, (const cocos2d::CCPoint *)v245); v141 = (GameStatsManager *)v140(v131, v249); v142 = (GameStatsManager *)GameStatsManager::sharedState(v141); if ( !(unsigned int)GameStatsManager::getNextGoldChestID(v142) ) SecretRewardsLayer::switchToOpenedState(this, v131); v144 = 1; v145 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"chestPlatform_01_001.png", v143); (*(void (__fastcall **)(cocos2d::CCObject *, __int64, __int64))(*(_QWORD *)v127 + 464LL))(v127, v145, 2); v146 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v145 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 0.0, -40.8); cocos2d::CCPoint::operator+(v249, v245); v146(v145, v249); v147 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v145 + 960LL); qmemcpy(v249, "\\Pg", 3); v147(v145, v249); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v145 + 912LL))(v145, 4294967240LL); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v145 + 160LL))(v145, 1.2); v149 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"chest_09_price_001.png", v148); (*(void (__fastcall **)(cocos2d::CCObject *, __int64, __int64))(*(_QWORD *)v127 + 464LL))(v127, v149, 2); v150 = v145; v151 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v145 + 192LL); v152 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v149 + 184LL); v153 = v151(v150); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 0.0, -24.0); cocos2d::CCPoint::operator+(v249, v153); v152(v149, v249); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v149 + 160LL))(v149, 0.96); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v246, *(float *)&v244 * 0.5, (float)(*((float *)&v244 + 1) * 0.5) + 72.0); v155 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "bigFont.fnt", v154); *((_QWORD *)this + 57) = v155; (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v155 + 184LL))(v155, v246); v156 = *((_QWORD *)this + 57); v157 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v156 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, 0.5, 0.5); v157(v156, v249); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 57) + 160LL))(*((_QWORD *)this + 57), 0.5); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v127 + 456LL))(v127, *((_QWORD *)this + 57)); updated = (cocos2d::CCLayer *)SecretRewardsLayer::updateUnlockedGoldLabel(this); v159 = (cocos2d::CCObject *)cocos2d::CCLayer::create(updated); v160 = (cocos2d::CCMenu *)cocos2d::CCArray::addObject(v237, v159); v241 = (cocos2d::CCNode *)cocos2d::CCMenu::create(v160); (*(void (__fastcall **)(cocos2d::CCObject *, cocos2d::CCNode *))(*(_QWORD *)v159 + 456LL))(v159, v241); while ( 2 ) { v256 = 0; v257 = 0; v258 = nullptr; std::string::__init(&v256, "shopRope2_001.png", 0x11u); v259 = nullptr; v260 = 0; v261 = nullptr; std::string::__init((__int64 *)&v259, "shopRope2_2_001.png", 0x13u); switch ( v144 ) { case 3u: std::string::assign(&v256, "shopRope4_001.png"); std::string::assign((__int64 *)&v259, "shopRope4_2_001.png"); break; case 4u: std::string::assign(&v256, "shopRope5_001.png"); std::string::assign((__int64 *)&v259, "shopRope5_2_001.png"); break; case 2u: std::string::assign(&v256, "shopRope3_001.png"); std::string::assign((__int64 *)&v259, "shopRope3_2_001.png"); break; } v161 = (cocos2d::CCSprite *)((char *)&v256 + 1); if ( (v256 & 1) != 0 ) v161 = (cocos2d::CCSprite *)v258; v162 = cocos2d::CCSprite::createWithSpriteFrameName(v161, (const char *)(unsigned __int8)v256); v163 = (_DWORD *)CCMenuItemSpriteExtra::create(v162, 0, (__int64)this, (__int64)SecretRewardsLayer::onShop, 0); (*(void (__fastcall **)(_DWORD *, _QWORD))(*(_QWORD *)v163 + 72LL))(v163, v144); (*(void (__fastcall **)(cocos2d::CCNode *, _DWORD *))(*(_QWORD *)v241 + 456LL))(v241, v163); CCMenuItemSpriteExtra::setSizeMult((__int64)v163, 1.5); v164 = *(void (__fastcall **)(_DWORD *, __int64 *))(*(_QWORD *)v163 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v248, (float)((float)((float)(int)(v144 - 1) * 70.0) + -105.0) + (float)(*(float *)&v244 * 0.5), *((float *)&v244 + 1) - 100.0); cocos2d::CCNode::convertToNodeSpace(v249, v241, (const cocos2d::CCPoint *)v248); v164(v163, v249); CCMenuItemSpriteExtra::useAnimationType(v163, 1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, 0.0, -15.0); cocos2d::CCPoint::operator=(v163 + 117, v249); v163[119] = 1050253722; v163[120] = 1050253722; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v247, 25.0, 76.0); if ( v144 == 2 ) { v247 = v247 - 2.25; } else if ( v144 == 3 ) { v247 = v247 - 3.5; } for ( i = 0; i != 6; ++i ) { v166 = (cocos2d::CCSprite *)((char *)&v259 + 1); if ( ((unsigned __int8)v259 & 1) != 0 ) v166 = (cocos2d::CCSprite *)v261; v167 = cocos2d::CCSprite::createWithSpriteFrameName(v166, (const char *)(unsigned __int8)v259); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v162 + 456LL))(v162, v167); v168 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v167 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 0.0, (float)i * 20.5); cocos2d::CCPoint::operator+(v249, &v247); v168(v167, v249); } if ( ((unsigned __int8)v259 & 1) != 0 ) { operator delete(v261); if ( (v256 & 1) != 0 ) goto LABEL_82; } else { if ( (v256 & 1) == 0 ) goto LABEL_64; LABEL_82: operator delete(v258); } LABEL_64: if ( ++v144 != 5 ) continue; break; } v169 = BoomScrollLayer::create(v237, 0, 1u, nullptr, 0); *((_QWORD *)this + 68) = v169; v170 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 53) + 456LL))( *((_QWORD *)this + 53), v169); v171 = *((cocos2d::CCArray ***)this + 68); v172 = *(float *)&v244 * 0.5; v173 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v170); cocos2d::CCDirector::getScreenBottom(v173); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, v172, v174 + 10.0); BoomScrollLayer::setPagesIndicatorPosition(v171, (__int64)v249); *(_DWORD *)(*((_QWORD *)this + 68) + 540LL) = 1063675494; v175 = *((cocos2d::CCDirector **)this + 68); *((_BYTE *)v175 + 608) = 1; v176 = *((_QWORD *)this + 68); v177 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v175); ScreenRight = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenRight(v177); v243 = v179; v180 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ScreenRight); cocos2d::CCDirector::getScreenTop(v180); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v249, 0.0, 0.0, v243, v181); cocos2d::CCRect::operator=(v176 + 612, v249); *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 68) + 504LL) + 408LL) = (char *)this + 416; v182 = (cocos2d::CCNode *)cocos2d::CCMenu::create((SecretRewardsLayer *)((char *)this + 416)); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v182 + 1024LL))(v182, 4294967167LL); v183 = (float)(*((float *)&v244 + 1) * 0.5) + -30.0; v185 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v184); v186 = CCMenuItemSpriteExtra::create(v185, 0, (__int64)this, (__int64)SecretRewardsLayer::onSwitchPage, 0); *((_QWORD *)this + 64) = v186; (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v182 + 456LL))(v182, v186); v187 = *((cocos2d::CCDirector ***)this + 64); v188 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v187 + 23); v189 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v187); cocos2d::CCDirector::getScreenLeft(v189); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, v190 + 24.0, v183); cocos2d::CCNode::convertToNodeSpace(v249, v182, (const cocos2d::CCPoint *)v248); v188(v187, v249); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 64) + 72LL))(*((_QWORD *)this + 64), 0); CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 64), 2.0); v192 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_01_001.png", v191); cocos2d::CCSprite::setFlipX(v192, 1); v193 = CCMenuItemSpriteExtra::create((__int64)v192, 0, (__int64)this, (__int64)SecretRewardsLayer::onSwitchPage, 0); *((_QWORD *)this + 65) = v193; (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v182 + 456LL))(v182, v193); v194 = *((cocos2d::CCDirector ***)this + 65); v195 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v194 + 23); v196 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v194); cocos2d::CCDirector::getScreenRight(v196); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, v197 - 24.0, v183); cocos2d::CCNode::convertToNodeSpace(v249, v182, (const cocos2d::CCPoint *)v248); v195(v194, v249); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 65) + 72LL))(*((_QWORD *)this + 65), 1); CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 65), 2.0); (*(void (__fastcall **)(SecretRewardsLayer *, cocos2d::CCNode *, __int64))(*(_QWORD *)this + 464LL))(this, v182, 10); if ( v231 ) { TotalPages = BoomScrollLayer::getTotalPages(*((cocos2d::CCArray ***)this + 68)); BoomScrollLayer::instantMoveToPage(*((cocos2d::CCNode ***)this + 68), TotalPages - 2); BoomScrollLayer::instantMoveToPage(*((cocos2d::CCNode ***)this + 68), TotalPages - 1); } return v232; }
GD Web Decomp Icon

GD Web Decomp

Raw Source