// // DeathTrackerPopup::init from 0x775a10 to 0x776bcc (4540 bytes) // // 1 xrefs: // > DeathTrackerPopup::create @ 0x776dd2 // // 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:59:20 +0000 // int __fastcall DeathTrackerPopup::init(DeathTrackerPopup *this, GJGameLevel *a2) { char v4; // r3 int v5; // r2 char v6; // r3 int v7; // r3 char v8; // r3 int v9; // r2 int v10; // r3 cocos2d::CCDirector *v11; // r0 cocos2d::CCLayer *v12; // r0 int v13; // r0 int v14; // r3 int v15; // r5 void (__fastcall *v16)(int, void **); // r9 const char *v17; // r2 cocos2d::CCLabelBMFont *v18; // r0 cocos2d::CCLabelBMFont *v19; // r5 void (__fastcall *v20)(cocos2d::CCLabelBMFont *, void **); // r7 cocos2d::CCMenu *v21; // r0 int v22; // r0 const char *v23; // r1 int v24; // r5 int v25; // r5 void (__fastcall *v26)(int, void **); // r7 float v27; // s16 float v28; // r5 const char *v29; // r2 int v30; // r0 int v31; // r7 void (__fastcall *v32)(int, void **); // r8 cocos2d::CCNode *v33; // r0 int v34; // r0 int v35; // r7 void (__fastcall *v36)(int, void **); // r8 const char *v37; // r1 int v38; // r7 void *v39; // r10 void (__fastcall *v40)(void *, void **); // r7 const char *v41; // r1 cocos2d::CCSprite *v42; // r7 void *v43; // r9 void (__fastcall *v44)(void *, void **); // r7 const char *v45; // r1 int v46; // r6 void (__fastcall *v47)(void *, void **); // r7 const char *v48; // r1 cocos2d::CCSprite *v49; // r7 void (__fastcall *v50)(void *, void **); // r7 const char *v51; // r1 int v52; // r6 void *v53; // r7 int (__fastcall *v54)(void *, void **); // r8 cocos2d::CCNode *v55; // r0 const char *v56; // r1 unsigned int v57; // r2 _DWORD *v58; // r3 _DWORD *v59; // r3 unsigned int v60; // r2 unsigned int v61; // r2 _DWORD *v62; // r3 unsigned int v63; // r2 _DWORD *v64; // r3 _DWORD *v65; // r3 unsigned int v66; // r2 int v67; // r5 void (__fastcall *v68)(int, void **); // r7 float v69; // s15 float v70; // r1 float v71; // s16 float v72; // s15 int v73; // r5 void (__fastcall *v74)(int, void **); // r3 void (__fastcall *v75)(int, void **); // r10 int v76; // r5 void (__fastcall *v77)(int, void **); // r6 void (__fastcall *v78)(int, void **); // r3 int v79; // r1 int v80; // r2 int v81; // r3 int *v82; // r0 float v83; // s13 int *v84; // r5 void (__fastcall *v85)(int *, void **); // r6 cocos2d::CCNode *v86; // r0 int v87; // r0 int v88; // r6 void (__fastcall *v89)(int, void **); // r7 float v90; // s16 _DWORD *v91; // r0 float v92; // s13 _DWORD *v93; // r6 void (__fastcall *v94)(_DWORD *, void **); // r7 const char *v95; // r2 int v96; // r3 char *v97; // r0 int v98; // r0 int v99; // r6 void (__fastcall *v100)(int, void **); // r7 int v101; // r0 int v102; // r6 void (__fastcall *v103)(int, void **); // r7 float v104; // s17 float v105; // r0 int v106; // r0 void (__fastcall *v107)(int, void **); // r3 int v108; // r6 void (__fastcall *v109)(int, void **); // r7 _DWORD *v110; // r0 _DWORD *v111; // r6 void (__fastcall *v112)(_DWORD *, void **); // r7 int v113; // r3 float v114; // s19 float v115; // s17 int v116; // r2 char *v117; // r10 char *v118; // r6 int v119; // r5 float v120; // s18 float v121; // s16 float v122; // s26 int v123; // r7 void (__fastcall *v124)(int, void **); // r9 void (__fastcall *v125)(int, void **); // r3 void (__fastcall *v126)(int, void **); // r9 const char *v127; // r1 int i; // r7 int v129; // r5 int v130; // r5 void (__fastcall *v131)(int, void **); // r6 int v132; // r8 void (__fastcall *v133)(int, void **); // r5 int v134; // r1 int v135; // r2 int v136; // r2 int v137; // r5 int v138; // r8 int NormalPercent; // r0 char *v141; // r0 int v142; // r7 int v143; // r7 int (__fastcall *v144)(int, void **); // r8 char *v145; // r8 void (__fastcall *v146)(char *, _DWORD); // r9 int v147; // r0 int v148; // r8 _DWORD *v149; // r3 _DWORD *v150; // r6 int v151; // r6 int v152; // r2 unsigned int v153; // r1 unsigned int v154; // r3 unsigned int v155; // r3 void *v156; // [sp+Ch] [bp-F0h] int v157; // [sp+Ch] [bp-F0h] void *v158; // [sp+10h] [bp-ECh] cocos2d::CCPoint *v159; // [sp+14h] [bp-E8h] int v160; // [sp+18h] [bp-E4h] int v161; // [sp+1Ch] [bp-E0h] float v162[2]; // [sp+28h] [bp-D4h] BYREF float v163; // [sp+30h] [bp-CCh] BYREF float v164; // [sp+34h] [bp-C8h] int (__fastcall *v165)(DeathTrackerPopup *, cocos2d::CCObject *); // [sp+38h] [bp-C4h] int v166; // [sp+3Ch] [bp-C0h] char **(__fastcall *v167)(DeathTrackerPopup *, cocos2d::CCObject *); // [sp+40h] [bp-BCh] int v168; // [sp+44h] [bp-B8h] char **(__fastcall *v169)(DeathTrackerPopup *, cocos2d::CCObject *); // [sp+48h] [bp-B4h] int v170; // [sp+4Ch] [bp-B0h] char **(__fastcall *v171)(char **, cocos2d::CCObject *); // [sp+50h] [bp-ACh] int v172; // [sp+54h] [bp-A8h] char **(__fastcall *v173)(char **, cocos2d::CCObject *); // [sp+58h] [bp-A4h] int v174; // [sp+5Ch] [bp-A0h] int (__fastcall *v175)(int, cocos2d::CCObject *); // [sp+60h] [bp-9Ch] int v176; // [sp+64h] [bp-98h] char **(__fastcall *v177)(DeathTrackerPopup *, cocos2d::CCObject *); // [sp+68h] [bp-94h] int v178; // [sp+6Ch] [bp-90h] char **(__fastcall *v179)(DeathTrackerPopup *, cocos2d::CCObject *); // [sp+70h] [bp-8Ch] int v180; // [sp+74h] [bp-88h] int (__fastcall *v181)(DeathTrackerOptionsPopup **, cocos2d::CCObject *, DeathTrackerPopup *); // [sp+78h] [bp-84h] int v182; // [sp+7Ch] [bp-80h] char *v183; // [sp+80h] [bp-7Ch] BYREF int v184; // [sp+84h] [bp-78h] int v185; // [sp+88h] [bp-74h] int v186[2]; // [sp+8Ch] [bp-70h] BYREF cocos2d::CCLabelBMFont *v187; // [sp+94h] [bp-68h] _DWORD v188[3]; // [sp+98h] [bp-64h] int v189[3]; // [sp+A4h] [bp-58h] BYREF int v190[3]; // [sp+B0h] [bp-4Ch] BYREF int *v191; // [sp+BCh] [bp-40h] BYREF _DWORD *v192; // [sp+C0h] [bp-3Ch] _DWORD *v193; // [sp+C4h] [bp-38h] char *v194; // [sp+C8h] [bp-34h] BYREF _DWORD *v195; // [sp+CCh] [bp-30h] _DWORD *v196; // [sp+D0h] [bp-2Ch] char *v197; // [sp+D4h] [bp-28h] BYREF char *v198; // [sp+D8h] [bp-24h] unsigned int v199; // [sp+DCh] [bp-20h] BYREF void *v200[2]; // [sp+E0h] [bp-1Ch] BYREF char *v201; // [sp+E8h] [bp-14h] v200[0] = (void *)-1778384896; v160 = cocos2d::CCLayerColor::initWithColor(this, v200); if ( !v160 ) return v160; *((_DWORD *)this + 132) = a2; DeathTrackerPopup::parseGlobal((void **)this); v183 = nullptr; v184 = 0; v185 = 0; *((_DWORD *)this + 140) = dword_D1E2C0; *((_BYTE *)this + 564) = byte_D2E148; *((_DWORD *)this + 143) = dword_D2E14C; v4 = byte_D2E158; *((_BYTE *)this + 576) = byte_D2E150; *((_BYTE *)this + 697) = v4; *((_BYTE *)this + 706) = byte_D1E2C4; if ( a2 ) GJGameLevel::dtExpandOrder((unsigned __int8 *)a2 + 1216, (int)&v183); v5 = *((unsigned __int8 *)this + 696); if ( *((_BYTE *)this + 696) ) v6 = v184 - (int)v183 <= 11; else v6 = *((_BYTE *)this + 696); *((_BYTE *)this + 664) = v6; if ( !a2 ) { if ( v5 ) goto LABEL_12; goto LABEL_11; } if ( *((_DWORD *)a2 + 67) - *((_DWORD *)a2 + 68) == dword_D2E154 ) *((_BYTE *)this + 664) = byte_D1E2C5; if ( !v5 ) { LABEL_11: *((_BYTE *)this + 664) = 0; if ( !a2 ) goto LABEL_12; } if ( *((_DWORD *)a2 + 238) == 2 ) { *((_BYTE *)this + 664) = 0; v7 = 1; goto LABEL_13; } LABEL_12: v7 = 0; LABEL_13: v161 = v7; *((_DWORD *)this + 175) = *((_DWORD *)this + 140); if ( *((_BYTE *)this + 664) ) *((_DWORD *)this + 140) = 0; if ( a2 && (NormalPercent = GJGameLevel::getNormalPercent(a2), *((_DWORD *)a2 + 67) - *((_DWORD *)a2 + 68) == dword_D2E15C) && NormalPercent > dword_D1E2C8 ) { v8 = v160; } else { v8 = 0; } v9 = *(_DWORD *)this; *((_BYTE *)this + 704) = v8; *((_BYTE *)this + 705) = 1; (*(void (__fastcall **)(DeathTrackerPopup *, int))(v9 + 584))(this, 150); FLAlertLayer::incrementForcePrio(this); v10 = *(_DWORD *)this; *((_BYTE *)this + 468) = 1; (*(void (__fastcall **)(DeathTrackerPopup *, int))(v10 + 500))(this, 1); v11 = (cocos2d::CCDirector *)(*(int (__fastcall **)(DeathTrackerPopup *, int))(*(_DWORD *)this + 536))(this, 1); cocos2d::CCDirector::sharedDirector(v11); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v162); v12 = (cocos2d::CCLayer *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v163, v162[0] * 0.5, v162[1] * 0.5); v13 = cocos2d::CCLayer::create(v12); v14 = *(_DWORD *)this; *((_DWORD *)this + 115) = v13; (*(void (__fastcall **)(DeathTrackerPopup *, int))(v14 + 228))(this, v13); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v200, 0.0, 0.0, 80.0, 80.0); v15 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v200); v16 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v15 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v200, 380.0, 280.0); v16(v15, v200); (*(void (__fastcall **)(int, float *))(*(_DWORD *)v15 + 92))(v15, &v163); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v15, -2); if ( a2 ) { std::string::basic_string(v186, (int)a2 + 280); } else { v186[0] = 0; v186[1] = 0; v187 = nullptr; std::string::__init(v186, "Death Tracker", 0xDu); } if ( (v186[0] & 1) != 0 ) v18 = v187; else v18 = (cocos2d::CCLabelBMFont *)((char *)v186 + 1); v19 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v18, "bigFont.fnt", v17); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v19 + 80))(v19, 1058642330); cocos2d::CCLabelBMFont::limitLabelWidth(v19, 310.0, 0.6, 0.3); v20 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_DWORD *)v19 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v200, v163, (float)(v164 + 140.0) - 18.0); v20(v19, v200); v21 = (cocos2d::CCMenu *)(*(int (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**((_DWORD **)this + 115) + 228))( *((_DWORD *)this + 115), v19); v22 = cocos2d::CCMenu::create(v21); *((_DWORD *)this + 111) = v22; (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v22, 10); (*(void (__fastcall **)(_DWORD, void *))(**((_DWORD **)this + 111) + 92))(*((_DWORD *)this + 111), &unk_D2E140); *((_DWORD *)this + 125) = -1; v24 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v23); (*(void (__fastcall **)(int, int))(*(_DWORD *)v24 + 80))(v24, 1061326684); v166 = 0; v165 = DeathTrackerPopup::onClose; v25 = CCMenuItemSpriteExtra::create(v24, 0, (int)this, (int)DeathTrackerPopup::onClose, 0); CCMenuItemSpriteExtra::setSizeMult(v25, 1.5); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v25); v26 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v25 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v200, (float)(v163 - 190.0) + 4.0, (float)(v164 + 140.0) - 8.0); v26(v25, v200); v27 = v164 + 140.0; v28 = (float)(v164 + 140.0) - 42.0; v30 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&unk_B6B226, "goldFont.fnt", v29); *((_DWORD *)this + 148) = v30; (*(void (__fastcall **)(int, int))(*(_DWORD *)v30 + 80))(v30, 1056964608); v31 = *((_DWORD *)this + 148); v32 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v31 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v200, v163, v27 - 42.0); v32(v31, v200); v33 = (cocos2d::CCNode *)(*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 115) + 228))( *((_DWORD *)this + 115), *((_DWORD *)this + 148)); v34 = cocos2d::CCNode::create(v33); *((_DWORD *)this + 150) = v34; v35 = v34; v36 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v34 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v200, v163, v27 - 42.0); v36(v35, v200); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 115) + 228))( *((_DWORD *)this + 115), *((_DWORD *)this + 150)); v38 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v37); (*(void (__fastcall **)(int, int))(*(_DWORD *)v38 + 80))(v38, 1055286886); v168 = 0; v167 = DeathTrackerPopup::onPrevSession; v39 = (void *)CCMenuItemSpriteExtra::create(v38, 0, (int)this, (int)DeathTrackerPopup::onPrevSession, 0); CCMenuItemSpriteExtra::setSizeMult((int)v39, 1.5); (*(void (__fastcall **)(_DWORD, void *))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v39); v40 = *(void (__fastcall **)(void *, void **))(*(_DWORD *)v39 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v200, v163 - 106.0, v28); v40(v39, v200); v42 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_01_001.png", v41); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v42 + 80))(v42, 1055286886); cocos2d::CCSprite::setFlipX(v42, 1); v170 = 0; v169 = DeathTrackerPopup::onNextSession; v43 = (void *)CCMenuItemSpriteExtra::create((int)v42, 0, (int)this, (int)DeathTrackerPopup::onNextSession, 0); CCMenuItemSpriteExtra::setSizeMult((int)v43, 1.5); (*(void (__fastcall **)(_DWORD, void *))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v43); v44 = *(void (__fastcall **)(void *, void **))(*(_DWORD *)v43 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v200, v163 + 106.0, v28); v44(v43, v200); v46 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_03_001.png", v45); (*(void (__fastcall **)(int, int))(*(_DWORD *)v46 + 80))(v46, 1055286886); v172 = 0; v171 = DeathTrackerPopup::onJumpSummary; v156 = (void *)CCMenuItemSpriteExtra::create(v46, 0, (int)this, (int)DeathTrackerPopup::onJumpSummary, 0); CCMenuItemSpriteExtra::setSizeMult((int)v156, 1.5); (*(void (__fastcall **)(_DWORD, void *))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v156); v47 = *(void (__fastcall **)(void *, void **))(*(_DWORD *)v156 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v200, v163 - 136.0, v28); v47(v156, v200); v49 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_03_001.png", v48); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v49 + 80))(v49, 1055286886); cocos2d::CCSprite::setFlipX(v49, 1); v174 = 0; v173 = DeathTrackerPopup::onJumpCurrent; v158 = (void *)CCMenuItemSpriteExtra::create((int)v49, 0, (int)this, (int)DeathTrackerPopup::onJumpCurrent, 0); CCMenuItemSpriteExtra::setSizeMult((int)v158, 1.5); (*(void (__fastcall **)(_DWORD, void *))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v158); v50 = *(void (__fastcall **)(void *, void **))(*(_DWORD *)v158 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v200, v163 + 136.0, v28); v50(v158, v200); v52 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"dtrackBtn_search_001.png", v51); (*(void (__fastcall **)(int, int))(*(_DWORD *)v52 + 80))(v52, 1061997773); v176 = 0; v175 = DeathTrackerPopup::onJumpSession; v53 = (void *)CCMenuItemSpriteExtra::create(v52, 0, (int)this, (int)DeathTrackerPopup::onJumpSession, 0); CCMenuItemSpriteExtra::setSizeMult((int)v53, 1.5); (*(void (__fastcall **)(_DWORD, void *))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v53); v54 = *(int (__fastcall **)(void *, void **))(*(_DWORD *)v53 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v200, v163 + 168.0, v28); v55 = (cocos2d::CCNode *)v54(v53, v200); v57 = *((_DWORD *)this + 182); *((_DWORD *)this + 168) = v53; v200[0] = v39; v58 = *((_DWORD **)this + 181); if ( (unsigned int)v58 >= v57 ) { std::vector::__push_back_slow_path((int)this + 720, v200); } else { if ( v58 ) *v58 = v39; *((_DWORD *)this + 181) += 4; } v59 = *((_DWORD **)this + 181); v60 = *((_DWORD *)this + 182); v200[0] = v43; if ( (unsigned int)v59 >= v60 ) { std::vector::__push_back_slow_path((int)this + 720, v200); } else { if ( v59 ) *v59 = v43; *((_DWORD *)this + 181) += 4; } v61 = *((_DWORD *)this + 182); v200[0] = v156; v62 = *((_DWORD **)this + 181); if ( (unsigned int)v62 >= v61 ) { std::vector::__push_back_slow_path((int)this + 720, v200); } else { if ( v62 ) *v62 = v156; *((_DWORD *)this + 181) += 4; } v63 = *((_DWORD *)this + 182); v200[0] = v158; v64 = *((_DWORD **)this + 181); if ( (unsigned int)v64 >= v63 ) { std::vector::__push_back_slow_path((int)this + 720, v200); } else { if ( v64 ) *v64 = v158; *((_DWORD *)this + 181) += 4; } v65 = *((_DWORD **)this + 181); v66 = *((_DWORD *)this + 182); v200[0] = v53; if ( (unsigned int)v65 >= v66 ) { std::vector::__push_back_slow_path((int)this + 720, v200); } else { if ( v65 ) *v65 = v53; *((_DWORD *)this + 181) += 4; } if ( !v161 ) { if ( *((_BYTE *)this + 664) ) v141 = "dtrackBtn_local_001.png"; else v141 = "dtrackBtn_global_001.png"; v142 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v141, v56); (*(void (__fastcall **)(int, int))(*(_DWORD *)v142 + 80))(v142, 1061997773); *((_DWORD *)this + 167) = v142; v178 = 0; v177 = DeathTrackerPopup::onToggleGlobal; v143 = CCMenuItemSpriteExtra::create(v142, 0, (int)this, (int)DeathTrackerPopup::onToggleGlobal, 0); CCMenuItemSpriteExtra::setSizeMult(v143, 1.5); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v143); v144 = *(int (__fastcall **)(int, void **))(*(_DWORD *)v143 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v200, v163 - 168.0, v28); v55 = (cocos2d::CCNode *)v144(v143, v200); } v67 = cocos2d::CCNode::create(v55); *((_DWORD *)this + 149) = v67; v68 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v67 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v200, v163, (float)(v164 + 140.0) - 62.0); v68(v67, v200); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 115) + 228))( *((_DWORD *)this + 115), *((_DWORD *)this + 149)); v69 = v164; v70 = v163; *((_DWORD *)this + 134) = 1135542272; v71 = (float)(v69 + 140.0) - 74.0; v72 = (float)(v69 - 140.0) + 58.0; *((float *)this + 135) = v71 - v72; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v200, v70, (float)(v71 + v72) * 0.5); cocos2d::CCPoint::operator=((char *)this + 544, v200); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v200, 0.0, 0.0, 80.0, 80.0); v73 = cocos2d::extension::CCScale9Sprite::create("GJ_square06.png", v200); v74 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v73 + 480); qmemcpy(v200, "h:#", 3); v74(v73, v200); v75 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v73 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v200, *((float *)this + 134), *((float *)this + 135)); v75(v73, v200); (*(void (__fastcall **)(int, char *))(*(_DWORD *)v73 + 92))(v73, (char *)this + 544); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v73, -1); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v200, 0.0, 0.0, 80.0, 80.0); v76 = cocos2d::extension::CCScale9Sprite::create("GJ_square07.png", v200); v77 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v76 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v200, *((float *)this + 134), *((float *)this + 135)); v77(v76, v200); (*(void (__fastcall **)(int, char *))(*(_DWORD *)v76 + 92))(v76, (char *)this + 544); v78 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v76 + 480); LOWORD(v200[0]) = -21761; BYTE2(v200[0]) = 85; v78(v76, v200); (*(void (__fastcall **)(int, int))(*(_DWORD *)v76 + 456))(v76, 100); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v76, 6); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v200, *((float *)this + 134), *((float *)this + 135)); v82 = ScrollableContentLayer::create((const cocos2d::CCSize *)v200, v79, v80, v81); v83 = *((float *)this + 134); v84 = v82; *((_DWORD *)this + 133) = v82; v85 = *(void (__fastcall **)(int *, void **))(*v82 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v200, *((float *)this + 136) - (float)(v83 * 0.5), *((float *)this + 137) - (float)(*((float *)this + 135) * 0.5)); v85(v84, v200); ScrollableContentLayer::setThumbOpacity(*((ScrollableContentLayer **)this + 133), 0); v86 = (cocos2d::CCNode *)(*(int (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), *((_DWORD *)this + 133), 1); v87 = cocos2d::CCNode::create(v86); *((_DWORD *)this + 151) = v87; v88 = v87; v89 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v87 + 92); v90 = v71 - 11.0; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v200, *((float *)this + 136) - (float)(*((float *)this + 134) * 0.5), v90); v89(v88, v200); (*(void (__fastcall **)(_DWORD, bool))(**((_DWORD **)this + 151) + 172))( *((_DWORD *)this + 151), *((_DWORD *)this + 140) == 1); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), *((_DWORD *)this + 151), 5); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v200, *((float *)this + 134), *((float *)this + 135)); v91 = DeathHistogram::create((const cocos2d::CCSize *)v200); v92 = *((float *)this + 134); v93 = v91; *((_DWORD *)this + 138) = v91; v94 = *(void (__fastcall **)(_DWORD *, void **))(*v91 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v200, *((float *)this + 136) - (float)(v92 * 0.5), *((float *)this + 137) - (float)(*((float *)this + 135) * 0.5)); v94(v93, v200); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), *((_DWORD *)this + 138), 1); v96 = *((_DWORD *)this + 140); if ( v96 ) { if ( v96 == 1 ) { v97 = "Death List"; } else if ( v96 == 2 ) { v97 = "Death History"; } else { v97 = "Progression"; } } else { v97 = "Death Distribution"; } v98 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v97, "goldFont.fnt", v95); *((_DWORD *)this + 152) = v98; (*(void (__fastcall **)(int, int))(*(_DWORD *)v98 + 80))(v98, 1053609165); v99 = *((_DWORD *)this + 152); v100 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v99 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v200, v163, v90); v100(v99, v200); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v200, 0.0, 0.0, 40.0, 40.0); v101 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v200); *((_DWORD *)this + 153) = v101; v102 = v101; v103 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v101 + 160); v104 = *(float *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 152) + 164))(*((_DWORD *)this + 152)); v105 = (*(float (__fastcall **)(_DWORD))(**((_DWORD **)this + 152) + 84))(*((_DWORD *)this + 152)); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v200, (float)(v104 * v105) + 22.0, 18.0); v103(v102, v200); v106 = *((_DWORD *)this + 153); v107 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v106 + 480); LOWORD(v200[0]) = 6189; BYTE2(v200[0]) = 14; v107(v106, v200); v108 = *((_DWORD *)this + 153); v109 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v108 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v200, v163, v90); v109(v108, v200); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), *((_DWORD *)this + 153), 5); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), *((_DWORD *)this + 152), 5); (*(void (__fastcall **)(_DWORD, bool))(**((_DWORD **)this + 153) + 172))( *((_DWORD *)this + 153), *((_DWORD *)this + 140) != 1); (*(void (__fastcall **)(_DWORD, bool))(**((_DWORD **)this + 152) + 172))( *((_DWORD *)this + 152), *((_DWORD *)this + 140) != 1); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v200, *((float *)this + 134), *((float *)this + 135)); v110 = DeathHistogram::create((const cocos2d::CCSize *)v200); *((_DWORD *)this + 139) = v110; v111 = v110; v112 = *(void (__fastcall **)(_DWORD *, void **))(*v110 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v200, *((float *)this + 136) - (float)(*((float *)this + 134) * 0.5), *((float *)this + 137) - (float)(*((float *)this + 135) * 0.5)); v112(v111, v200); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), *((_DWORD *)this + 139), 1); v113 = 0; v114 = 0.0; v188[0] = 4; v188[1] = 3; v188[2] = 2; v115 = (float)(v164 - 140.0) + 30.0; do { v116 = v188[v113++]; v114 = v114 + (float)((float)((float)v116 * 32.0) + 10.0); } while ( v113 != 3 ); v117 = (char *)this + 648; v118 = (char *)this + 616; v119 = 0; v120 = (float)(v163 - 190.0) + 10.0; v121 = (float)((float)((float)((float)(v163 + 190.0) - 38.0) - v120) - v114) * 0.5; do { v122 = (float)((float)(int)v188[v119] * 32.0) + 10.0; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v200, 0.0, 0.0, 80.0, 80.0); v123 = cocos2d::extension::CCScale9Sprite::create("GJ_square06.png", v200); v124 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v123 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v200, v122 * 1.5, 60.0); v124(v123, v200); (*(void (__fastcall **)(int, int))(*(_DWORD *)v123 + 80))(v123, 1059760811); v125 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v123 + 480); qmemcpy(v200, "h:#", 3); v125(v123, v200); (*(void (__fastcall **)(int, int))(*(_DWORD *)v123 + 456))(v123, 128); v126 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v123 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v200, v120 + (float)(v122 * 0.5), v115); v126(v123, v200); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v123); *((_DWORD *)v117 + 1) = v123; v117 += 4; v157 = 10 * v119; for ( i = 10 * v119; i - v157 < v188[v119]; ++i ) { v197 = (char *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)*(&off_C74D48[i] - 6 * v119), v127); v145 = v197; v146 = *(void (__fastcall **)(char *, _DWORD))(*(_DWORD *)v197 + 80); v147 = (*(int (__fastcall **)(char *))(*(_DWORD *)v197 + 164))(v197); v146(v145, 30.0 / *(float *)(v147 + 4)); v180 = 0; v179 = DeathTrackerPopup::onPanelButton; v148 = CCMenuItemSpriteExtra::create((int)v197, 0, (int)this, (int)DeathTrackerPopup::onPanelButton, 0); (*(void (__fastcall **)(int, int))(*(_DWORD *)v148 + 36))(v148, i); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v148); v159 = *(cocos2d::CCPoint **)(*(_DWORD *)v148 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v200, (float)((float)(v120 + 5.0) + (float)((float)(i - v157) * 32.0)) + 16.0, v115); ((void (__fastcall *)(int, void **))v159)(v148, v200); v149 = *((_DWORD **)v118 + 1); if ( v149 == *((_DWORD **)v118 + 2) ) { std::vector::__push_back_slow_path((int)v118, &v197); } else { if ( v149 ) *v149 = v197; *((_DWORD *)v118 + 1) += 4; } } ++v119; v118 += 12; v120 = v120 + (float)(v122 + v121); } while ( v119 != 3 ); v129 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_optionsBtn02_001.png", v127); (*(void (__fastcall **)(int, int))(*(_DWORD *)v129 + 80))(v129, 1059481190); v182 = 0; v181 = DeathTrackerPopup::onOptions; v130 = CCMenuItemSpriteExtra::create(v129, 0, (int)this, (int)DeathTrackerPopup::onOptions, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v130); v131 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v130 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v200, (float)(v163 + 190.0) - 20.0, v115); v131(v130, v200); memset(v189, 0, sizeof(v189)); std::string::__init(v189, "Death Tracker", 0xDu); memset(v190, 0, sizeof(v190)); std::string::__init( v190, "Deaths are grouped into sessions.\n" "A new session starts after 30+ minutes away.\n" "Rate shows how deadly a spot is.\n" "Of the runs that reached it, the percent that died there.\n" "The 100 column counts completions.\n" "Startpos runs are tracked separately from full runs.\n" "Practice attempts and runs using cheats are not tracked.", 0x162u); v132 = InfoAlertButton::create((char *)v189, (int)v190, 1065353216); std::string::~string((int)v190); std::string::~string((int)v189); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v132); v133 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v132 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v200, (float)(v163 + 190.0) - 8.0, (float)(v164 + 140.0) - 8.0); v133(v132, v200); DeathTrackerPopup::parseSessions(this, v134, v135); DeathTrackerPopup::setView(this, *((_DWORD *)this + 140)); DeathTrackerPopup::refreshView(this); v136 = *((_DWORD *)this + 145); v191 = nullptr; v192 = nullptr; v193 = nullptr; v194 = nullptr; v195 = nullptr; v196 = nullptr; v197 = nullptr; v198 = nullptr; v199 = 0; v137 = 954437177 * ((*((_DWORD *)this + 146) - v136) >> 2) - 1; v138 = 36 * v137; while ( v137 >= 0 ) { v150 = (_DWORD *)(*((_DWORD *)this + 145) + v138); if ( v192 == v193 ) { std::vector::__push_back_slow_path((int)&v191, v150 + 8); } else { if ( v192 ) *v192 = v150[8]; ++v192; } if ( v195 == v196 ) { std::vector::__push_back_slow_path((int)&v194, v150); } else { if ( v195 ) *v195 = *v150; ++v195; } v151 = 954437177 * ((*((_DWORD *)this + 146) - *((_DWORD *)this + 145)) >> 2) - v137; if ( (unsigned int)v198 >= v199 ) { v152 = (v198 - v197) >> 2; v153 = v152 + 1; if ( (unsigned int)(v152 + 1) >= 0x40000000 ) sub_38AD98(); v154 = (int)(v199 - (_DWORD)v197) >> 2; if ( v154 > 0x1FFFFFFE ) { v153 = 0x3FFFFFFF; } else { v155 = 2 * v154; if ( v153 < v155 ) v153 = v155; } std::__split_buffer::__split_buffer(v200, v153, v152, (int)&v199); if ( v201 ) *(_DWORD *)v201 = v151; v201 += 4; std::vector::__swap_out_circular_buffer((int)&v197, v200); v201 -= 4 * ((unsigned int)(v201 - (char *)v200[1]) >> 2); if ( v200[0] ) operator delete(v200[0]); } else { if ( v198 ) *(_DWORD *)v198 = v151; v198 += 4; } --v137; v138 -= 36; } DeathHistogram::setProgression(*((_DWORD *)this + 139), &v191, (int *)&v194, &v197); std::__vector_base::~__vector_base(&v197); std::__vector_base::~__vector_base(&v194); std::__vector_base::~__vector_base((char **)&v191); std::string::~string((int)v186); std::__vector_base::~__vector_base(&v183); return v160; }
GD Web Decomp Icon

GD Web Decomp

Raw Source