// // LevelCell::loadCustomLevelCell from 0x42ea8c to 0x430a34 (8104 bytes) // // 1 xrefs: // > LevelCell::loadFromLevel @ 0x430a8c // // 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:48:14 +0000 // int __fastcall LevelCell::loadCustomLevelCell(LevelCell *this) { _DWORD *v2; // r7 float v3; // s17 const char *v4; // r2 cocos2d::CCLabelBMFont *v5; // r0 cocos2d::CCLabelBMFont *v6; // r7 void (__fastcall *v7)(cocos2d::CCLabelBMFont *, char **); // r8 const char *v8; // r2 cocos2d::CCLabelBMFont *v9; // r0 cocos2d::CCLabelBMFont *v10; // r11 void (__fastcall *v11)(cocos2d::CCLabelBMFont *, char **); // r6 float v12; // s15 void (__fastcall *v13)(cocos2d::CCLabelBMFont *, char **); // r6 cocos2d::CCLabelBMFont *v14; // r0 float v15; // r1 float v16; // r2 GameStatsManager *v17; // r0 GameStatsManager *v18; // r0 int v19; // r5 GameStatsManager *v20; // r7 GameLevelManager *v21; // r0 GJGameLevel *SavedDailyLevel; // r0 int v23; // r1 _BOOL4 v24; // r8 const char *v25; // r1 char *v26; // r3 int v27; // r3 GameStatsManager *v28; // r8 int v29; // r6 float v30; // s17 const char *v31; // r0 cocos2d::CCString *v32; // r0 cocos2d::CCLabelBMFont *CString; // r0 const char *v34; // r2 cocos2d::CCArray *v35; // r8 const char *v36; // r1 cocos2d::CCObject *v37; // r5 cocos2d::CCSprite *v38; // r0 ButtonSprite *v39; // r6 float v40; // s19 float v41; // s17 float v42; // s19 float v43; // s17 float v44; // s19 float v45; // r0 void (__fastcall *v46)(ButtonSprite *, char **); // r10 float v47; // s19 float v48; // r9 int v49; // r10 ButtonSprite *v50; // r0 const char *v51; // r1 GameStatsManager *v52; // r0 int hasCompletedDailyStars; // r0 int v54; // r0 float v55; // r1 float v56; // s14 int v57; // r7 void (__fastcall *v58)(int, char **); // r9 void (__fastcall *v59)(GameStatsManager *, char **); // r7 float v60; // s19 int v61; // r0 int v62; // r8 int (__fastcall *v63)(int, char **); // r10 GameLevelManager *updated; // r0 const char *v65; // r1 int v66; // r5 ButtonSprite *v67; // r0 ButtonSprite *v68; // r6 int v69; // r6 int v70; // r10 const char *v71; // r1 ButtonSprite *v72; // r0 ButtonSprite *v73; // r6 int v74; // r5 void (__fastcall *v75)(int, char **); // r9 int v76; // r10 const char *v77; // r1 ButtonSprite *v78; // r0 ButtonSprite *v79; // r6 int v80; // r6 int v81; // r10 ButtonSprite *v82; // r0 int v83; // r5 const cocos2d::CCPoint *v84; // r10 void (__fastcall *v85)(int, char **); // r9 GameLevelManager *v86; // r0 char *v87; // r1 size_t v88; // r2 const char *v89; // r2 cocos2d::CCLabelBMFont *v90; // r0 int v91; // r8 float v92; // s18 float v93; // s14 float v94; // r2 float v95; // r1 float v96; // s16 float v97; // s16 float v98; // s18 float v99; // s15 int v100; // r6 const cocos2d::CCPoint *v101; // r10 void (__fastcall *v102)(int, char **); // r9 void (__fastcall *v103)(cocos2d::CCLabelBMFont *, char **); // r2 int (__fastcall *v104)(cocos2d::CCLabelBMFont *); // r3 float *v105; // r0 MusicDownloadManager *v106; // r0 float v107; // r7 float v108; // s16 float *v109; // r0 MusicDownloadManager *v110; // r0 int SongInfoObject; // r0 const char *v112; // r1 int v113; // r5 int v114; // r3 char *v115; // r0 int v116; // r6 float v117; // s15 float v118; // s14 cocos2d::CCLabelBMFont *v119; // r0 cocos2d::CCLabelBMFont *v120; // r10 void (__fastcall *v121)(cocos2d::CCLabelBMFont *, char **); // r6 int v122; // r3 void (__fastcall *v123)(cocos2d::CCLabelBMFont *, char **); // r3 void (__fastcall *v124)(cocos2d::CCLabelBMFont *, char **); // r2 const char *AverageDifficulty; // r0 _DWORD *v126; // r3 const char *v127; // r6 cocos2d::CCString *v128; // r0 cocos2d::CCNode *v129; // r0 int v130; // r5 void (__fastcall *v131)(int, char **); // r8 int v132; // r9 float v133; // r1 int v134; // r2 int v135; // r3 float v136; // s14 int v137; // r0 GJDifficultySprite *v138; // r6 GameStatsManager *v139; // r0 GameStatsManager *v140; // r0 int hasCompletedStarLevel; // r0 const char *v142; // r1 int v143; // r7 cocos2d::CCSprite *v144; // r0 int v145; // r8 cocos2d::CCString *v146; // r0 cocos2d::CCLabelBMFont *v147; // r0 const char *v148; // r2 int v149; // r6 void (__fastcall *v150)(int, char **); // r2 int v151; // r7 GameStatsManager *v152; // r0 GameStatsManager *v153; // r0 GameStatsManager *v154; // r0 cocos2d::CCString *v155; // r0 char *v156; // r0 const char *v157; // r2 cocos2d::CCLabelBMFont *v158; // r0 int v159; // r6 void (__fastcall *v160)(int, char **); // r9 float v161; // s16 float v162; // r0 int v163; // r9 void (__fastcall *v164)(int, char **); // r2 _DWORD *v165; // r3 const char *v166; // r1 float v167; // s19 float v168; // s16 float v169; // s16 float v170; // s19 int v171; // s15 int v172; // s15 float v173; // s18 GJGameLevel *v174; // r0 int v175; // r2 int v176; // r7 void (__fastcall *v177)(int, char **); // r6 const char *v178; // r1 int v179; // r6 void (__fastcall *v180)(int, char **); // r9 int v181; // r10 const char *v182; // r1 int v183; // r10 int v184; // r9 float v185; // s17 float v186; // s15 int *v187; // r3 const char *v188; // r2 cocos2d::CCLabelBMFont *v189; // r0 cocos2d::CCLabelBMFont *v190; // r5 void (__fastcall *v191)(cocos2d::CCLabelBMFont *, char **); // r9 int v192; // r9 void (__fastcall *v193)(int, char **); // r7 float v194; // s16 float v195; // s18 float v196; // s15 int v197; // r0 const char *v198; // r2 cocos2d::CCLabelBMFont *v199; // r0 cocos2d::CCLabelBMFont *v200; // r5 void (__fastcall *v201)(cocos2d::CCLabelBMFont *, char **); // r8 void (__fastcall *v202)(cocos2d::CCLabelBMFont *, char **); // r8 int v203; // r9 cocos2d::CCSpriteFrameCache *v204; // r0 int v205; // r6 void (__fastcall *v206)(int, int); // r7 cocos2d::CCSpriteFrameCache *v207; // r0 const char *v208; // r1 int v209; // r0 void (__fastcall *v210)(int, char **); // r7 float v211; // s16 float v212; // s18 float v213; // s15 int v214; // r0 const char *v215; // r2 cocos2d::CCLabelBMFont *v216; // r0 cocos2d::CCLabelBMFont *v217; // r5 void (__fastcall *v218)(cocos2d::CCLabelBMFont *, char **); // r7 void (__fastcall *v219)(cocos2d::CCLabelBMFont *, char **); // r6 int v220; // r8 float v221; // s16 float v222; // s20 GameStatsManager *v223; // r0 float v224; // s18 GameStatsManager *v225; // r0 GameStatsManager *v226; // r0 GJGameLevel *v227; // r0 GJGameLevel *v228; // r2 char v229; // r3 const char *v230; // r1 float v231; // s16 int v232; // r9 float v233; // s16 float v234; // s18 float v235; // s15 int v236; // r0 cocos2d::CCString *v237; // r0 char *v238; // r0 cocos2d::CCLabelBMFont *v239; // r0 cocos2d::CCLabelBMFont *v240; // r5 int v241; // r9 void (__fastcall *v242)(cocos2d::CCLabelBMFont *, float *); // r2 char v243; // r3 float v244; // s16 float v245; // s18 void (__fastcall *v246)(int, float *); // r5 int v247; // r9 float v248; // s18 float v249; // s20 float v250; // s18 int v251; // r0 const char *NormalPercent; // r1 float v253; // r1 float v254; // r2 int v255; // r5 void (__fastcall *v256)(int, float *); // r10 float v257; // r1 cocos2d::CCString *v258; // r0 cocos2d::CCLabelBMFont *v259; // r0 const char *v260; // r2 int v261; // r5 int v262; // r1 void (__fastcall *v263)(int, float *); // r10 void (__fastcall *v264)(int, float *); // r10 float v265; // r1 float v266; // s16 float v267; // s17 float v268; // s18 float v269; // r0 const char *v270; // r1 int v271; // r9 void (__fastcall *v272)(int, float *); // r10 int v273; // r7 void (__fastcall *v274)(int, float *); // r9 bool v276; // zf float v277; // s16 const char *CoinKey; // r0 const char *v279; // r6 size_t v280; // r0 GameStatsManager *v281; // r0 GameStatsManager *v282; // r0 cocos2d::CCLabelBMFont *v283; // r1 const char *v284; // r1 GameStatsManager *v285; // r0 cocos2d::CCLabelBMFont *v286; // r1 int v287; // r6 void (__fastcall *v288)(int, char **); // r9 int v289; // r9 float v290; // s20 float v291; // s17 float v292; // r0 void (__fastcall *v293)(int, char **); // r3 char v294; // r2 void (__fastcall *v295)(int, char **); // r2 float v296; // [sp+10h] [bp-124h] float v297; // [sp+10h] [bp-124h] float v298; // [sp+14h] [bp-120h] float v299; // [sp+14h] [bp-120h] float v300; // [sp+14h] [bp-120h] cocos2d::CCLabelBMFont *v301; // [sp+18h] [bp-11Ch] cocos2d::CCLabelBMFont *v302; // [sp+18h] [bp-11Ch] cocos2d::CCLabelBMFont *v303; // [sp+18h] [bp-11Ch] cocos2d::CCLabelBMFont *v304; // [sp+18h] [bp-11Ch] cocos2d::CCLabelBMFont *v305; // [sp+18h] [bp-11Ch] cocos2d::CCLabelBMFont *v306; // [sp+18h] [bp-11Ch] GameStatsManager *v307; // [sp+1Ch] [bp-118h] GameStatsManager *v308; // [sp+1Ch] [bp-118h] GameStatsManager *v309; // [sp+1Ch] [bp-118h] GJGameLevel *v310; // [sp+20h] [bp-114h] _BOOL4 v311; // [sp+24h] [bp-110h] int i; // [sp+24h] [bp-110h] void (__fastcall *v313)(int, char **); // [sp+24h] [bp-110h] int v314; // [sp+24h] [bp-110h] _BOOL4 v315; // [sp+28h] [bp-10Ch] int v316; // [sp+28h] [bp-10Ch] void (__fastcall *v317)(cocos2d::CCLabelBMFont *, float *); // [sp+28h] [bp-10Ch] void (__fastcall *v318)(cocos2d::CCLabelBMFont *, float *); // [sp+28h] [bp-10Ch] _BOOL4 v319; // [sp+30h] [bp-104h] int v320; // [sp+34h] [bp-100h] void (__fastcall *v321)(int, char **); // [sp+34h] [bp-100h] void (__fastcall *v322)(int, char **); // [sp+34h] [bp-100h] void (__fastcall *v323)(int, char **); // [sp+34h] [bp-100h] GameStatsManager *BaseDiamonds; // [sp+34h] [bp-100h] int v325; // [sp+34h] [bp-100h] int hasPendingUserCoin; // [sp+34h] [bp-100h] char *v327; // [sp+38h] [bp-FCh] char *v328; // [sp+38h] [bp-FCh] char *AwardedDiamondsForLevel; // [sp+38h] [bp-FCh] char *v330; // [sp+38h] [bp-FCh] char *v331; // [sp+38h] [bp-FCh] void (__fastcall *v332)(int, char **); // [sp+3Ch] [bp-F8h] void (__fastcall *v333)(int, char **); // [sp+3Ch] [bp-F8h] int v334; // [sp+3Ch] [bp-F8h] void (__fastcall *v335)(cocos2d::CCLabelBMFont *, char **); // [sp+3Ch] [bp-F8h] int v336; // [sp+40h] [bp-F4h] float v337[2]; // [sp+4Ch] [bp-E8h] BYREF float v338[2]; // [sp+54h] [bp-E0h] BYREF _BYTE v339[4]; // [sp+5Ch] [bp-D8h] BYREF float v340; // [sp+60h] [bp-D4h] _BYTE v341[8]; // [sp+64h] [bp-D0h] BYREF _BYTE v342[8]; // [sp+6Ch] [bp-C8h] BYREF _BYTE v343[8]; // [sp+74h] [bp-C0h] BYREF float v344; // [sp+7Ch] [bp-B8h] BYREF float v345; // [sp+80h] [bp-B4h] unsigned int (__fastcall *v346)(LevelCell *, cocos2d::CCObject *); // [sp+84h] [bp-B0h] int v347; // [sp+88h] [bp-ACh] unsigned int (__fastcall *v348)(LevelCell *, cocos2d::CCObject *); // [sp+8Ch] [bp-A8h] int v349; // [sp+90h] [bp-A4h] unsigned int (__fastcall *v350)(LevelCell *, cocos2d::CCObject *); // [sp+94h] [bp-A0h] int v351; // [sp+98h] [bp-9Ch] unsigned int (__fastcall *v352)(LevelCell *, cocos2d::CCObject *); // [sp+9Ch] [bp-98h] int v353; // [sp+A0h] [bp-94h] unsigned int (__fastcall *v354)(LevelCell *, cocos2d::CCObject *); // [sp+A4h] [bp-90h] int v355; // [sp+A8h] [bp-8Ch] _DWORD v356[2]; // [sp+ACh] [bp-88h] BYREF int v357[2]; // [sp+B4h] [bp-80h] BYREF ButtonSprite *v358; // [sp+BCh] [bp-78h] int v359[3]; // [sp+C0h] [bp-74h] BYREF int v360[3]; // [sp+CCh] [bp-68h] BYREF _DWORD v361[2]; // [sp+D8h] [bp-5Ch] BYREF cocos2d::CCLabelBMFont *v362; // [sp+E0h] [bp-54h] int v363[3]; // [sp+E4h] [bp-50h] BYREF unsigned __int8 v364; // [sp+F0h] [bp-44h] BYREF char v365; // [sp+F1h] [bp-43h] BYREF cocos2d::CCLabelBMFont *v366; // [sp+F8h] [bp-3Ch] char v367; // [sp+FCh] [bp-38h] BYREF char v368; // [sp+FDh] [bp-37h] BYREF cocos2d::CCLabelBMFont *v369; // [sp+104h] [bp-30h] char v370; // [sp+108h] [bp-2Ch] BYREF char v371; // [sp+109h] [bp-2Bh] BYREF cocos2d::CCLabelBMFont *v372; // [sp+110h] [bp-24h] char *v373; // [sp+114h] [bp-20h] BYREF char *v374; // [sp+118h] [bp-1Ch] int v375; // [sp+120h] [bp-14h] BYREF int v376; // [sp+124h] [bp-10h] cocos2d::CCLabelBMFont *v377; // [sp+128h] [bp-Ch] v2 = *((_DWORD **)this + 106); v311 = v2[186] - v2[187] > 0; v320 = v2[181]; if ( *((_BYTE *)this + 448) ) { if ( *((_BYTE *)this + 429) ) { v3 = -5.0; } else { GameToolbox::intToString((GameToolbox *)&v375, v2[251]); if ( (v375 & 1) != 0 ) v5 = v377; else v5 = (cocos2d::CCLabelBMFont *)((char *)&v375 + 1); v6 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v5, "bigFont.fnt", v4); (*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**((_DWORD **)this + 103) + 228))( *((_DWORD *)this + 103), v6); cocos2d::CCLabelBMFont::limitLabelWidth(v6, 20.0, 0.45, 0.0); v7 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_DWORD *)v6 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v373, 16.0, *((float *)this + 101) * 0.5); v7(v6, &v373); v3 = 15.0; std::string::~string((int)&v375); } } else { v3 = 0.0; } std::string::basic_string(&v375, *((_DWORD *)this + 106) + 280); if ( (v375 & 1) != 0 ) v9 = v377; else v9 = (cocos2d::CCLabelBMFont *)((char *)&v375 + 1); v10 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v9, "bigFont.fnt", v8); std::string::~string((int)&v375); (*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**((_DWORD **)this + 103) + 228))( *((_DWORD *)this + 103), v10); v11 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_DWORD *)v10 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v373, 0.0, 0.5); v11(v10, &v373); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v10 + 80))(v10, 1065353216); v12 = *((float *)this + 101); v13 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_DWORD *)v10 + 92); if ( *((_BYTE *)this + 448) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v373, v3 + 50.0, (float)(v12 * 0.5) + 16.0); v13(v10, &v373); v15 = 120.0; v14 = v10; v16 = 0.5; } else { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v373, 50.0, (float)(v12 * 0.5) + 30.0); v13(v10, &v373); v14 = v10; v15 = 190.0; v16 = 0.8; } cocos2d::CCLabelBMFont::limitLabelWidth(v14, v15, v16, 0.0); v357[0] = 0; v357[1] = 0; v358 = nullptr; v315 = LevelCell::inRecallMode(this); if ( v315 ) { v307 = *(GameStatsManager **)(*((_DWORD *)this + 106) + 1036); v310 = (GJGameLevel *)LevelCell::recallSavedLevel(this); v17 = (GameStatsManager *)GameStatsManager::sharedState(v310); if ( GameStatsManager::hasCompletedDailyStars(v17, (int)v307) ) { v19 = 0; } else { v18 = (GameStatsManager *)GameStatsManager::sharedState(nullptr); v19 = (unsigned __int8)GameStatsManager::isDailyRecall(v18, (int)v307) ^ 1; } v20 = LevelCell::recallChestReady(this); } else { v21 = (GameLevelManager *)GameLevelManager::sharedState(nullptr); if ( v311 ) SavedDailyLevel = (GJGameLevel *)GameLevelManager::getSavedDailyLevel( v21, *(_DWORD *)(*((_DWORD *)this + 106) + 744) - *(_DWORD *)(*((_DWORD *)this + 106) + 748)); else SavedDailyLevel = (GJGameLevel *)GameLevelManager::getSavedLevel( v21, *(_DWORD *)(*((_DWORD *)this + 106) + 268) - *(_DWORD *)(*((_DWORD *)this + 106) + 272)); v310 = SavedDailyLevel; v20 = nullptr; v19 = 0; v307 = nullptr; } v23 = *((_DWORD *)this + 106); if ( *(_DWORD *)(v23 + 952) == 2 || ((std::string::basic_string(v359, v23 + 304), memset(v360, 0, sizeof(v360)), std::string::__init(v360, &unk_B6B226, 0), !sub_4230A6((unsigned __int8 *)v359, (unsigned __int8 *)v360)) ? (v24 = 1) : !v310 ? (v24 = 0) : *((_BYTE *)v310 + 917) ? (v24 = 0) : (v24 = *((_DWORD *)v310 + 153) == *(_DWORD *)(*((_DWORD *)this + 106) + 612)), std::string::~string((int)v360), std::string::~string((int)v359), v24) ) { std::string::assign(v357, "View"); v26 = "GJ_button_01.png"; } else { v27 = *((_DWORD *)this + 106); if ( *(int *)(v27 + 616) <= 22 ) { if ( !v310 || *((_BYTE *)v310 + 917) || *((_DWORD *)v310 + 153) >= *(_DWORD *)(v27 + 612) ) { std::string::assign(v357, "Get It"); v26 = "GJ_button_02.png"; } else { std::string::assign(v357, "Update"); v26 = "GJ_button_03.png"; } } else { std::string::assign(v357, "NA"); v26 = "GJ_button_04.png"; } } if ( *((_BYTE *)this + 428) ) { std::string::assign(v357, "Use"); v26 = "GJ_button_01.png"; } if ( v311 ) { v28 = (GameStatsManager *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_playBtn2_001.png", v25); (*(void (__fastcall **)(GameStatsManager *, int))(*(_DWORD *)v28 + 80))(v28, 1060320051); v29 = 0; v30 = 18.0; v319 = *(_DWORD *)(*((_DWORD *)this + 106) + 688) - *(_DWORD *)(*((_DWORD *)this + 106) + 692) > 99; } else { if ( v19 ) { v31 = (const char *)GameStatsManager::dailyRecallPrice(v307, (int)v25); v32 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v31); CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v32); v35 = (cocos2d::CCArray *)cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt", v34); (*(void (__fastcall **)(cocos2d::CCArray *, int))(*(_DWORD *)v35 + 80))(v35, 1060320051); v37 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_bigKey_001.png", v36); v38 = (cocos2d::CCSprite *)(*(int (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v37 + 80))( v37, 1060655596); v39 = (ButtonSprite *)cocos2d::CCSprite::create(v38); (*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v39 + 492))(v39, 1); (*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v39 + 468))(v39, 1); v40 = *(float *)(*(int (__fastcall **)(cocos2d::CCArray *))(*(_DWORD *)v35 + 164))(v35); v41 = (float)(v40 * COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCArray *))(*(_DWORD *)v35 + 84))(v35))) + 3.0; v42 = *(float *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v37 + 164))(v37); v43 = v41 + (float)(v42 * COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v37 + 84))(v37))); v44 = *(float *)((*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v37 + 164))(v37) + 4); v45 = (*(float (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v37 + 84))(v37); v46 = *(void (__fastcall **)(ButtonSprite *, char **))(*(_DWORD *)v39 + 160); v47 = v44 * v45; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v373, v43, v47); v46(v39, &v373); (*(void (__fastcall **)(ButtonSprite *, cocos2d::CCArray *))(*(_DWORD *)v39 + 228))(v39, v35); (*(void (__fastcall **)(ButtonSprite *, cocos2d::CCObject *))(*(_DWORD *)v39 + 228))(v39, v37); v48 = COERCE_FLOAT(cocos2d::CCArray::create(v35, v37, 0)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v373, v43 * 0.5, v47 * 0.5); GameToolbox::alignItemsHorisontally(v48, 3.0, (int)&v373, 0); v301 = *(cocos2d::CCLabelBMFont **)(*(_DWORD *)v37 + 92); v49 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v37 + 96))(v37); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v356, 0.0, -2.0); cocos2d::CCPoint::operator+(&v373, v49, v356); ((void (__fastcall *)(cocos2d::CCObject *, char **))v301)(v37, &v373); v28 = ButtonSprite::create( v39, (cocos2d::CCSprite *)((char *)&dword_38 + 2), 0, 20.0, 1.0, 1, "GJ_button_05.png", nullptr, 30.0, v298); v319 = 0; v29 = 5; } else if ( v20 ) { v28 = (GameStatsManager *)GJChestSprite::create((GJChestSprite *)((char *)&dword_0 + 3), (int)v25); (*(void (__fastcall **)(GameStatsManager *, int))(*(_DWORD *)v28 + 80))(v28, 1050253722); v29 = 6; v319 = 1; } else { if ( (v357[0] & 1) != 0 ) v50 = v358; else v50 = (ButtonSprite *)((char *)v357 + 1); if ( *((_BYTE *)this + 448) ) v51 = (const char *)&word_28; else v51 = (const char *)&word_32; v28 = ButtonSprite::create(v50, v51, 0, 0.6, 1, "bigFont.fnt", v26, (const char *)0x41F00000, v296); v52 = (GameStatsManager *)GameStatsManager::sharedState(v28); if ( v315 ) hasCompletedDailyStars = GameStatsManager::hasCompletedDailyStars(v52, (int)v307); else hasCompletedDailyStars = GameStatsManager::hasCompletedLevel(v52, *((GJGameLevel **)this + 106)); v29 = 0; v319 = hasCompletedDailyStars; } v30 = 0.0; } v347 = 0; v346 = LevelCell::onClick; v54 = CCMenuItemSpriteExtra::create((int)v28, 0, (int)this, (int)LevelCell::onClick, 0); *((_DWORD *)this + 105) = v54; if ( v311 ) { v55 = 1.0; } else if ( *(_BYTE *)(*((_DWORD *)this + 106) + 596) ) { v55 = 1.0; } else { v55 = 1.4; } CCMenuItemSpriteExtra::setSizeMult(v54, v55); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 105) + 36))(*((_DWORD *)this + 105), v29); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 111) + 228))( *((_DWORD *)this + 111), *((_DWORD *)this + 105)); v56 = *(float *)(*(int (__fastcall **)(GameStatsManager *))(*(_DWORD *)v28 + 164))(v28); if ( v20 ) { v57 = *((_DWORD *)this + 105); v58 = *(void (__fastcall **)(int, char **))(*(_DWORD *)v57 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v373, 66.0, 30.0); v58(v57, &v373); v59 = *(void (__fastcall **)(GameStatsManager *, char **))(*(_DWORD *)v28 + 92); v60 = *(float *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 105) + 164))(*((_DWORD *)this + 105)); v61 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 105) + 164))(*((_DWORD *)this + 105)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v373, v60 * 0.5, *(float *)(v61 + 4) * 0.5); v59(v28, &v373); v56 = *(float *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 105) + 164))(*((_DWORD *)this + 105)); } cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v373, (float)((float)(*((float *)this + 100) - (float)(v56 * 0.5)) - 9.0) + v30, *((float *)this + 101) * 0.5); cocos2d::CCPoint::operator=((char *)this + 436, &v373); v62 = *((_DWORD *)this + 105); v63 = *(int (__fastcall **)(int, char **))(*(_DWORD *)v62 + 92); v302 = *((cocos2d::CCLabelBMFont **)this + 111); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v356, *((const cocos2d::CCPoint **)this + 103)); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v373, v302); updated = (GameLevelManager *)v63(v62, &v373); if ( *((_DWORD *)this + 104) == 29 ) { v67 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"edit_flipYBtn_001.png", v65); v68 = ButtonSprite::create( v67, (cocos2d::CCSprite *)((char *)&dword_1C + 2), 0, 30.0, 1.0, 1, "GJ_button_05.png", nullptr, 0.0, v298); (*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v68 + 80))(v68, 1058642330); v348 = LevelCell::onClick; v349 = 0; v69 = CCMenuItemSpriteExtra::create((int)v68, 0, (int)this, (int)LevelCell::onClick, 0); (*(void (__fastcall **)(int, int))(*(_DWORD *)v69 + 36))(v69, 3); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v69); v303 = *(cocos2d::CCLabelBMFont **)(*(_DWORD *)v69 + 92); v70 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 105) + 96))(*((_DWORD *)this + 105)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v356, 16.0, -8.0); cocos2d::CCPoint::operator+(&v373, v70, v356); ((void (__fastcall *)(int, char **))v303)(v69, &v373); v72 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_downBtn_001.png", v71); v73 = ButtonSprite::create( v72, (cocos2d::CCSprite *)((char *)&dword_1C + 2), 0, 30.0, 1.0, 1, "GJ_button_06.png", nullptr, 0.0, v299); (*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v73 + 80))(v73, 1058642330); v350 = LevelCell::onClick; v351 = 0; v74 = CCMenuItemSpriteExtra::create((int)v73, 0, (int)this, (int)LevelCell::onClick, 0); (*(void (__fastcall **)(int, int))(*(_DWORD *)v74 + 36))(v74, 2); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v74); v75 = *(void (__fastcall **)(int, char **))(*(_DWORD *)v74 + 92); v76 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 105) + 96))(*((_DWORD *)this + 105)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v356, -12.0, -8.0); cocos2d::CCPoint::operator+(&v373, v76, v356); v75(v74, &v373); v78 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_upBtn_001.png", v77); v79 = ButtonSprite::create( v78, (cocos2d::CCSprite *)((char *)&dword_1C + 2), 0, 30.0, 1.0, 1, "GJ_button_01.png", nullptr, 0.0, v300); (*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v79 + 80))(v79, 1058642330); v353 = 0; v352 = LevelCell::onClick; v80 = CCMenuItemSpriteExtra::create((int)v79, 0, (int)this, (int)LevelCell::onClick, 0); (*(void (__fastcall **)(int, int))(*(_DWORD *)v80 + 36))(v80, 1); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v80); v304 = *(cocos2d::CCLabelBMFont **)(*(_DWORD *)v80 + 92); v81 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 105) + 96))(*((_DWORD *)this + 105)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v356, -40.0, -8.0); cocos2d::CCPoint::operator+(&v373, v81, v356); ((void (__fastcall *)(int, char **))v304)(v80, &v373); v82 = ButtonSprite::create( (ButtonSprite *)"Delete", (const char *)&word_28, 0, 0.6, 1, "bigFont.fnt", "GJ_button_06.png", (const char *)0x41F00000, v297); v354 = LevelCell::onClick; v355 = 0; v83 = CCMenuItemSpriteExtra::create((int)v82, 0, (int)this, (int)LevelCell::onClick, 0); (*(void (__fastcall **)(int, int))(*(_DWORD *)v83 + 36))(v83, 4); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v83); v84 = *((const cocos2d::CCPoint **)this + 111); v85 = *(void (__fastcall **)(int, char **))(*(_DWORD *)v83 + 92); v305 = *((cocos2d::CCLabelBMFont **)this + 103); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v343, -v30, 0.0); cocos2d::CCPoint::operator+(&v344, (char *)this + 436, v343); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v356, v305); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v373, v84); v85(v83, &v373); updated = (GameLevelManager *)LevelCell::updateCellMode(this, *((_DWORD *)this + 113)); } v66 = *(_DWORD *)(*((_DWORD *)this + 106) + 416) - *(_DWORD *)(*((_DWORD *)this + 106) + 420); if ( v66 <= 0 ) { v86 = (GameLevelManager *)GameLevelManager::sharedState(updated); v66 = GameLevelManager::accountIDForUserID( v86, *(_DWORD *)(*((_DWORD *)this + 106) + 404) - *(_DWORD *)(*((_DWORD *)this + 106) + 408)); } v361[0] = 0; v361[1] = 0; v362 = nullptr; if ( !*((_BYTE *)this + 448) ) std::string::append(v361, "By ", 3u); std::string::basic_string(v363, *((_DWORD *)this + 106) + 316); if ( (v363[0] & 1) != 0 ) { v87 = (char *)v363[2]; v88 = v363[1]; } else { v88 = (int)LOBYTE(v363[0]) >> 1; v87 = (char *)v363 + 1; } std::string::append(v361, v87, v88); std::string::~string((int)v363); if ( (v361[0] & 1) != 0 ) v90 = v362; else v90 = (cocos2d::CCLabelBMFont *)((char *)v361 + 1); v306 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v90, "goldFont.fnt", v89); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v337); if ( *((_BYTE *)this + 448) ) { cocos2d::CCLabelBMFont::limitLabelWidth(v306, 80.0, 0.45, 0.0); v91 = (*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v10 + 96))(v10); v96 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v10 + 164))(v10); v97 = v96 * COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v10 + 84))(v10)); v98 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v306 + 164))(v306) * 0.5; v99 = COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v306 + 84))(v306)); v94 = 0.0; v95 = (float)(v97 + (float)(v98 * v99)) + 5.0; } else { cocos2d::CCLabelBMFont::limitLabelWidth(v306, 140.0, 0.7, 0.0); v91 = (*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v10 + 96))(v10); v92 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v306 + 164))(v306) * 0.5; v93 = COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v306 + 84))(v306)); v94 = -22.0; v95 = (float)(v92 * v93) + 2.0; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v356, v95, v94); cocos2d::CCPoint::operator+(&v373, v91, v356); cocos2d::CCPoint::operator=(v337, &v373); v356[1] = 0; v356[0] = LevelCell::onViewProfile; v100 = CCMenuItemSpriteExtra::create((int)v306, 0, (int)this, (int)LevelCell::onViewProfile, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v100); v101 = *((const cocos2d::CCPoint **)this + 111); v102 = *(void (__fastcall **)(int, char **))(*(_DWORD *)v100 + 92); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v344, *((const cocos2d::CCPoint **)this + 103)); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v373, v101); v102(v100, &v373); if ( !v66 ) { v103 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_DWORD *)v306 + 536); LOWORD(v373) = -166; BYTE2(v373) = -1; v103(v306, &v373); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v100 + 528))(v100, 0); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v338); v104 = *(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v10 + 96); if ( *((_BYTE *)this + 448) ) { v109 = (float *)v104(v10); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v373, *v109 + 1.0, (float)(*((float *)this + 101) * 0.5) - 1.0); v106 = (MusicDownloadManager *)cocos2d::CCPoint::operator=(v338, &v373); v108 = 150.0; v107 = 0.36; } else { v105 = (float *)v104(v10); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v373, *v105 + 2.0, (float)(*((float *)this + 101) * 0.5) - 12.0); v106 = (MusicDownloadManager *)cocos2d::CCPoint::operator=(v338, &v373); v107 = 0.45; v108 = 195.0; } v110 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v106); SongInfoObject = MusicDownloadManager::getSongInfoObject(v110, *(_DWORD *)(*((_DWORD *)this + 106) + 436)); v113 = SongInfoObject; if ( SongInfoObject ) { v114 = *(_DWORD *)(SongInfoObject + 312); if ( v114 > 0 ) { if ( v114 == 2 ) v115 = "chompo_small_001.png"; else v115 = "ncs_small_001.png"; v116 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v115, v112); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v116); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v373, 14.0, -1.0); cocos2d::CCPoint::operator+(&v344, v338, &v373); if ( *(_DWORD *)(v113 + 312) == 2 ) { v344 = v344 + 3.0; v345 = v345 - 0.5; v117 = v338[0] + 40.0; v118 = 20.0; } else { v117 = v338[0] + 34.0; v118 = 15.0; } v338[0] = v117; v108 = v108 - v118; (*(void (__fastcall **)(int, float *))(*(_DWORD *)v116 + 92))(v116, &v344); } } GJGameLevel::getSongName((GJGameLevel *)&v364); if ( (v364 & 1) != 0 ) v119 = v366; else v119 = (cocos2d::CCLabelBMFont *)&v365; v120 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v119, "bigFont.fnt", (const char *)(v364 << 31)); std::string::~string((int)&v364); (*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**((_DWORD **)this + 103) + 228))( *((_DWORD *)this + 103), v120); v121 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_DWORD *)v120 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v373, 0.0, 0.5); v121(v120, &v373); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, float *))(*(_DWORD *)v120 + 92))(v120, v338); cocos2d::CCLabelBMFont::limitLabelWidth(v120, v108, v107, 0.0); v122 = *(_DWORD *)v120; if ( *(int *)(*((_DWORD *)this + 106) + 436) > 0 ) { v124 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(v122 + 536); LOWORD(v373) = -32001; BYTE2(v373) = -1; v124(v120, &v373); } else { v123 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(v122 + 536); LOWORD(v373) = -11736; BYTE2(v373) = -1; v123(v120, &v373); } AverageDifficulty = (const char *)GJGameLevel::getAverageDifficulty(*((GJGameLevel **)this + 106)); v126 = *((_DWORD **)this + 106); v127 = AverageDifficulty; if ( v126[189] - v126[190] == 1 ) v127 = (const char *)GJGameLevel::demonIconForDifficulty(v126[192]); v128 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"difficulty_%02d_btn_001.png", v127); v129 = (cocos2d::CCNode *)cocos2d::CCString::getCString(v128); v130 = cocos2d::CCNode::create(v129); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 103) + 232))(*((_DWORD *)this + 103), v130, 2); (*(void (__fastcall **)(int, void *))(*(_DWORD *)v130 + 160))(v130, &unk_D2B80C); v131 = *(void (__fastcall **)(int, char **))(*(_DWORD *)v130 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v373, 26.0, *((float *)this + 101) * 0.5); v131(v130, &v373); if ( *((_BYTE *)this + 448) ) { (*(void (__fastcall **)(int, int))(*(_DWORD *)v130 + 80))(v130, 1060320051); v327 = *(char **)(*(_DWORD *)v130 + 92); v132 = (*(int (__fastcall **)(int))(*(_DWORD *)v130 + 96))(v130); if ( *((_BYTE *)this + 429) ) v133 = -2.0; else v133 = 18.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v344, v133, 1.0); cocos2d::CCPoint::operator+(&v373, v132, &v344); ((void (__fastcall *)(int, char **))v327)(v130, &v373); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v339, 0.0, 0.0); v134 = *((_DWORD *)this + 106); if ( *(int *)(v134 + 788) <= 0 ) v135 = 0; else v135 = *((unsigned __int8 *)this + 448) ^ 1; if ( *(_DWORD *)(v134 + 772) - *(_DWORD *)(v134 + 776) <= 0 ) { if ( !v135 ) goto LABEL_104; goto LABEL_226; } if ( !v135 ) { LABEL_226: v136 = 5.0; goto LABEL_227; } v136 = 14.0; LABEL_227: v340 = v340 + v136; LABEL_104: if ( v311 ) v340 = v340 + 10.0; if ( *(_BYTE *)(v134 + 784) ) v137 = -1; else v137 = (int)v127; v138 = (GJDifficultySprite *)GJDifficultySprite::create(v137, 0); GJDifficultySprite::updateFeatureStateFromLevel(v138, *((GJGameLevel **)this + 106)); (*(void (__fastcall **)(int, GJDifficultySprite *, int))(*(_DWORD *)v130 + 232))(v130, v138, 3); v139 = (GameStatsManager *)(*(int (__fastcall **)(GJDifficultySprite *, _BYTE *))(*(_DWORD *)v138 + 92))(v138, v339); v140 = (GameStatsManager *)GameStatsManager::sharedState(v139); if ( v315 ) hasCompletedStarLevel = GameStatsManager::hasCompletedDailyStars(v140, (int)v307); else hasCompletedStarLevel = GameStatsManager::hasCompletedStarLevel(v140, *((GJGameLevel **)this + 106)); v143 = hasCompletedStarLevel; if ( *(_DWORD *)(*((_DWORD *)this + 106) + 772) - *(_DWORD *)(*((_DWORD *)this + 106) + 776) > 0 ) { v144 = (cocos2d::CCSprite *)(v320 == 5 ? "moon_small01_001.png" : "star_small01_001.png"); v145 = cocos2d::CCSprite::createWithSpriteFrameName(v144, v142); (*(void (__fastcall **)(int, int))(*(_DWORD *)v130 + 228))(v130, v145); v321 = *(void (__fastcall **)(int, char **))(*(_DWORD *)v145 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v344, 8.0, -30.0); cocos2d::CCPoint::operator+(&v373, v339, &v344); v321(v145, &v373); v146 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(*(_DWORD *)(*((_DWORD *)this + 106) + 772) - *(_DWORD *)(*((_DWORD *)this + 106) + 776))); v147 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v146); v149 = cocos2d::CCLabelBMFont::create(v147, "bigFont.fnt", v148); (*(void (__fastcall **)(int, int))(*(_DWORD *)v130 + 228))(v130, v149); v322 = *(void (__fastcall **)(int, char **))(*(_DWORD *)v149 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v373, 1.0, 0.5); v322(v149, &v373); v323 = *(void (__fastcall **)(int, char **))(*(_DWORD *)v149 + 92); v328 = (char *)(*(int (__fastcall **)(int))(*(_DWORD *)v145 + 96))(v145); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v344, -8.0, 0.0); cocos2d::CCPoint::operator+(&v373, v328, &v344); v323(v149, &v373); (*(void (__fastcall **)(int, int))(*(_DWORD *)v149 + 80))(v149, 1053609165); if ( v143 ) { v150 = *(void (__fastcall **)(int, char **))(*(_DWORD *)v149 + 536); LOWORD(v373) = -1; BYTE2(v373) = 50; v150(v149, &v373); } } if ( v311 ) { v151 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"diamond_small01_001.png", v142); v152 = (GameStatsManager *)(*(int (__fastcall **)(int, int))(*(_DWORD *)v130 + 228))(v130, v151); v375 = 0; v376 = 0; v377 = nullptr; v153 = (GameStatsManager *)GameStatsManager::sharedState(v152); BaseDiamonds = (GameStatsManager *)GameStatsManager::getBaseDiamonds( v153, *(_DWORD *)(*((_DWORD *)this + 106) + 772) - *(_DWORD *)(*((_DWORD *)this + 106) + 776)); v154 = (GameStatsManager *)GameStatsManager::sharedState(BaseDiamonds); AwardedDiamondsForLevel = (char *)GameStatsManager::getAwardedDiamondsForLevel(v154, *((GJGameLevel **)this + 106)); v155 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i/%i", AwardedDiamondsForLevel, BaseDiamonds); v156 = (char *)cocos2d::CCString::getCString(v155); std::string::assign(&v375, v156); if ( (v375 & 1) != 0 ) v158 = v377; else v158 = (cocos2d::CCLabelBMFont *)((char *)&v375 + 1); v159 = cocos2d::CCLabelBMFont::create(v158, "bigFont.fnt", v157); (*(void (__fastcall **)(int, int))(*(_DWORD *)v130 + 228))(v130, v159); v160 = *(void (__fastcall **)(int, char **))(*(_DWORD *)v159 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v373, 1.0, 0.5); v160(v159, &v373); (*(void (__fastcall **)(int, int))(*(_DWORD *)v159 + 80))(v159, 1051931443); v161 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v159 + 164))(v159); v162 = (*(float (__fastcall **)(int))(*(_DWORD *)v159 + 84))(v159); v332 = *(void (__fastcall **)(int, char **))(*(_DWORD *)v151 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v344, (float)((float)(v161 * v162) * 0.5) + 2.0, -44.5); cocos2d::CCPoint::operator+(&v373, v339, &v344); v332(v151, &v373); v333 = *(void (__fastcall **)(int, char **))(*(_DWORD *)v159 + 92); v163 = (*(int (__fastcall **)(int))(*(_DWORD *)v151 + 96))(v151); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v344, -8.0, 0.0); cocos2d::CCPoint::operator+(&v373, v163, &v344); v333(v159, &v373); if ( AwardedDiamondsForLevel == (char *)BaseDiamonds ) { v164 = *(void (__fastcall **)(int, char **))(*(_DWORD *)v159 + 536); LOWORD(v373) = -156; BYTE2(v373) = -1; v164(v159, &v373); } std::string::~string((int)&v375); } v165 = *((_DWORD **)this + 106); if ( (int)v165[197] > 0 ) { if ( v311 ) { v173 = -60.0; } else { v173 = -31.5; if ( v165[193] - v165[194] > 0 ) v173 = -45.5; } v334 = v165[198]; v336 = v165[199]; for ( i = 1; ; ++i ) { v174 = *((GJGameLevel **)this + 106); v175 = *((_DWORD *)v174 + 197); if ( i - 1 >= v175 || i == 4 ) break; if ( i == 2 ) { v276 = v175 == 2; v277 = 5.0; } else { if ( i == 1 ) { if ( v175 == 2 ) { v277 = -5.0; } else if ( v175 <= 2 ) { v277 = 0.0; } else { v277 = -10.0; } goto LABEL_236; } v277 = 10.0; v276 = i == 3; } if ( !v276 ) v277 = 0.0; LABEL_236: if ( v315 ) CoinKey = (const char *)GJGameLevel::getCoinKey(v174, i, (int)v307); else CoinKey = (const char *)GJGameLevel::getCoinKey(v174, i); v279 = CoinKey; v375 = 0; v376 = 0; v377 = nullptr; v280 = strlen(CoinKey); v281 = (GameStatsManager *)std::string::__init(&v375, v279, v280); v282 = (GameStatsManager *)GameStatsManager::sharedState(v281); if ( (v375 & 1) != 0 ) v283 = v377; else v283 = (cocos2d::CCLabelBMFont *)((char *)&v375 + 1); if ( GameStatsManager::hasUserCoin(v282, (const char *)v283) ) { hasPendingUserCoin = 1; } else { v285 = (GameStatsManager *)GameStatsManager::sharedState(nullptr); if ( (v375 & 1) != 0 ) v286 = v377; else v286 = (cocos2d::CCLabelBMFont *)((char *)&v375 + 1); hasPendingUserCoin = GameStatsManager::hasPendingUserCoin(v285, (const char *)v286); } v287 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"usercoin_small01_001.png", v284); if ( *((_BYTE *)this + 448) ) { (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v287); (*(void (__fastcall **)(int, int))(*(_DWORD *)v287 + 80))(v287, 1060320051); v331 = *(char **)(*(_DWORD *)v287 + 92); v289 = (*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v120 + 96))(v120); v290 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v120 + 164))(v120); v291 = (float)(v290 * COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v120 + 84))(v120))) + 18.0; v292 = (*(float (__fastcall **)(int))(*(_DWORD *)v287 + 84))(v287); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v344, v291 + (float)(v277 * v292), 0.0); cocos2d::CCPoint::operator+(&v373, v289, &v344); ((void (__fastcall *)(int, char **))v331)(v287, &v373); } else { (*(void (__fastcall **)(int, int))(*(_DWORD *)v130 + 228))(v130, v287); v288 = *(void (__fastcall **)(int, char **))(*(_DWORD *)v287 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v344, v277, v173); cocos2d::CCPoint::operator+(&v373, v339, &v344); v288(v287, &v373); } if ( v334 == v336 ) { v293 = *(void (__fastcall **)(int, char **))(*(_DWORD *)v287 + 480); if ( hasPendingUserCoin ) { LOWORD(v373) = -20481; v294 = 75; } else { LOWORD(v373) = 29093; v294 = 48; } BYTE2(v373) = v294; v293(v287, &v373); } else if ( !hasPendingUserCoin ) { v295 = *(void (__fastcall **)(int, char **))(*(_DWORD *)v287 + 480); LOWORD(v373) = -23131; BYTE2(v373) = -91; v295(v287, &v373); } std::string::~string((int)&v375); } } v167 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v10 + 96))(v10); v168 = 9.0; if ( *((_BYTE *)this + 448) ) v168 = 6.0; v169 = v167 + v168; v170 = 14.0; if ( *((_BYTE *)this + 448) ) v170 = 8.5; v171 = 1114636288; if ( !*((_BYTE *)this + 448) ) v171 = 1117782016; v330 = (char *)v171; v172 = 1053609165; if ( !*((_BYTE *)this + 448) ) v172 = 1058642330; v325 = v172; v176 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_timeIcon_001.png", v166); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v176); v177 = *(void (__fastcall **)(int, char **))(*(_DWORD *)v176 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v373, v169, v170); v177(v176, &v373); (*(void (__fastcall **)(int, int))(*(_DWORD *)v176 + 80))(v176, v172); v179 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_downloadsIcon_001.png", v178); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v179); v180 = *(void (__fastcall **)(int, char **))(*(_DWORD *)v179 + 92); v181 = (*(int (__fastcall **)(int))(*(_DWORD *)v176 + 96))(v176); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v344, *(float *)&v330, 0.0); cocos2d::CCPoint::operator+(&v373, v181, &v344); v180(v179, &v373); (*(void (__fastcall **)(int, int))(*(_DWORD *)v179 + 80))(v179, v172); v183 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_likesIcon_001.png", v182); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v183); v313 = *(void (__fastcall **)(int, char **))(*(_DWORD *)v183 + 92); v184 = (*(int (__fastcall **)(int))(*(_DWORD *)v179 + 96))(v179); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v344, *(float *)&v330, 0.0); cocos2d::CCPoint::operator+(&v373, v184, &v344); v313(v183, &v373); (*(void (__fastcall **)(int, int))(*(_DWORD *)v183 + 80))(v183, v172); v185 = 18.0; v186 = 0.4; v187 = *((int **)this + 106); if ( *((_BYTE *)this + 448) ) v186 = 0.3; v314 = LODWORD(v186); if ( v187[193] - v187[194] <= 0 ) v185 = 25.0; if ( *((_BYTE *)this + 448) ) v185 = v185 * 0.8; GJGameLevel::lengthKeyToString((GJGameLevel *)&v367, v187[181]); if ( (v367 & 1) != 0 ) v189 = v369; else v189 = (cocos2d::CCLabelBMFont *)&v368; v190 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v189, "bigFont.fnt", v188); std::string::~string((int)&v367); (*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**((_DWORD **)this + 103) + 228))( *((_DWORD *)this + 103), v190); v191 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_DWORD *)v190 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v373, 0.0, 0.5); v191(v190, &v373); v335 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_DWORD *)v190 + 92); v192 = (*(int (__fastcall **)(int))(*(_DWORD *)v176 + 96))(v176); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v344, 10.0, 0.0); cocos2d::CCPoint::operator+(&v373, v192, &v344); v335(v190, &v373); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, float))(*(_DWORD *)v190 + 80))(v190, COERCE_FLOAT(LODWORD(v186))); cocos2d::CCLabelBMFont::limitLabelWidth(v190, 50.0, v186, 0.0); v193 = *(void (__fastcall **)(int, char **))(*(_DWORD *)v179 + 92); v194 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v190 + 96))(v190); v195 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v190 + 164))(v190); v196 = COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v190 + 84))(v190)); v197 = (*(int (__fastcall **)(int))(*(_DWORD *)v179 + 96))(v179); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v373, (float)(v194 + (float)(v195 * v196)) + v185, *(float *)(v197 + 4)); v193(v179, &v373); GameToolbox::intToShortString((GameToolbox *)&v370, *(_DWORD *)(*((_DWORD *)this + 106) + 472), 0); if ( (v370 & 1) != 0 ) v199 = v372; else v199 = (cocos2d::CCLabelBMFont *)&v371; v200 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v199, "bigFont.fnt", v198); std::string::~string((int)&v370); (*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**((_DWORD **)this + 103) + 228))( *((_DWORD *)this + 103), v200); v201 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_DWORD *)v200 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v373, 0.0, 0.5); v201(v200, &v373); v202 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_DWORD *)v200 + 92); v203 = (*(int (__fastcall **)(int))(*(_DWORD *)v179 + 96))(v179); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v344, 9.0, 0.0); cocos2d::CCPoint::operator+(&v373, v203, &v344); v202(v200, &v373); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v200 + 80))(v200, v314); v204 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCLabelBMFont::limitLabelWidth(v200, 45.0, *(float *)&v314, 0.0); v205 = *(_DWORD *)(*((_DWORD *)this + 106) + 716) - *(_DWORD *)(*((_DWORD *)this + 106) + 720); v206 = *(void (__fastcall **)(int, int))(*(_DWORD *)v183 + 580); v207 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v204); if ( v205 < 0 ) v208 = "GJ_dislikesIcon_001.png"; else v208 = "GJ_likesIcon_001.png"; v209 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v207, v208); v206(v183, v209); v210 = *(void (__fastcall **)(int, char **))(*(_DWORD *)v183 + 92); v211 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v200 + 96))(v200); v212 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v200 + 164))(v200); v213 = COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v200 + 84))(v200)); v214 = (*(int (__fastcall **)(int))(*(_DWORD *)v183 + 96))(v183); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v373, (float)(v211 + (float)(v212 * v213)) + v185, *(float *)(v214 + 4)); v210(v183, &v373); GameToolbox::intToShortString((GameToolbox *)&v375, v205, 0); if ( (v375 & 1) != 0 ) v216 = v377; else v216 = (cocos2d::CCLabelBMFont *)((char *)&v375 + 1); v217 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v216, "bigFont.fnt", v215); std::string::~string((int)&v375); (*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**((_DWORD **)this + 103) + 228))( *((_DWORD *)this + 103), v217); v218 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_DWORD *)v217 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v373, 0.0, 0.5); v218(v217, &v373); v219 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_DWORD *)v217 + 92); v220 = (*(int (__fastcall **)(int))(*(_DWORD *)v183 + 96))(v183); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v344, 10.0, 0.0); cocos2d::CCPoint::operator+(&v373, v220, &v344); v219(v217, &v373); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v217 + 80))(v217, v314); cocos2d::CCLabelBMFont::limitLabelWidth(v217, 45.0, *(float *)&v314, 0.0); v221 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v217 + 96))(v217); v222 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v217 + 164))(v217); *(float *)&v223 = COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v217 + 84))(v217)); v224 = *(float *)&v223; if ( v315 ) { v225 = (GameStatsManager *)GameStatsManager::sharedState(v223); *(float *)&v223 = COERCE_FLOAT(GameStatsManager::isDailyRecall(v225, (int)v307)); if ( *(float *)&v223 == 0.0 ) { v226 = (GameStatsManager *)GameStatsManager::sharedState(nullptr); v223 = (GameStatsManager *)(GameStatsManager::hasCompletedDailyStars(v226, (int)v307) ^ 1); } } v227 = (GJGameLevel *)GameStatsManager::sharedState(v223); v228 = *((GJGameLevel **)this + 106); if ( v315 ) v229 = (char)v307; else v229 = *((_DWORD *)v228 + 186) - *((_DWORD *)v228 + 187); GameStatsManager::orbInfoForLevel((GameStatsManager *)&v373, v227, v228, v229); if ( *(_DWORD *)(*((_DWORD *)this + 106) + 772) - *(_DWORD *)(*((_DWORD *)this + 106) + 776) <= 1 ) { v231 = v221 + (float)(v222 * v224); goto LABEL_183; } v232 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"currencyOrbIcon_001.png", v230); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v232); v308 = *(GameStatsManager **)(*(_DWORD *)v232 + 92); v316 = (*(int (__fastcall **)(int))(*(_DWORD *)v183 + 96))(v183); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v343, *(float *)&v330, 0.0); cocos2d::CCPoint::operator+(&v344, v316, v343); ((void (__fastcall *)(int, float *))v308)(v232, &v344); (*(void (__fastcall **)(int, int))(*(_DWORD *)v232 + 80))(v232, v325); v309 = *(GameStatsManager **)(*(_DWORD *)v232 + 92); v233 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v217 + 96))(v217); v234 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v217 + 164))(v217); v235 = COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v217 + 84))(v217)); v236 = (*(int (__fastcall **)(int))(*(_DWORD *)v232 + 96))(v232); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v344, (float)(v233 + (float)(v234 * v235)) + v185, *(float *)(v236 + 4)); ((void (__fastcall *)(int, float *))v309)(v232, &v344); v375 = 0; v376 = 0; v377 = nullptr; if ( (int)v374 <= (int)v373 ) v237 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v374); else v237 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i/%i", v373); v238 = (char *)cocos2d::CCString::getCString(v237); std::string::assign(&v375, v238); if ( (v375 & 1) != 0 ) v239 = v377; else v239 = (cocos2d::CCLabelBMFont *)((char *)&v375 + 1); v240 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create( v239, "bigFont.fnt", (const char *)((unsigned __int8)v375 << 31)); (*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**((_DWORD **)this + 103) + 228))( *((_DWORD *)this + 103), v240); v317 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, float *))(*(_DWORD *)v240 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v344, 0.0, 0.5); v317(v240, &v344); v318 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, float *))(*(_DWORD *)v240 + 92); v241 = (*(int (__fastcall **)(int))(*(_DWORD *)v232 + 96))(v232); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v343, 10.0, 0.0); cocos2d::CCPoint::operator+(&v344, v241, v343); v318(v240, &v344); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v240 + 80))(v240, v314); if ( GameStatsManager::OrbInfo::locked((GameStatsManager::OrbInfo *)&v373) ) { v242 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, float *))(*(_DWORD *)v240 + 536); v243 = -106; LOBYTE(v344) = -106; LABEL_181: BYTE1(v344) = v243; BYTE2(v344) = v243; v242(v240, &v344); goto LABEL_182; } if ( v374 == v373 ) { v242 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, float *))(*(_DWORD *)v240 + 536); LOBYTE(v344) = 100; v243 = -1; goto LABEL_181; } LABEL_182: cocos2d::CCLabelBMFont::limitLabelWidth(v240, 45.0, *(float *)&v314, 0.0); v244 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v240 + 96))(v240); v245 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v240 + 164))(v240); v231 = v244 + (float)(v245 * (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v240 + 84))(v240)); std::string::~string((int)&v375); LABEL_183: v246 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v183 + 92); v247 = (*(int (__fastcall **)(int))(*(_DWORD *)v183 + 96))(v183); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v343, 0.0, 1.0); cocos2d::CCPoint::operator+(&v344, v247, v343); v246(v183, &v344); v248 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v10 + 96))(v10); v249 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v10 + 164))(v10); v250 = v248 + (float)(v249 * COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v10 + 84))(v10))); v251 = (*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v10 + 96))(v10); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v341, v250 + 10.0, *(float *)(v251 + 4) - 1.0); if ( *((_BYTE *)this + 448) ) { if ( *((_BYTE *)this + 429) ) { v253 = (float)(v231 + v185) - 6.0; v254 = v170 + 1.0; } else { v254 = 10.0; v253 = 16.0; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v344, v253, v254); cocos2d::CCPoint::operator=(v341, &v344); } if ( v319 ) { v255 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_completesIcon_001.png", NormalPercent); if ( !*((_BYTE *)this + 448) || *((_BYTE *)this + 429) ) { v256 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v255 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v344, 0.0, 0.5); v256(v255, &v344); } (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v255); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v255 + 92))(v255, v341); if ( *((_BYTE *)this + 448) ) v257 = 0.5; else v257 = 0.8; (*(void (__fastcall **)(int, float))(*(_DWORD *)v255 + 80))(v255, COERCE_FLOAT(LODWORD(v257))); } else if ( v310 ) { NormalPercent = (const char *)GJGameLevel::getNormalPercent(v310); if ( NormalPercent ) { v258 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i%%", NormalPercent); v259 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v258); v261 = cocos2d::CCLabelBMFont::create(v259, "goldFont.fnt", v260); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 103) + 232))(*((_DWORD *)this + 103), v261, 10); if ( *((_BYTE *)this + 448) ) v262 = 1053609165; else v262 = 1058642330; (*(void (__fastcall **)(int, int))(*(_DWORD *)v261 + 80))(v261, v262); if ( !*((_BYTE *)this + 448) || *((_BYTE *)this + 429) ) { v263 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v261 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v344, 0.0, 0.5); v263(v261, &v344); } v264 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v261 + 92); if ( *((_BYTE *)this + 448) ) v265 = 1.0; else v265 = 0.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v343, v265, 0.0); cocos2d::CCPoint::operator+(&v344, v341, v343); v264(v261, &v344); } } v266 = 1.0; v267 = v337[0]; if ( *((_BYTE *)this + 448) ) v266 = 0.8; v268 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *, const char *))(*(_DWORD *)v306 + 164))( v306, NormalPercent) * 0.5; v269 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v306 + 84))(v306); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v342, (float)(v267 + (float)(v268 * v269)) + (float)(v266 * 6.0), v337[1] - 1.0); if ( *(_DWORD *)(*((_DWORD *)this + 106) + 812) != *(_DWORD *)(*((_DWORD *)this + 106) + 816) ) { v271 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"collaborationIcon_001.png", v270); v272 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v271 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v344, 0.0, 0.5); v272(v271, &v344); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v271); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v271 + 92))(v271, v342); (*(void (__fastcall **)(int, float))(*(_DWORD *)v271 + 80))(v271, COERCE_FLOAT(LODWORD(v266))); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v343, 15.0, 0.0); cocos2d::CCPoint::operator+(&v344, v342, v343); cocos2d::CCPoint::operator=(v342, &v344); } if ( *(_DWORD *)(*((_DWORD *)this + 106) + 448) - *(_DWORD *)(*((_DWORD *)this + 106) + 452) > 40000 ) { v273 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"highObjectIcon_001.png", v270); v274 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v273 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v344, 0.0, 0.5); v274(v273, &v344); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 103) + 232))(*((_DWORD *)this + 103), v273, 10); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v273 + 92))(v273, v342); (*(void (__fastcall **)(int, float))(*(_DWORD *)v273 + 80))(v273, COERCE_FLOAT(LODWORD(v266))); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v343, v266 * 18.0, 0.0); cocos2d::CCPoint::operator+(&v344, v342, v343); cocos2d::CCPoint::operator=(v342, &v344); } std::string::~string((int)v361); return std::string::~string((int)v357); }
GD Web Decomp Icon

GD Web Decomp

Raw Source