// // DeathTrackerOptionsPopup::init from 0xca8cac to 0xca90ac (1024 bytes) // // 2 xrefs: // > DeathTrackerOptionsPopup::create @ 0xca92fc // > @ 0xdf9f0 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:06:04 +0000 // __int64 __fastcall DeathTrackerOptionsPopup::init(cocos2d::CCNode **this, GJGameLevel *a2, DeathTrackerPopup *a3) { cocos2d::CCDirector *v6; // x0 unsigned int v7; // w24 cocos2d::CCDirector *v9; // x0 float v10; // s8 float v11; // s10 float v12; // s9 const char *v13; // x1 __int64 v14; // x20 __int64 v15; // x23 cocos2d::CCNode *v16; // x26 void (__fastcall *v17)(__int64, __int64 *); // x25 float v18; // s9 const char *v19; // x1 __int64 v20; // x23 const char *v21; // x1 __int64 v22; // x0 CCMenuItemToggler *v23; // x23 GameManager *v24; // x0 GameManager *v25; // x0 char GameVariable; // w0 cocos2d::CCNode *v27; // x26 void (__fastcall *v28)(CCMenuItemToggler *, __int64 *); // x25 const char *v29; // x2 __int64 v30; // x23 void (__fastcall *v31)(__int64, __int64 *); // x25 void (__fastcall *v32)(__int64, __int64 *); // x25 const char *v33; // x6 __int64 v34; // x0 __int64 v35; // x23 cocos2d::CCNode *v36; // x25 void (__fastcall *v37)(__int64, __int64 *); // x19 __int64 v38; // [xsp+98h] [xbp+98h] BYREF _BYTE v39[8]; // [xsp+A0h] [xbp+A0h] BYREF __int64 v40; // [xsp+A8h] [xbp+A8h] BYREF __int64 v41[2]; // [xsp+B0h] [xbp+B0h] BYREF void *v42; // [xsp+C0h] [xbp+C0h] v6 = (cocos2d::CCDirector *)(unsigned __int8)SetupTriggerPopup::init( (SetupTriggerPopup *)this, nullptr, nullptr, 320.0, 150.0, 1u, 0.0); v7 = (unsigned __int8)v6; if ( (_BYTE)v6 ) { *(this + 128) = a2; *(this + 129) = a3; v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(&v38, v9); v41[0] = 0; v10 = *((float *)&v38 + 1) * 0.5; v41[1] = 0; v11 = *(float *)&v38 * 0.5; v42 = nullptr; std::string::__init(v41, "Death Tracker", 0xDu); v12 = v10 + 75.0; SetupTriggerPopup::addTitle((__int64)this, (__int64)v41); if ( (v41[0] & 1) != 0 ) operator delete(v42); v14 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v13); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v14 + 160LL))(v14, 0.8); v15 = CCMenuItemSpriteExtra::create(v14, 0, (__int64)this, 1368, 1); CCMenuItemSpriteExtra::setSizeMult(v15, 1.5); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v15); v16 = *(this + 69); v17 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v15 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v39, (float)(v11 - 160.0) + 8.0, v12 - 12.0); cocos2d::CCNode::convertToNodeSpace(&v40, v16, (const cocos2d::CCPoint *)v39); v17(v15, &v40); v18 = v12 - 56.0; v20 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOff_001.png", v19); v22 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOn_001.png", v21); v23 = (CCMenuItemToggler *)CCMenuItemToggler::create( v20, v22, (__int64)this, (__int64)DeathTrackerOptionsPopup::onToggleAutoScroll, 0); v24 = (GameManager *)(*(__int64 (__fastcall **)(CCMenuItemToggler *, float))(*(_QWORD *)v23 + 160LL))(v23, 0.7); v25 = (GameManager *)GameManager::sharedState(v24); GameVariable = GameManager::getGameVariable(v25, "0199"); CCMenuItemToggler::toggle(v23, GameVariable ^ 1); (*(void (__fastcall **)(_QWORD, CCMenuItemToggler *))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v23); v27 = *(this + 69); v28 = *(void (__fastcall **)(CCMenuItemToggler *, __int64 *))(*(_QWORD *)v23 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v39, v11 - 120.0, v18); cocos2d::CCNode::convertToNodeSpace(&v40, v27, (const cocos2d::CCPoint *)v39); v28(v23, &v40); v30 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Auto-Scroll To Cluster", "bigFont.fnt", v29); v31 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v30 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v40, 0.0, 0.5); v31(v30, &v40); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v30 + 160LL))(v30, 0.5); v32 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v30 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v40, (float)(v11 - 120.0) + 18.0, v18); v32(v30, &v40); (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v30, 1); v34 = ButtonSprite::create( (ButtonSprite *)"Clear Data", (const char *)&qword_60 + 4, 0, 1, 0.6, "bigFont.fnt", "GJ_button_06.png", v33, 30.0); v35 = CCMenuItemSpriteExtra::create(v34, 0, (__int64)this, (__int64)DeathTrackerOptionsPopup::onClearData, 0); CCMenuItemSpriteExtra::setSizeMult(v35, 1.1); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v35); v36 = *(this + 69); v37 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v35 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v39, v11, (float)(v10 - 75.0) + 26.0); cocos2d::CCNode::convertToNodeSpace(&v40, v36, (const cocos2d::CCPoint *)v39); v37(v35, &v40); } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source