// // SecretRewardsLayer::init from 0x6cdf54 to 0x6cf382 (5166 bytes) // // 1 xrefs: // > SecretRewardsLayer::create @ 0x6cf444 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:57:02 +0000 // cocos2d::CCTextureCache *__fastcall SecretRewardsLayer::init(SecretRewardsLayer *this, int a2) { cocos2d::CCTextureCache *v3; // r0 cocos2d::CCTextureCache *v4; // r0 cocos2d::CCSpriteFrameCache *v5; // r0 cocos2d::CCSpriteFrameCache *v6; // r0 cocos2d::CCDirector *v7; // r0 GameManager *WinSize; // r0 GameManager *v9; // r0 GameManager *UGV; // r0 GameManager *v11; // r0 GameManager *v12; // r0 int v13; // r0 FMODAudioEngine *v14; // r6 cocos2d::CCLayer *v15; // r0 int v16; // r0 int v17; // r3 const char *v18; // r1 int v19; // r0 int v20; // r6 void (__fastcall *v21)(int, _DWORD *); // r7 int v22; // r6 void (__fastcall *v23)(int, _DWORD *); // r7 int v24; // r0 void (__fastcall *v25)(int, _DWORD *); // r3 const char *v26; // r1 int v27; // r7 void (__fastcall *v28)(int, _DWORD *); // r9 void (__fastcall *v29)(int, _DWORD *); // r9 void (__fastcall *v30)(int, _DWORD *); // r3 const char *v31; // r1 cocos2d::CCSprite *v32; // r7 void (__fastcall *v33)(cocos2d::CCSprite *, _DWORD *); // r8 void (__fastcall *v34)(cocos2d::CCSprite *, _DWORD *); // r8 void (__fastcall *v35)(cocos2d::CCSprite *, _DWORD *); // r3 const char *v36; // r1 int v37; // r0 cocos2d::CCMenu *v38; // r7 int v39; // r6 cocos2d::CCDirector *v40; // r0 int (__fastcall *v41)(int, _DWORD *); // r8 cocos2d::CCDirector *v42; // r0 float v43; // s16 cocos2d::CCDirector *v44; // r0 float v45; // r0 PlatformToolbox *v46; // r0 GameStatsManager *isControllerConnected; // r0 cocos2d::CCMenuItem *v48; // r2 GameStatsManager *v49; // r0 const char *Stat; // r0 cocos2d::CCString *v51; // r0 cocos2d::CCLabelBMFont *CString; // r0 const char *v53; // r2 int v54; // r0 float v55; // r1 float v56; // s15 int v57; // r9 void (__fastcall *v58)(int, _DWORD *); // r6 int v59; // r9 void (__fastcall *v60)(int, _DWORD *); // r6 const char *v61; // r1 int v62; // r0 int v63; // r3 int v64; // r9 int (__fastcall *v65)(int, _DWORD *); // r10 int v66; // r11 int v67; // r11 GameStatsManager *v68; // r0 GameStatsManager *v69; // r0 const char *v70; // r0 cocos2d::CCString *v71; // r0 cocos2d::CCLabelBMFont *v72; // r0 const char *v73; // r2 int v74; // r0 int v75; // r7 void (__fastcall *v76)(int, int); // r8 int v77; // r0 int v78; // r7 void (__fastcall *v79)(int, _DWORD *); // r8 const char *v80; // r1 int v81; // r0 int v82; // r3 int v83; // r7 void (__fastcall *v84)(int, _DWORD *); // r8 int v85; // r9 const char *v86; // r1 int v87; // r6 void (__fastcall *v88)(int, _DWORD *); // r7 const char *v89; // r1 float *v90; // r6 void (__fastcall *v91)(float *, _DWORD *); // r7 void (__fastcall *v92)(float *, _DWORD *); // r7 void (__fastcall *v93)(float *, int, int, _DWORD *); // r5 cocos2d::CCArray *v94; // r0 cocos2d::CCObject *v95; // r0 unsigned int v96; // s15 cocos2d::CCLayer *v97; // r0 cocos2d::CCMenu *v98; // r6 cocos2d::CCObject *v99; // r7 int v100; // r6 int v101; // r7 float v102; // r0 cocos2d::CCString *v103; // r0 cocos2d::CCSprite *v104; // r0 const char *v105; // r1 int v106; // r5 void (__fastcall *v107)(int, _DWORD *); // r8 const char *v108; // r3 cocos2d::CCString *v109; // r0 const char *v110; // r0 const char *v111; // r8 size_t v112; // r0 cocos2d::CCString *v113; // r0 const char *v114; // r8 size_t v115; // r0 int v116; // r1 int v117; // r7 const char *v118; // r7 cocos2d::CCString *v119; // r0 char *v120; // r0 int *v121; // r0 int v122; // r0 int v123; // r7 int *v124; // r5 int isSpecialChestUnlocked; // r0 int v126; // r7 int v127; // r7 int v128; // r8 cocos2d::CCSprite *v129; // r9 int v130; // r0 CCMenuItemSpriteExtra *v131; // r5 float v132; // s16 int v133; // r0 void (__fastcall *v134)(CCMenuItemSpriteExtra *, _DWORD *); // r10 const char *v135; // r1 int v136; // r5 void (__fastcall *v137)(int, _DWORD *); // r10 cocos2d::CCSprite *v138; // r0 int v139; // r7 int v140; // r10 GameStatsManager *v141; // r0 int v142; // r0 GameStatsManager *v143; // r9 int v144; // r0 GameStatsManager *v145; // r8 cocos2d::CCString *v146; // r0 cocos2d::CCLabelBMFont *v147; // r0 const char *v148; // r2 cocos2d::CCObject *v149; // r5 int v150; // r10 char v151; // r1 void (__fastcall *v152)(cocos2d::CCObject *, _DWORD *); // r2 char v153; // r3 const char *v154; // r2 int v155; // r0 int v156; // r8 void (__fastcall *v157)(int, _DWORD *); // r9 const char *v158; // r1 int v159; // r5 void (__fastcall *v160)(int, _DWORD *); // r9 cocos2d::CCLayer *v161; // r0 cocos2d::CCObject *v162; // r6 cocos2d::CCMenu *v163; // r0 const cocos2d::CCPoint *v164; // r8 int v165; // r1 cocos2d::CCSprite *v166; // r9 int v167; // r0 CCMenuItemSpriteExtra *v168; // r5 void (__fastcall *v169)(CCMenuItemSpriteExtra *, _DWORD *); // r10 float v170; // s17 float v171; // r0 void (__fastcall *v172)(cocos2d::CCSprite *, _DWORD *); // r10 float v173; // s17 int v174; // r0 int (__fastcall *v175)(CCMenuItemSpriteExtra *, _DWORD *); // r9 GameStatsManager *v176; // r0 GameStatsManager *v177; // r0 const char *v178; // r1 int v179; // r5 void (__fastcall *v180)(int, _DWORD *); // r9 void (__fastcall *v181)(int, _DWORD *); // r3 const char *v182; // r1 int v183; // r10 void (__fastcall *v184)(int, _DWORD *); // r9 int v185; // r5 const char *v186; // r2 int v187; // r0 int v188; // r8 void (__fastcall *v189)(int, _DWORD *); // r5 int v190; // r1 int v191; // r2 cocos2d::CCLayer *updated; // r0 cocos2d::CCObject *v193; // r5 cocos2d::CCMenu *v194; // r0 const cocos2d::CCPoint *v195; // r0 void (__fastcall *v196)(cocos2d::CCObject *, const cocos2d::CCPoint *); // r3 const cocos2d::CCPoint *v197; // r6 cocos2d::CCObject *v198; // r0 int v199; // r5 const char *v200; // r1 char *v201; // r1 cocos2d::CCSprite *v202; // r0 int v203; // r11 _DWORD *v204; // r7 void (__fastcall *v205)(_DWORD *, _DWORD *); // r10 const char *v206; // r1 float v207; // s14 int i; // r7 int v209; // r8 cocos2d::CCSprite *v210; // r0 int v211; // r0 unsigned int v212; // r0 cocos2d::CCDirector *v213; // r0 unsigned int v214; // r6 float v215; // s17 cocos2d::CCDirector *v216; // r0 float v217; // r0 cocos2d::CCDirector *v218; // r0 int v219; // r6 cocos2d::CCDirector *v220; // r0 cocos2d::CCDirector *ScreenRight; // r8 cocos2d::CCDirector *v222; // r0 float v223; // r0 cocos2d::CCMenu *v224; // r0 const cocos2d::CCPoint *v225; // r6 float v226; // s17 const char *v227; // r1 int v228; // r0 int v229; // r0 cocos2d::CCDirector *v230; // r0 cocos2d::CCDirector *v231; // r0 float v232; // r0 const char *v233; // r1 cocos2d::CCSprite *v234; // r7 int v235; // r0 cocos2d::CCDirector *v236; // r0 int v237; // r9 void (__fastcall *v238)(int, float *); // r7 cocos2d::CCDirector *v239; // r0 float v240; // r0 int TotalPages; // r5 GJChestSprite *v243; // [sp+Ch] [bp-F8h] GJChestSprite *v244; // [sp+Ch] [bp-F8h] GJChestSprite *v245; // [sp+Ch] [bp-F8h] int v246; // [sp+10h] [bp-F4h] cocos2d::CCArray *v247; // [sp+14h] [bp-F0h] cocos2d::CCPoint *v248; // [sp+18h] [bp-ECh] cocos2d::CCPoint *v249; // [sp+18h] [bp-ECh] cocos2d::CCPoint *v250; // [sp+18h] [bp-ECh] cocos2d::CCTextureCache *v251; // [sp+1Ch] [bp-E8h] cocos2d::CCDictionary *v252; // [sp+20h] [bp-E4h] char *v253; // [sp+24h] [bp-E0h] char *v254; // [sp+24h] [bp-E0h] float v256; // [sp+4Ch] [bp-B8h] BYREF float v257; // [sp+50h] [bp-B4h] _DWORD v258[2]; // [sp+54h] [bp-B0h] BYREF _BYTE v259[8]; // [sp+5Ch] [bp-A8h] BYREF _BYTE v260[8]; // [sp+64h] [bp-A0h] BYREF char v261[8]; // [sp+6Ch] [bp-98h] BYREF float v262[6]; // [sp+74h] [bp-90h] BYREF _DWORD v263[2]; // [sp+8Ch] [bp-78h] BYREF _DWORD v264[2]; // [sp+94h] [bp-70h] BYREF _DWORD v265[2]; // [sp+9Ch] [bp-68h] BYREF int v266[2]; // [sp+A4h] [bp-60h] BYREF cocos2d::CCSprite *v267; // [sp+ACh] [bp-58h] int v268[3]; // [sp+B0h] [bp-54h] BYREF int v269[3]; // [sp+BCh] [bp-48h] BYREF int v270[3]; // [sp+C8h] [bp-3Ch] BYREF int v271; // [sp+D4h] [bp-30h] BYREF int v272; // [sp+D8h] [bp-2Ch] cocos2d::CCSprite *v273; // [sp+DCh] [bp-28h] int v274; // [sp+E0h] [bp-24h] BYREF int v275; // [sp+E4h] [bp-20h] cocos2d::CCSprite *v276; // [sp+E8h] [bp-1Ch] _DWORD v277[4]; // [sp+ECh] [bp-18h] BYREF v3 = (cocos2d::CCTextureCache *)cocos2d::CCLayer::init(this); v251 = v3; if ( !v3 ) return v251; *((_BYTE *)this + 416) = 1; v4 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(v3); 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 *, int))(*(_DWORD *)this + 536))(this, 1); v7 = (cocos2d::CCDirector *)(*(int (__fastcall **)(SecretRewardsLayer *, int))(*(_DWORD *)this + 544))(this, 1); cocos2d::CCDirector::sharedDirector(v7); WinSize = (GameManager *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v256); v9 = (GameManager *)GameManager::sharedState(WinSize); UGV = (GameManager *)GameManager::getUGV(v9, "10"); if ( UGV ) *((_DWORD *)this + 100) = 4; v11 = (GameManager *)GameManager::sharedState(UGV); v12 = (GameManager *)GameManager::getUGV(v11, "21"); if ( v12 ) *((_DWORD *)this + 101) = 3; v13 = GameManager::sharedState(v12); v274 = 0; v275 = 0; v276 = nullptr; v14 = (FMODAudioEngine *)v13; std::string::__init(&v274, "secretLoop.mp3", 0xEu); GameManager::fadeInMusic(v14, (unsigned __int8 *)&v274); v15 = (cocos2d::CCLayer *)std::string::~string((int)&v274); v16 = cocos2d::CCLayer::create(v15); v17 = *(_DWORD *)this; *((_DWORD *)this + 81) = v16; (*(void (__fastcall **)(SecretRewardsLayer *, int, _DWORD))(v17 + 232))(this, v16, 0); v19 = cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_gradientBG.png", v18); *((_DWORD *)this + 99) = v19; v20 = v19; v21 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v19 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, 0.0, 0.0); v21(v20, v277); (*(void (__fastcall **)(SecretRewardsLayer *, _DWORD, int))(*(_DWORD *)this + 232))(this, *((_DWORD *)this + 99), -3); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 99) + 64))( *((_DWORD *)this + 99), (float)(v256 + 10.0) / *(float *)(*((_DWORD *)this + 99) + 344)); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 99) + 72))( *((_DWORD *)this + 99), (float)(v257 + 10.0) / *(float *)(*((_DWORD *)this + 99) + 348)); v22 = *((_DWORD *)this + 99); v23 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v22 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, -5.0, -5.0); v23(v22, v277); v24 = *((_DWORD *)this + 99); v25 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v24 + 480); LOWORD(v277[0]) = 70; BYTE2(v277[0]) = 75; v25(v24, v277); v27 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"treasureRoomSpiderweb_001.png", v26); v28 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v27 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, 1.0, 1.0); v28(v27, v277); v29 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v27 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, v256 + 5.0, v257 + 5.0); v29(v27, v277); (*(void (__fastcall **)(int, int))(*(_DWORD *)v27 + 456))(v27, 63); v30 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v27 + 480); LOWORD(v277[0]) = 0; BYTE2(v277[0]) = 0; v30(v27, v277); (*(void (__fastcall **)(SecretRewardsLayer *, int, int))(*(_DWORD *)this + 232))(this, v27, -1); (*(void (__fastcall **)(int, int))(*(_DWORD *)v27 + 80))(v27, 1066192077); v32 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"treasureRoomSpiderweb_001.png", v31); v33 = *(void (__fastcall **)(cocos2d::CCSprite *, _DWORD *))(*(_DWORD *)v32 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, 0.0, 1.0); v33(v32, v277); v34 = *(void (__fastcall **)(cocos2d::CCSprite *, _DWORD *))(*(_DWORD *)v32 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, -5.0, v257 + 5.0); v34(v32, v277); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v32 + 456))(v32, 63); cocos2d::CCSprite::setFlipX(v32, 1); v35 = *(void (__fastcall **)(cocos2d::CCSprite *, _DWORD *))(*(_DWORD *)v32 + 480); LOWORD(v277[0]) = 0; BYTE2(v277[0]) = 0; v35(v32, v277); (*(void (__fastcall **)(SecretRewardsLayer *, cocos2d::CCSprite *, int))(*(_DWORD *)this + 232))(this, v32, -1); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v32 + 80))(v32, 1066192077); v37 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_03_001.png", v36); *((_DWORD *)this + 94) = v37; v262[3] = 0.0; LODWORD(v262[2]) = SecretRewardsLayer::onBack; v38 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v37, 0, (int)this, (int)SecretRewardsLayer::onBack, 0); CCMenuItemSpriteExtra::setSizeMult((int)v38, 1.6); v39 = cocos2d::CCMenu::create(v38, nullptr); v40 = (cocos2d::CCDirector *)(*(int (__fastcall **)(SecretRewardsLayer *, int, int))(*(_DWORD *)this + 232))( this, v39, 1); v41 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v39 + 92); v42 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v40); v43 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v42)); v44 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v43)); v45 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v44)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, v43 + 24.0, v45 - 23.0); v46 = (PlatformToolbox *)v41(v39, v277); isControllerConnected = (GameStatsManager *)PlatformToolbox::isControllerConnected(v46); if ( isControllerConnected ) isControllerConnected = (GameStatsManager *)GameToolbox::addBackButton(this, v38, v48); v49 = (GameStatsManager *)GameStatsManager::sharedState(isControllerConnected); Stat = (const char *)GameStatsManager::getStat(v49, "21"); v51 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", Stat); CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v51); v54 = cocos2d::CCLabelBMFont::create(CString, "bigFont.fnt", v53); v55 = v256 - 55.0; v56 = v257 - 18.0; *((_DWORD *)this + 87) = v54; v57 = v54; v58 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v54 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, v55, v56); v58(v57, v277); v59 = *((_DWORD *)this + 87); v60 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v59 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, 1.0, 0.5); v60(v59, v277); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 87) + 80))(*((_DWORD *)this + 87), 1058642330); (*(void (__fastcall **)(SecretRewardsLayer *, _DWORD))(*(_DWORD *)this + 228))(this, *((_DWORD *)this + 87)); v62 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_bigKey_001.png", v61); v63 = *(_DWORD *)this; *((_DWORD *)this + 89) = v62; (*(void (__fastcall **)(SecretRewardsLayer *, int, int))(v63 + 232))(this, v62, 3); v64 = *((_DWORD *)this + 89); v65 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v64 + 92); v66 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 87) + 96))(*((_DWORD *)this + 87)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v265, 25.0, -0.5); cocos2d::CCPoint::operator+(v277, v66, v265); v67 = 0; v68 = (GameStatsManager *)v65(v64, v277); v69 = (GameStatsManager *)GameStatsManager::sharedState(v68); v70 = (const char *)GameStatsManager::getStat(v69, "43"); v71 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v70); v72 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v71); v74 = cocos2d::CCLabelBMFont::create(v72, "bigFont.fnt", v73); *((_DWORD *)this + 88) = v74; v75 = v74; v76 = *(void (__fastcall **)(int, int))(*(_DWORD *)v74 + 92); v77 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 87) + 96))(*((_DWORD *)this + 87)); v76(v75, v77); v78 = *((_DWORD *)this + 88); v79 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v78 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, 1.0, 0.5); v79(v78, v277); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 88) + 80))(*((_DWORD *)this + 88), 1058642330); (*(void (__fastcall **)(SecretRewardsLayer *, _DWORD))(*(_DWORD *)this + 228))(this, *((_DWORD *)this + 88)); v81 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_bigGoldKey_001.png", v80); v82 = *(_DWORD *)this; *((_DWORD *)this + 90) = v81; (*(void (__fastcall **)(SecretRewardsLayer *, int, int))(v82 + 232))(this, v81, 3); v83 = *((_DWORD *)this + 90); v84 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v83 + 92); v85 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 88) + 96))(*((_DWORD *)this + 88)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v265, 25.0, -0.5); cocos2d::CCPoint::operator+(v277, v85, v265); v84(v83, v277); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 88) + 172))(*((_DWORD *)this + 88), 0); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 90) + 172))(*((_DWORD *)this + 90), 0); v87 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"treasureRoomLabel_001.png", v86); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 81) + 232))(*((_DWORD *)this + 81), v87, 2); v88 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v87 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, v256 * 0.5, v257 - 42.0); v88(v87, v277); v90 = (float *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"treasureRoomGround_001.png", v89); (*(void (__fastcall **)(SecretRewardsLayer *, float *, int))(*(_DWORD *)this + 232))(this, v90, 2); v91 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v90 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, 0.0, 1.0); v91(v90, v277); v92 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v90 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, -10.0, 35.0); v92(v90, v277); v93 = *(void (__fastcall **)(float *, int, int, _DWORD *))(*(_DWORD *)v90 + 540); v258[0] = 770; v258[1] = 1; v93(v90, 770, 1, v258); (*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v90 + 80))(v90, (float)(v256 + 20.0) / v90[86]); v94 = (cocos2d::CCArray *)(*(int (__fastcall **)(float *, int))(*(_DWORD *)v90 + 456))(v90, 150); v247 = (cocos2d::CCArray *)cocos2d::CCArray::create(v94); v252 = (cocos2d::CCDictionary *)cocos2d::CCArray::create(v247); v95 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v252); *((_DWORD *)this + 86) = v95; cocos2d::CCObject::retain(v95); do { v96 = (int)floorf((float)v67 / 3.0); v97 = (cocos2d::CCLayer *)cocos2d::CCArray::count(v247); if ( (unsigned int)v97 < v96 + 1 ) { v98 = (cocos2d::CCMenu *)cocos2d::CCLayer::create(v97); v99 = (cocos2d::CCObject *)cocos2d::CCMenu::create(v98); (*(void (__fastcall **)(cocos2d::CCMenu *, cocos2d::CCObject *))(*(_DWORD *)v98 + 228))(v98, v99); cocos2d::CCArray::addObject(v247, v98); cocos2d::CCArray::addObject(v252, v99); } v100 = cocos2d::CCArray::objectAtIndex(v247, v96); v248 = (cocos2d::CCPoint *)cocos2d::CCArray::objectAtIndex(v252, v96); v101 = v67 % 3; if ( !(v67 % 3) && v67 <= 5 ) { v102 = floorf((float)v67 / 3.0); v103 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"tier%ilabel_001.png", (const char *)(int)(float)(v102 + 1.0)); v104 = (cocos2d::CCSprite *)cocos2d::CCString::getCString(v103); v106 = cocos2d::CCSprite::createWithSpriteFrameName(v104, v105); (*(void (__fastcall **)(int, int, int))(*(_DWORD *)v100 + 232))(v100, v106, 2); v107 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v106 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, v256 * 0.5, (float)(v257 * 0.5) + 70.0); v107(v106, v277); (*(void (__fastcall **)(int, int))(*(_DWORD *)v106 + 80))(v106, 1061997773); } cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v263, (float)((float)(v101 - 1) * 100.0) + (float)(v256 * 0.5), (float)(v257 * 0.5) + 10.0); if ( v67 > 5 ) v108 = (_BYTE *)(&dword_0 + 2); else v108 = (const char *)(v67 + 3); v243 = (GJChestSprite *)v108; v109 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"chest_0%i_price_001.png", v108); v110 = (const char *)cocos2d::CCString::getCString(v109); v266[0] = 0; v266[1] = 0; v267 = nullptr; v111 = v110; v112 = strlen(v110); std::string::__init(v266, v111, v112); v113 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"chest_0%i_02_001.png", (const char *)v243); v114 = (const char *)cocos2d::CCString::getCString(v113); memset(v268, 0, sizeof(v268)); v115 = strlen(v114); std::string::__init(v268, v114, v115); if ( v67 <= 2 ) { v117 = 0; LOWORD(v262[0]) = 14446; BYTE2(v262[0]) = -126; LABEL_27: v128 = 1061997773; goto LABEL_28; } memset(v262, 100, 3); if ( v67 <= 5 ) { v117 = 0; goto LABEL_27; } v118 = (const char *)(v101 + 1); *(_WORD *)((char *)v262 + 1) = -19456; v119 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"chestSpecial_0%i_price_001.png", v118); v120 = (char *)cocos2d::CCString::getCString(v119); v121 = std::string::assign(v266, v120); if ( v118 == (_BYTE *)&dword_0 + 2 ) { v124 = v270; v126 = GameStatsManager::sharedState((GameStatsManager *)v121); memset(v270, 0, sizeof(v270)); std::string::__init(v270, "0005", 4u); isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v126, (int)v270); } else { v122 = GameStatsManager::sharedState((GameStatsManager *)v121); if ( v118 == (_BYTE *)&dword_0 + 3 ) { v271 = 0; v127 = v122; v272 = 0; v273 = nullptr; v124 = &v271; std::string::__init(&v271, "0006", 4u); isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v127, (int)&v271); } else { memset(v269, 0, sizeof(v269)); v123 = v122; v124 = v269; std::string::__init(v269, "0004", 4u); isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v123, (int)v269); } } v117 = isSpecialChestUnlocked; std::string::~string((int)v124); v128 = 1065353216; LABEL_28: v129 = GJChestSprite::create(v243, v116); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v129 + 80))(v129, 1058642330); v262[5] = 0.0; LODWORD(v262[4]) = SecretRewardsLayer::onChestType; v130 = CCMenuItemSpriteExtra::create((int)v129, 0, (int)this, (int)SecretRewardsLayer::onChestType, 0); v274 = 0; v131 = (CCMenuItemSpriteExtra *)v130; v275 = 0; v276 = nullptr; std::string::__init(&v274, "chestClick.ogg", 0xEu); std::string::operator=((unsigned __int8 *)v131 + 340, (unsigned __int8 *)&v274); std::string::~string((int)&v274); v253 = *(char **)(*(_DWORD *)v131 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v277, 60.0, 48.0); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _DWORD *))v253)(v131, v277); v254 = *(char **)(*(_DWORD *)v129 + 92); v132 = *(float *)(*(int (__fastcall **)(CCMenuItemSpriteExtra *))(*(_DWORD *)v131 + 164))(v131); v133 = (*(int (__fastcall **)(CCMenuItemSpriteExtra *))(*(_DWORD *)v131 + 164))(v131); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, v132 * 0.5, *(float *)(v133 + 4) * 0.5); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD *))v254)(v129, v277); (*(void (__fastcall **)(cocos2d::CCPoint *, CCMenuItemSpriteExtra *))(*(_DWORD *)v248 + 228))(v248, v131); *((_BYTE *)v131 + 320) = 0; *((_BYTE *)v131 + 321) = 1; v134 = *(void (__fastcall **)(CCMenuItemSpriteExtra *, _DWORD *))(*(_DWORD *)v131 + 92); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v277, v248); v134(v131, v277); (*(void (__fastcall **)(CCMenuItemSpriteExtra *, int))(*(_DWORD *)v131 + 36))(v131, v67); if ( v117 ) SecretRewardsLayer::switchToOpenedState(this, v131); v136 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"chestPlatform_01_001.png", v135); (*(void (__fastcall **)(int, int, int))(*(_DWORD *)v100 + 232))(v100, v136, 2); v137 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v136 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v265, 0.0, -34.0); cocos2d::CCPoint::operator+(v277, v263, v265); v137(v136, v277); (*(void (__fastcall **)(int, float *))(*(_DWORD *)v136 + 480))(v136, v262); (*(void (__fastcall **)(int, int))(*(_DWORD *)v136 + 456))(v136, 200); if ( (v266[0] & 1) != 0 ) v138 = v267; else v138 = (cocos2d::CCSprite *)((char *)v266 + 1); v139 = cocos2d::CCSprite::createWithSpriteFrameName(v138, (const char *)(LOBYTE(v266[0]) << 31)); (*(void (__fastcall **)(int, int, int))(*(_DWORD *)v100 + 232))(v100, v139, 2); v249 = *(cocos2d::CCPoint **)(*(_DWORD *)v139 + 92); v140 = (*(int (__fastcall **)(int))(*(_DWORD *)v136 + 96))(v136); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v265, 0.0, -20.0); cocos2d::CCPoint::operator+(v277, v140, v265); ((void (__fastcall *)(int, _DWORD *))v249)(v139, v277); v141 = (GameStatsManager *)(*(int (__fastcall **)(int, int))(*(_DWORD *)v139 + 80))(v139, v128); if ( v67 > 5 ) { if ( v67 == 6 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v264, (float)(v256 * 0.5) + 10.0, (float)(v257 * 0.5) + 72.0); v155 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)" ", "bigFont.fnt", v154); *((_DWORD *)this + 83) = v155; (*(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v155 + 92))(v155, v264); v156 = *((_DWORD *)this + 83); v157 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v156 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, 1.0, 0.5); v157(v156, v277); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 83) + 80))(*((_DWORD *)this + 83), 1056964608); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v100 + 228))(v100, *((_DWORD *)this + 83)); v159 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"chest03_small_001.png", v158); (*(void (__fastcall **)(int, int))(*(_DWORD *)v100 + 228))(v100, v159); v160 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v159 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v265, 22.0, 0.0); cocos2d::CCPoint::operator+(v277, v264, v265); v160(v159, v277); SecretRewardsLayer::updateUnlockedLabel(this); } } else { v142 = GameStatsManager::sharedState(v141); v143 = (GameStatsManager *)GameStatsManager::countUnlockedSecretChests(v142, (int)v243); v144 = GameStatsManager::sharedState(v143); v145 = (GameStatsManager *)GameStatsManager::countSecretChests(v144, (int)v243); v146 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i / %i", (const char *)v143, v145); v147 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v146); v149 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(v147, "bigFont.fnt", v148); (*(void (__fastcall **)(int, cocos2d::CCObject *))(*(_DWORD *)v100 + 228))(v100, v149); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v149 + 80))(v149, 1053609165); v250 = *(cocos2d::CCPoint **)(*(_DWORD *)v149 + 92); v150 = (*(int (__fastcall **)(int))(*(_DWORD *)v139 + 96))(v139); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v265, 0.0, -35.0); cocos2d::CCPoint::operator+(v277, v150, v265); ((void (__fastcall *)(cocos2d::CCObject *, _DWORD *))v250)(v149, v277); if ( (int)v143 >= (int)v145 ) v151 = -1; v152 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v149 + 536); if ( (int)v143 >= (int)v145 ) v153 = 0; else v153 = -69; if ( (int)v143 >= (int)v145 ) BYTE1(v277[0]) = v151; else LOBYTE(v277[0]) = v153; if ( (int)v143 >= (int)v145 ) LOBYTE(v277[0]) = v153; else v153 = 122; if ( (int)v143 < (int)v145 ) { BYTE1(v277[0]) = v153; v153 = 107; } BYTE2(v277[0]) = v153; v152(v149, v277); cocos2d::CCDictionary::setObject(*((cocos2d::CCDictionary **)this + 86), v149, (int)v243); } ++v67; std::string::~string((int)v268); std::string::~string((int)v266); } while ( v67 != 9 ); v161 = (cocos2d::CCLayer *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v259, v256 * 0.5, (float)(v257 * 0.5) + 12.0); v162 = (cocos2d::CCObject *)cocos2d::CCLayer::create(v161); v163 = (cocos2d::CCMenu *)cocos2d::CCArray::addObject(v247, v162); v164 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(v163); (*(void (__fastcall **)(cocos2d::CCObject *, const cocos2d::CCPoint *))(*(_DWORD *)v162 + 228))(v162, v164); v166 = GJChestSprite::create((GJChestSprite *)byte_9, v165); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v166 + 80))(v166, 1060655596); v263[1] = 0; v263[0] = SecretRewardsLayer::onGoldChest; v167 = CCMenuItemSpriteExtra::create((int)v166, 0, (int)this, (int)SecretRewardsLayer::onGoldChest, 0); v274 = 0; v275 = 0; v276 = nullptr; v168 = (CCMenuItemSpriteExtra *)v167; std::string::__init(&v274, "chestClick.ogg", 0xEu); std::string::operator=((unsigned __int8 *)v168 + 340, (unsigned __int8 *)&v274); std::string::~string((int)&v274); v169 = *(void (__fastcall **)(CCMenuItemSpriteExtra *, _DWORD *))(*(_DWORD *)v168 + 160); v170 = COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)v166 + 84))(v166)); v171 = (*(float (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)v166 + 84))(v166); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v277, v170 * 100.0, v171 * 80.0); v169(v168, v277); v172 = *(void (__fastcall **)(cocos2d::CCSprite *, _DWORD *))(*(_DWORD *)v166 + 92); v173 = *(float *)(*(int (__fastcall **)(CCMenuItemSpriteExtra *))(*(_DWORD *)v168 + 164))(v168); v174 = (*(int (__fastcall **)(CCMenuItemSpriteExtra *))(*(_DWORD *)v168 + 164))(v168); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, v173 * 0.5, *(float *)(v174 + 4) * 0.5); v172(v166, v277); (*(void (__fastcall **)(const cocos2d::CCPoint *, CCMenuItemSpriteExtra *))(*(_DWORD *)v164 + 228))(v164, v168); *((_BYTE *)v168 + 320) = 0; *((_BYTE *)v168 + 321) = 1; v175 = *(int (__fastcall **)(CCMenuItemSpriteExtra *, _DWORD *))(*(_DWORD *)v168 + 92); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v277, v164); v176 = (GameStatsManager *)v175(v168, v277); v177 = (GameStatsManager *)GameStatsManager::sharedState(v176); if ( !GameStatsManager::getNextGoldChestID(v177) ) SecretRewardsLayer::switchToOpenedState(this, v168); v179 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"chestPlatform_01_001.png", v178); (*(void (__fastcall **)(cocos2d::CCObject *, int, int))(*(_DWORD *)v162 + 232))(v162, v179, 2); v180 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v179 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v265, 0.0, -40.8); cocos2d::CCPoint::operator+(v277, v259, v265); v180(v179, v277); v181 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v179 + 480); qmemcpy(v277, "\\Pg", 3); v181(v179, v277); (*(void (__fastcall **)(int, int))(*(_DWORD *)v179 + 456))(v179, 200); (*(void (__fastcall **)(int, int))(*(_DWORD *)v179 + 80))(v179, 1067030938); v183 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"chest_09_price_001.png", v182); (*(void (__fastcall **)(cocos2d::CCObject *, int, int))(*(_DWORD *)v162 + 232))(v162, v183, 2); v184 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v183 + 92); v185 = (*(int (__fastcall **)(int))(*(_DWORD *)v179 + 96))(v179); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v265, 0.0, -24.0); cocos2d::CCPoint::operator+(v277, v185, v265); v184(v183, v277); (*(void (__fastcall **)(int, int))(*(_DWORD *)v183 + 80))(v183, 1064682128); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v260, v256 * 0.5, (float)(v257 * 0.5) + 72.0); v187 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)" ", "bigFont.fnt", v186); *((_DWORD *)this + 85) = v187; (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v187 + 92))(v187, v260); v188 = *((_DWORD *)this + 85); v189 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v188 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, 0.5, 0.5); v189(v188, v277); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 85) + 80))(*((_DWORD *)this + 85), 1056964608); (*(void (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)v162 + 228))(v162, *((_DWORD *)this + 85)); updated = (cocos2d::CCLayer *)SecretRewardsLayer::updateUnlockedGoldLabel((int **)this, v190, v191); v193 = (cocos2d::CCObject *)cocos2d::CCLayer::create(updated); v194 = (cocos2d::CCMenu *)cocos2d::CCArray::addObject(v247, v193); v195 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(v194); v196 = *(void (__fastcall **)(cocos2d::CCObject *, const cocos2d::CCPoint *))(*(_DWORD *)v193 + 228); v197 = v195; v198 = v193; v199 = 1; v196(v198, v197); while ( 2 ) { v271 = 0; v272 = 0; v273 = nullptr; std::string::__init(&v271, "shopRope2_001.png", 0x11u); v274 = 0; v275 = 0; v276 = nullptr; std::string::__init(&v274, "shopRope2_2_001.png", 0x13u); switch ( v199 ) { case 3: std::string::assign(&v271, "shopRope4_001.png"); v201 = "shopRope4_2_001.png"; LABEL_60: std::string::assign(&v274, v201); break; case 4: std::string::assign(&v271, "shopRope5_001.png"); v201 = "shopRope5_2_001.png"; goto LABEL_60; case 2: std::string::assign(&v271, "shopRope3_001.png"); v201 = "shopRope3_2_001.png"; goto LABEL_60; } if ( (v271 & 1) != 0 ) v202 = v273; else v202 = (cocos2d::CCSprite *)((char *)&v271 + 1); v203 = cocos2d::CCSprite::createWithSpriteFrameName(v202, v200); v264[1] = 0; v264[0] = SecretRewardsLayer::onShop; v204 = (_DWORD *)CCMenuItemSpriteExtra::create(v203, 0, (int)this, (int)SecretRewardsLayer::onShop, 0); (*(void (__fastcall **)(_DWORD *, int))(*v204 + 36))(v204, v199); (*(void (__fastcall **)(const cocos2d::CCPoint *, _DWORD *))(*(_DWORD *)v197 + 228))(v197, v204); CCMenuItemSpriteExtra::setSizeMult((int)v204, 1.5); v205 = *(void (__fastcall **)(_DWORD *, _DWORD *))(*v204 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v265, (float)((float)((float)(v199 - 1) * 70.0) - 105.0) + (float)(v256 * 0.5), v257 - 100.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v277, v197); v205(v204, v277); CCMenuItemSpriteExtra::useAnimationType(v204, 1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, 0.0, -15.0); cocos2d::CCPoint::operator=(v204 + 89, v277); v204[91] = 1050253722; v204[92] = 1050253722; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v262, 25.0, 76.0); if ( v199 == 2 ) { v207 = 2.25; goto LABEL_66; } if ( v199 == 3 ) { v207 = 3.5; LABEL_66: v262[0] = v262[0] - v207; } for ( i = 0; i != 6; ++i ) { if ( (v274 & 1) != 0 ) v210 = v276; else v210 = (cocos2d::CCSprite *)((char *)&v274 + 1); v211 = cocos2d::CCSprite::createWithSpriteFrameName(v210, v206); v209 = v211; (*(void (__fastcall **)(int, int))(*(_DWORD *)v203 + 228))(v203, v211); v244 = *(GJChestSprite **)(*(_DWORD *)v209 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v265, 0.0, (float)i * 20.5); cocos2d::CCPoint::operator+(v277, v262, v265); ((void (__fastcall *)(int, _DWORD *))v244)(v209, v277); } ++v199; std::string::~string((int)&v274); std::string::~string((int)&v271); if ( v199 != 5 ) continue; break; } v212 = BoomScrollLayer::create(v247, 0, 1, nullptr, 0); *((_DWORD *)this + 97) = v212; v213 = (cocos2d::CCDirector *)(*(int (__fastcall **)(_DWORD, unsigned int))(**((_DWORD **)this + 81) + 228))( *((_DWORD *)this + 81), v212); v214 = *((_DWORD *)this + 97); v215 = v256; v216 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v213); v217 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v216)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, v215 * 0.5, v217 + 10.0); v218 = (cocos2d::CCDirector *)BoomScrollLayer::setPagesIndicatorPosition(v214, (int)v277); *(_DWORD *)(*((_DWORD *)this + 97) + 416) = 1063675494; *(_BYTE *)(*((_DWORD *)this + 97) + 472) = 1; v219 = *((_DWORD *)this + 97); v220 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v218); ScreenRight = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenRight(v220); v222 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ScreenRight); v223 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v222)); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v277, 0.0, 0.0, *(float *)&ScreenRight, v223); v224 = (cocos2d::CCMenu *)cocos2d::CCRect::operator=(v219 + 476, v277); *(_DWORD *)(*(_DWORD *)(*((_DWORD *)this + 97) + 384) + 316) = (char *)this + 320; v225 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(v224); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v225 + 512))(v225, -129); v226 = (float)(v257 * 0.5) - 30.0; v228 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v227); v265[1] = 0; v265[0] = SecretRewardsLayer::onSwitchPage; v229 = CCMenuItemSpriteExtra::create(v228, 0, (int)this, (int)SecretRewardsLayer::onSwitchPage, 0); *((_DWORD *)this + 92) = v229; v230 = (cocos2d::CCDirector *)(*(int (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v225 + 228))( v225, v229); v246 = *((_DWORD *)this + 92); v245 = *(GJChestSprite **)(*(_DWORD *)v246 + 92); v231 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v230); v232 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v231)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v262, v232 + 24.0, v226); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v277, v225); ((void (__fastcall *)(int, _DWORD *))v245)(v246, v277); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 92) + 36))(*((_DWORD *)this + 92), 0); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 92), 2.0); v234 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_01_001.png", v233); cocos2d::CCSprite::setFlipX(v234, 1); v277[0] = SecretRewardsLayer::onSwitchPage; v277[1] = 0; v235 = CCMenuItemSpriteExtra::create((int)v234, 0, (int)this, (int)SecretRewardsLayer::onSwitchPage, 0); *((_DWORD *)this + 93) = v235; v236 = (cocos2d::CCDirector *)(*(int (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v225 + 228))( v225, v235); v237 = *((_DWORD *)this + 93); v238 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v237 + 92); v239 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v236); v240 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v239)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v261, v240 - 24.0, v226); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v262, v225); v238(v237, v262); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 93) + 36))(*((_DWORD *)this + 93), 1); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 93), 2.0); (*(void (__fastcall **)(SecretRewardsLayer *, const cocos2d::CCPoint *, int))(*(_DWORD *)this + 232))(this, v225, 10); if ( a2 ) { TotalPages = BoomScrollLayer::getTotalPages(*((cocos2d::CCArray ***)this + 97)); BoomScrollLayer::instantMoveToPage(*((_DWORD *)this + 97), TotalPages - 2); BoomScrollLayer::instantMoveToPage(*((_DWORD *)this + 97), TotalPages - 1); } return v251; }
GD Web Decomp Icon

GD Web Decomp

Raw Source