// // DeathMarkerSettingsPopup::init from 0x76e11c to 0x76ecea (3022 bytes) // // 1 xrefs: // > DeathMarkerSettingsPopup::create @ 0x76ef80 // // 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:14 +0000 // GameManager *__fastcall DeathMarkerSettingsPopup::init(Slider **this, GJGameLevel *a2) { GameManager *v4; // r0 float v5; // s17 float v6; // s16 const char *v7; // r1 int v8; // r6 int v9; // r6 const cocos2d::CCPoint *v10; // r9 void (__fastcall *v11)(int, _DWORD *); // r8 GameManager *v12; // r0 GameManager *v13; // r0 char *v14; // r1 int v15; // r9 const cocos2d::CCPoint *v16; // r11 void (__fastcall *v17)(int, _DWORD *); // r8 float v18; // s19 const char *v19; // r2 int v20; // r8 void (__fastcall *v21)(int, _DWORD *); // r9 void (__fastcall *v22)(int, _DWORD *); // r9 int v23; // r8 const cocos2d::CCPoint *v24; // r11 void (__fastcall *v25)(int, _DWORD *); // r9 const char *v26; // r2 Slider *v27; // r0 int v28; // r8 void (__fastcall *v29)(int, _DWORD *); // r9 int v30; // r8 void (__fastcall *v31)(int, _DWORD *); // r9 Slider *v32; // r0 int v33; // r8 int (__fastcall *v34)(int, _DWORD *); // r9 GameManager *v35; // r0 GameManager *v36; // r0 int IntGameVariable; // r0 int v38; // r8 const char *v39; // r2 int v40; // r8 void (__fastcall *v41)(int, _DWORD *); // r9 void (__fastcall *v42)(int, _DWORD *); // r9 int v43; // r9 const cocos2d::CCPoint *v44; // r11 void (__fastcall *v45)(int, _DWORD *); // r10 const char *v46; // r2 Slider *v47; // r0 int v48; // r9 void (__fastcall *v49)(int, _DWORD *); // r10 int v50; // r9 void (__fastcall *v51)(int, _DWORD *); // r10 Slider *v52; // r0 int v53; // r7 int (__fastcall *v54)(int, _DWORD *); // r8 GameManager *v55; // r0 GameManager *v56; // r0 int v57; // r0 const char *v58; // r7 int *v59; // r11 const char *v60; // r1 int v61; // r7 const char *v62; // r1 int v63; // r0 cocos2d::CCNodeRGBA *v64; // r7 GameManager *v65; // r0 GameManager *v66; // r0 int GameVariable; // r0 float v68; // s19 void (__fastcall *v69)(cocos2d::CCNodeRGBA *, _DWORD *); // r9 float v70; // s18 cocos2d::CCLabelBMFont *v71; // r8 const char *v72; // r2 int v73; // r7 void (__fastcall *v74)(int, _DWORD *); // r9 void (__fastcall *v75)(int, _DWORD *); // r9 size_t v76; // r0 const char *v77; // r1 size_t v78; // r0 int v79; // r9 ButtonSprite *v80; // r9 int v81; // r5 const cocos2d::CCPoint *v82; // r9 void (__fastcall *v83)(int, _BYTE *); // r8 int v85; // [sp+10h] [bp-1CCh] GameManager *v86; // [sp+14h] [bp-1C8h] cocos2d::CCPoint *v87; // [sp+18h] [bp-1C4h] cocos2d::CCPoint *v88; // [sp+18h] [bp-1C4h] cocos2d::CCPoint *v89; // [sp+18h] [bp-1C4h] cocos2d::CCPoint *v90; // [sp+1Ch] [bp-1C0h] float v91[2]; // [sp+34h] [bp-1A8h] BYREF char v92[8]; // [sp+3Ch] [bp-1A0h] BYREF _BYTE v93[8]; // [sp+44h] [bp-198h] BYREF int v94; // [sp+4Ch] [bp-190h] int v95; // [sp+50h] [bp-18Ch] Slider *(__fastcall *v96)(DeathMarkerSettingsPopup *, cocos2d::CCObject *); // [sp+54h] [bp-188h] int v97; // [sp+58h] [bp-184h] _DWORD v98[2]; // [sp+5Ch] [bp-180h] BYREF _DWORD v99[2]; // [sp+64h] [bp-178h] BYREF int v100; // [sp+6Ch] [bp-170h] BYREF size_t v101; // [sp+70h] [bp-16Ch] const void *v102; // [sp+74h] [bp-168h] int v103[3]; // [sp+78h] [bp-164h] BYREF int v104; // [sp+84h] [bp-158h] BYREF size_t v105; // [sp+88h] [bp-154h] const void *v106; // [sp+8Ch] [bp-150h] int v107[3]; // [sp+90h] [bp-14Ch] BYREF int v108[3]; // [sp+9Ch] [bp-140h] BYREF int v109[3]; // [sp+A8h] [bp-134h] BYREF int v110[3]; // [sp+B4h] [bp-128h] BYREF int v111[3]; // [sp+C0h] [bp-11Ch] BYREF int v112[3]; // [sp+CCh] [bp-110h] BYREF int v113[63]; // [sp+D8h] [bp-104h] BYREF v4 = SetupTriggerPopup::init((SetupTriggerPopup *)this, nullptr, nullptr, 360.0, 300.0, (_BYTE *)&dword_0 + 1, 0.0); v86 = v4; if ( v4 ) { *(this + 183) = a2; cocos2d::CCDirector::sharedDirector(v4); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v91); memset(v113, 0, 12); v5 = v91[0] * 0.5; v6 = (float)(v91[1] * 0.5) + 150.0; std::string::__init(v113, "Death Markers", 0xDu); SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)v113); std::string::~string((int)v113); v8 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v7); (*(void (__fastcall **)(int, int))(*(_DWORD *)v8 + 80))(v8, 1061997773); v94 = 684; v95 = 1; v9 = CCMenuItemSpriteExtra::create(v8, 0, (int)this, 684, 1); CCMenuItemSpriteExtra::setSizeMult(v9, 1.5); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v9); v10 = *(this + 111); v11 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v9 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v98, (float)(v5 - 180.0) + 8.0, v6 - 12.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v99, v10); v11(v9, v99); v100 = 0; v101 = 0; v102 = nullptr; v12 = (GameManager *)std::string::__init( &v100, "Local Markers: Your deaths.\n" "Label counts your deaths near that spot.\n" " \n" "Global Markers: Online players.\n", 0x7Fu); v13 = (GameManager *)GameManager::sharedState(v12); if ( *((_DWORD *)v13 + 101) && !*(_BYTE *)(*(_DWORD *)(GameManager::sharedState(v13) + 404) + 1425) ) v14 = "No Progress triggers in this level, less info:\n" "Skull% of all players died here.\n" "Wall% of the players that died here never beat the level."; else v14 = "Of the players that reached the spot:\nSkull% died here.\nWall% never got past it."; std::string::append(&v100, v14); memset(v103, 0, sizeof(v103)); std::string::__init(v103, "Death Markers", 0xDu); v104 = 0; v105 = 0; v106 = nullptr; if ( (v100 & 1) != 0 ) { std::string::__init(&v104, v102, v101); } else { v104 = v100; v105 = v101; v106 = v102; } v15 = InfoAlertButton::create((char *)v103, (int)&v104, 1063675494); std::string::~string((int)&v104); std::string::~string((int)v103); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v15); v16 = *(this + 111); v17 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v15 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v98, (float)(v5 + 180.0) - 16.0, v6 - 16.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v99, v16); v17(v15, v99); v18 = v5 + 92.0; v20 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Frequency:", "goldFont.fnt", v19); (*(void (__fastcall **)(int, int))(*(_DWORD *)v20 + 80))(v20, 1055286886); v21 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v20 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v99, 1.0, 0.5); v21(v20, v99); v22 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v20 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v99, (float)(v5 - 84.0) + 8.0, v6 - 44.0); v22(v20, v99); (*(void (__fastcall **)(_DWORD, int, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v20, 1); memset(v107, 0, sizeof(v107)); std::string::__init(v107, "Frequency", 9u); memset(v108, 0, sizeof(v108)); std::string::__init( v108, "How often markers show when you die.\n" "Lower settings only show them for new bests, repeated deaths at one spot, or spots deadly to e" "veryone.\n" "Always shows them on every death.", 0xCDu); v23 = InfoAlertButton::create((char *)v107, (int)v108, 1056964608); std::string::~string((int)v108); std::string::~string((int)v107); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v23); v24 = *(this + 111); v25 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v23 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v98, (float)(v5 - 84.0) - 62.0, v6 - 44.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v99, v24); v25(v23, v99); v27 = (Slider *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Normal", "bigFont.fnt", v26); *(this + 180) = v27; (*(void (__fastcall **)(Slider *, int))(*(_DWORD *)v27 + 80))(v27, 1053609165); v28 = (int)*(this + 180); v29 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v28 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v99, 0.0, 0.5); v29(v28, v99); v30 = (int)*(this + 180); v31 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v30 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v99, (float)(v5 - 84.0) + 12.0, v6 - 44.0); v31(v30, v99); (*(void (__fastcall **)(_DWORD, _DWORD, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), *(this + 180), 1); v96 = DeathMarkerSettingsPopup::onFrequencySlider; v97 = 0; v32 = (Slider *)Slider::create((int)this, (int)DeathMarkerSettingsPopup::onFrequencySlider, 0, 0.65); *(this + 179) = v32; Slider::setBarVisibility(v32, 1); Slider::setSnapStep(*(this + 179), 0.2); (*(void (__fastcall **)(_DWORD, _DWORD, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), *(this + 179), 1); v33 = (int)*(this + 179); v34 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v33 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v99, v5 - 84.0, v6 - 70.0); v35 = (GameManager *)v34(v33, v99); v36 = (GameManager *)GameManager::sharedState(v35); IntGameVariable = GameManager::getIntGameVariable(v36, "0205"); if ( IntGameVariable <= 0 ) { v38 = 2; } else if ( IntGameVariable > 5 ) { v38 = 5; } else { v38 = IntGameVariable - 1; } Slider::setValue(*(this + 179), (float)v38 / 5.0); DeathMarkerSettingsPopup::updateFrequencyLabel((DeathMarkerSettingsPopup *)this, v38); v40 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Duration:", "goldFont.fnt", v39); (*(void (__fastcall **)(int, int))(*(_DWORD *)v40 + 80))(v40, 1055286886); v41 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v40 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v99, 1.0, 0.5); v41(v40, v99); v42 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v40 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v99, v18 + 13.0, v6 - 44.0); v42(v40, v99); (*(void (__fastcall **)(_DWORD, int, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v40, 1); memset(v109, 0, sizeof(v109)); std::string::__init(v109, "Display Duration", 0x10u); memset(v110, 0, sizeof(v110)); std::string::__init( v110, "Increase or decrease the death marker display time.\n" "Animations are not affected.", 0x70u); v43 = InfoAlertButton::create((char *)v109, (int)v110, 1056964608); std::string::~string((int)v110); std::string::~string((int)v109); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v43); v44 = *(this + 111); v45 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v43 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v98, v18 - 57.0, v6 - 44.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v99, v44); v45(v43, v99); v47 = (Slider *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"1.0x", "bigFont.fnt", v46); *(this + 182) = v47; (*(void (__fastcall **)(Slider *, int))(*(_DWORD *)v47 + 80))(v47, 1053609165); v48 = (int)*(this + 182); v49 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v48 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v99, 0.0, 0.5); v49(v48, v99); v50 = (int)*(this + 182); v51 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v50 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v99, v18 + 17.0, v6 - 44.0); v51(v50, v99); (*(void (__fastcall **)(_DWORD, _DWORD, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), *(this + 182), 1); v98[0] = DeathMarkerSettingsPopup::onTimescaleSlider; v98[1] = 0; v52 = (Slider *)Slider::create((int)this, (int)DeathMarkerSettingsPopup::onTimescaleSlider, 0, 0.65); *(this + 181) = v52; Slider::setBarVisibility(v52, 1); Slider::setSnapStep(*(this + 181), 0.066667); (*(void (__fastcall **)(_DWORD, _DWORD, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), *(this + 181), 1); v53 = (int)*(this + 181); v54 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v53 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v99, v5 + 92.0, v6 - 70.0); v55 = (GameManager *)v54(v53, v99); v56 = (GameManager *)GameManager::sharedState(v55); v57 = GameManager::getIntGameVariable(v56, "0211"); if ( v57 <= 0 ) { v58 = (const char *)&dword_64; } else { if ( v57 >= 200 ) v57 = 200; v58 = (const char *)v57; if ( v57 < 50 ) v58 = (const char *)&word_32; } Slider::setValue(*(this + 181), (float)(int)(v58 - 50) / 150.0); DeathMarkerSettingsPopup::updateTimescaleLabel((int)this, v58); v59 = v113; memset(v113, 0, sizeof(v113)); v113[0] = (int)"Local Markers"; v113[1] = (int)"0200"; v113[2] = (int)DeathMarkerSettingsPopup::onToggleLocal; v113[6] = (int)"Shows your own deaths as markers in the level."; v113[7] = (int)"Global Markers"; v113[8] = (int)"0202"; v113[9] = (int)DeathMarkerSettingsPopup::onToggleGlobal; v113[13] = (int)"Shows where all players die. Downloaded automatically for online levels."; v113[14] = (int)"Switch Color"; v113[15] = (int)"0204"; v113[16] = (int)DeathMarkerSettingsPopup::onToggleColor; v113[20] = (int)"Tints your local markers with your primary color instead of your secondary color."; v113[21] = (int)"Disable Anim"; v113[22] = (int)"0201"; v113[23] = (int)DeathMarkerSettingsPopup::onToggleAnimation; v113[27] = (int)"Markers appear instantly when you die, without the pop-in animation."; v113[28] = (int)"Disable Sound"; v113[29] = (int)"0206"; v113[30] = (int)DeathMarkerSettingsPopup::onToggleSound; v113[34] = (int)"Mutes the marker pop-in sound."; v113[35] = (int)"Disable Markers"; v113[36] = (int)"0207"; v113[37] = (int)DeathMarkerSettingsPopup::onToggleDisabled; v113[41] = (int)"Hides all death markers."; v113[42] = (int)"Hide Labels"; v113[43] = (int)"0208"; v113[44] = (int)DeathMarkerSettingsPopup::onToggleLabels; v113[48] = (int)"Hides the count and rate labels."; v113[49] = (int)"Limited Labels"; v113[50] = (int)"0210"; v113[51] = (int)DeathMarkerSettingsPopup::onToggleLimited; v113[55] = (int)"Only shows the global label where you died. Ignored in the editor."; v113[56] = (int)"Live Practice Markers"; v113[57] = (int)"0216"; *(float *)&v113[4] = v5 - 130.0; v113[58] = (int)DeathMarkerSettingsPopup::onToggleLive; *(float *)&v113[5] = v6 - 102.0; v113[62] = (int)"Death markers stay visible in Practice mode,\n" "from a Start pos, or in your local created levels.\n" "Normal runs use the Frequency setting."; v85 = 0; *(float *)&v113[11] = v5 + 26.0; *(float *)&v113[12] = v6 - 102.0; *(float *)&v113[18] = v5 - 130.0; *(float *)&v113[19] = v6 - 134.0; *(float *)&v113[25] = v5 + 26.0; *(float *)&v113[26] = v6 - 134.0; *(float *)&v113[32] = v5 - 130.0; *(float *)&v113[33] = v6 - 166.0; *(float *)&v113[39] = v5 + 26.0; *(float *)&v113[40] = v6 - 166.0; *(float *)&v113[46] = v5 - 130.0; *(float *)&v113[47] = v6 - 198.0; *(float *)&v113[53] = v5 + 26.0; *(float *)&v113[54] = v6 - 198.0; *(float *)&v113[60] = v5 - 130.0; *(float *)&v113[61] = v6 - 230.0; do { v61 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOff_001.png", v60); v63 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOn_001.png", v62); v64 = CCMenuItemToggler::create(v61, v63, (int)this, v113[7 * v85 + 2], v113[7 * v85 + 3]); v65 = (GameManager *)(*(int (__fastcall **)(cocos2d::CCNodeRGBA *, int))(*(_DWORD *)v64 + 80))(v64, 1058977874); v66 = (GameManager *)GameManager::sharedState(v65); GameVariable = GameManager::getGameVariable(v66, (char *)v59[1]); CCMenuItemToggler::toggle(v64, GameVariable); (*(void (__fastcall **)(_DWORD, cocos2d::CCNodeRGBA *))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v64); v68 = *((float *)v59 + 4); v69 = *(void (__fastcall **)(cocos2d::CCNodeRGBA *, _DWORD *))(*(_DWORD *)v64 + 92); v70 = *((float *)v59 + 5); v87 = *(this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v93, v68, v70); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v99, v87); v69(v64, v99); v71 = (cocos2d::CCLabelBMFont *)*v59; v73 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)*v59, "bigFont.fnt", v72); v74 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v73 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v99, 0.0, 0.5); v74(v73, v99); (*(void (__fastcall **)(int, int))(*(_DWORD *)v73 + 80))(v73, 1051260355); v75 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v73 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v99, v68 + 20.0, v70); v75(v73, v99); (*(void (__fastcall **)(_DWORD, int, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v73, 1); memset(v111, 0, sizeof(v111)); v76 = strlen((const char *)v71); std::string::__init(v111, v71, v76); v77 = (const char *)v59[6]; memset(v112, 0, sizeof(v112)); v88 = (cocos2d::CCPoint *)v77; v78 = strlen(v77); std::string::__init(v112, v88, v78); v79 = InfoAlertButton::create((char *)v111, (int)v112, 1056964608); std::string::~string((int)v112); std::string::~string((int)v111); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v79); v89 = *(cocos2d::CCPoint **)(*(_DWORD *)v79 + 92); v90 = *(this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v93, v68 - 16.0, v70 + 13.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v99, v90); ((void (__fastcall *)(int, _DWORD *))v89)(v79, v99); v59 += 7; ++v85; } while ( v85 != 9 ); v80 = ButtonSprite::create( (ButtonSprite *)"Clear Markers", (const char *)&dword_6C + 2, 0, 0.6, 1, "bigFont.fnt", "GJ_button_06.png", (const char *)0x41F00000, COERCE_FLOAT(9)); (*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v80 + 80))(v80, 1062836634); v99[1] = 0; v99[0] = DeathMarkerSettingsPopup::onClearMarkers; v81 = CCMenuItemSpriteExtra::create((int)v80, 0, (int)this, (int)DeathMarkerSettingsPopup::onClearMarkers, 0); CCMenuItemSpriteExtra::setSizeMult(v81, 1.1); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v81); v82 = *(this + 111); v83 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v81 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v92, v5, v6 - 266.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v93, v82); v83(v81, v93); std::string::~string((int)&v100); } return v86; }
GD Web Decomp Icon

GD Web Decomp

Raw Source