// // SetupObjectTogglePopup::init from 0xa41f24 to 0xa4277c (2136 bytes) // // 2 xrefs: // > SetupObjectTogglePopup::create @ 0xa429bc // > @ 0xf92c8 // // 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 12:59:57 +0000 // __int64 __fastcall SetupObjectTogglePopup::init( SetupObjectTogglePopup *this, EffectGameObject *a2, cocos2d::CCArray *a3, unsigned __int8 a4) { int v5; // w25 unsigned __int8 v8; // w0 unsigned int v9; // w24 int v11; // w22 const char *v12; // x1 size_t v13; // x0 cocos2d::CCDirector *v14; // x0 cocos2d::CCDirector *v15; // x0 unsigned int v16; // w20 int v17; // w0 char *v18; // [xsp+78h] [xbp+68h] __int64 v19; // [xsp+80h] [xbp+70h] BYREF _BYTE v20[8]; // [xsp+88h] [xbp+78h] BYREF _BYTE v21[8]; // [xsp+90h] [xbp+80h] BYREF _BYTE v22[8]; // [xsp+98h] [xbp+88h] BYREF __int64 v23; // [xsp+A0h] [xbp+90h] BYREF __int64 v24; // [xsp+A8h] [xbp+98h] BYREF size_t v25; // [xsp+B0h] [xbp+A0h] void *v26; // [xsp+B8h] [xbp+A8h] __int64 v27; // [xsp+C0h] [xbp+B0h] BYREF size_t v28; // [xsp+C8h] [xbp+B8h] void *v29; // [xsp+D0h] [xbp+C0h] __int64 v30; // [xsp+D8h] [xbp+C8h] BYREF __int64 v31; // [xsp+E0h] [xbp+D0h] void *v32; // [xsp+E8h] [xbp+D8h] cocos2d::CCDirector *v33; // [xsp+F0h] [xbp+E0h] BYREF __int64 v34; // [xsp+F8h] [xbp+E8h] void *v35; // [xsp+100h] [xbp+F0h] v5 = a4; v8 = SetupTriggerPopup::init(this, a2, a3, 300.0, 240.0, 1, 0.0); v9 = v8; if ( !v8 ) return v9; SetupTriggerPopup::preSetup(this); if ( a2 ) { v11 = *((_DWORD *)a2 + 257); } else { v11 = -1; if ( !a3 ) goto LABEL_46; v16 = 0; v11 = -1; while ( v16 < (unsigned int)cocos2d::CCArray::count(a3) ) { v17 = *(_DWORD *)(cocos2d::CCArray::objectAtIndex(a3, v16) + 1028); if ( v11 != -1 && v11 != v17 ) { v11 = 0; goto LABEL_46; } ++v16; v11 = v17; } } if ( v11 == 1812 ) { v33 = nullptr; v34 = 0; v35 = nullptr; std::string::__init((__int64 *)&v33, "On Death Trigger", 0x10u); SetupTriggerPopup::addTitle(this, &v33); if ( ((unsigned __int8)v33 & 1) != 0 ) operator delete(v35); v30 = 0; v31 = 0; v32 = nullptr; std::string::__init(&v30, "Help", 4u); v33 = nullptr; v34 = 0; v35 = nullptr; std::string::__init( (__int64 *)&v33, "Works like a Toggle + Spawn trigger that is activated upon player death.\n" "Disable using a Stop trigger.", 0x86u); SetupTriggerPopup::addHelpButton(this, &v30, &v33, 1.0); goto LABEL_49; } if ( v11 == 1594 ) { v12 = "Toggle Orb"; goto LABEL_9; } if ( v11 != 3643 ) { LABEL_46: v33 = nullptr; v34 = 0; v35 = nullptr; std::string::__init((__int64 *)&v33, "Toggle Group", 0xCu); SetupTriggerPopup::addTitle(this, &v33); if ( ((unsigned __int8)v33 & 1) != 0 ) operator delete(v35); v30 = 0; v31 = 0; v32 = nullptr; std::string::__init(&v30, "Help", 4u); v33 = nullptr; v34 = 0; v35 = nullptr; std::string::__init( (__int64 *)&v33, "Toggles off a group of objects.\n" "Use Activate Group to toggle on instead.\n" "Objects that are toggled off are invisible and untouchable.\n" "Triggers that are toggled off do not activate.", 0xC3u); SetupTriggerPopup::addHelpButton(this, &v30, &v33, 1.0); LABEL_49: if ( ((unsigned __int8)v33 & 1) != 0 ) operator delete(v35); if ( (v30 & 1) != 0 ) operator delete(v32); goto LABEL_19; } v12 = "Toggle Block"; LABEL_9: v18 = (char *)v12; v24 = 0; v25 = 0; v26 = nullptr; v13 = strlen(v12); std::string::__init(&v24, v18, v13); v27 = 0; v28 = 0; v29 = nullptr; if ( (v24 & 1) != 0 ) { std::string::__init(&v27, v26, v25); } else { v29 = v26; v27 = v24; v28 = v25; } SetupTriggerPopup::addTitle(this, &v27); if ( (v27 & 1) != 0 ) operator delete(v29); v30 = 0; v31 = 0; v32 = nullptr; std::string::__init(&v30, "Help", 4u); v33 = nullptr; v34 = 0; v35 = nullptr; std::string::__init( (__int64 *)&v33, "Disables Group ID if the player clicks within the hitbox.\n" "Use Activate Group to activate and spawn instead.\n" "Claim Touch disables player jump, rings, and click buffering.\n" "Spawn Only makes the group spawn and not toggle on or off.", 0x104u); SetupTriggerPopup::addHelpButton(this, &v30, &v33, 1.0); if ( ((unsigned __int8)v33 & 1) != 0 ) operator delete(v35); if ( (v30 & 1) != 0 ) operator delete(v32); if ( (v24 & 1) != 0 ) operator delete(v26); LABEL_19: v33 = nullptr; v34 = 0; v35 = nullptr; std::string::__init((__int64 *)&v33, "OK", 2u); SetupTriggerPopup::addCloseButton(this, &v33); v14 = (cocos2d::CCDirector *)(unsigned __int8)v33; if ( ((unsigned __int8)v33 & 1) != 0 ) operator delete(v35); v15 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v14); cocos2d::CCDirector::getWinSize(&v19, v15); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, *(float *)&v19 * 0.5, (float)(*((float *)&v19 + 1) * 0.5) + 30.0); v33 = nullptr; v34 = 0; v35 = nullptr; std::string::__init((__int64 *)&v33, "Group ID", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v23, (const cocos2d::CCPoint *)v20); IDNameInput::create(this, (char *)this + 544, 1, 51, &v33, &v23, 6, 0, 0.9, 0, 0); if ( ((unsigned __int8)v33 & 1) != 0 ) operator delete(v35); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v21, 20.0 - (float)((float)(*((float *)this + 183) * 0.5) - (float)(*(float *)&v19 * 0.5)), 60.0 - (float)((float)(*((float *)this + 184) * 0.5) - (float)(*((float *)&v19 + 1) * 0.5))); if ( v11 == 1594 || v11 == 3643 ) { v33 = nullptr; v34 = 0; v35 = nullptr; if ( v5 ) { std::string::__init((__int64 *)&v33, "NO Multi\nActivate", 0x11u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, 0.0, -35.0); cocos2d::CCPoint::operator+(&v23, v21); SetupTriggerPopup::createToggleValueControl(this, 444, &v33, &v23, 0, 0, 0, 1.0); } else { std::string::__init((__int64 *)&v33, "Multi\nActivate", 0xEu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, 0.0, -35.0); cocos2d::CCPoint::operator+(&v23, v21); SetupTriggerPopup::createToggleValueControl(this, 99, &v33, &v23, 0, 0, 0, 1.0); } if ( ((unsigned __int8)v33 & 1) != 0 ) operator delete(v35); v33 = nullptr; v34 = 0; v35 = nullptr; std::string::__init((__int64 *)&v33, "Claim Touch", 0xBu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, 0.0, 0.0); cocos2d::CCPoint::operator+(&v23, v21); SetupTriggerPopup::createToggleValueControl(this, 445, &v33, &v23, 0, 0, 0, 1.0); if ( ((unsigned __int8)v33 & 1) != 0 ) operator delete(v35); v33 = nullptr; v34 = 0; v35 = nullptr; std::string::__init((__int64 *)&v33, "Spawn\nOnly", 0xAu); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v23, (float)((float)(*((float *)this + 183) * 0.5) + (float)(*(float *)&v19 * 0.5)) - 65.0, (float)(60.0 - (float)((float)(*((float *)this + 184) * 0.5) - (float)(*((float *)&v19 + 1) * 0.5))) - 35.0); SetupTriggerPopup::createToggleValueControl(this, 504, &v33, &v23, 0, 0, 0, 1.0); if ( ((unsigned __int8)v33 & 1) != 0 ) operator delete(v35); } else { SetupTriggerPopup::createMultiTriggerItemsDefault(this); } v33 = nullptr; v34 = 0; v35 = nullptr; std::string::__init((__int64 *)&v33, "Activate Group", 0xEu); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v23, (float)(*(float *)&v19 * 0.5) + -50.0, (float)(*((float *)&v19 + 1) * 0.5) + -20.0); SetupTriggerPopup::createToggleValueControl(this, 56, &v33, &v23, 0, 0, 0, 1.0); if ( ((unsigned __int8)v33 & 1) != 0 ) operator delete(v35); SetupTriggerPopup::postSetup(this); return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source