// // SetupObjectTogglePopup::init from 0x4bb778 to 0x4bbc36 (1214 bytes) // // 1 xrefs: // > SetupObjectTogglePopup::create @ 0x4bbdca // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // bool SetupObjectTogglePopup::init(SetupObjectTogglePopup *a1, EffectGameObject *a2, cocos2d::CCArray *a3, bool a4) { _BOOL4 v6; // r10 EffectGameObject *m_gameObject; // r3 char *v8; // r1 cocos2d::CCPoint *v9; // r0 cocos2d::CCDirector *v10; // r0 _BOOL4 v12; // [sp+34h] [bp-40h] _BYTE v13[4]; // [sp+40h] [bp-34h] BYREF cocos2d::CCSize v14; // [sp+44h] [bp-30h] BYREF cocos2d::CCPoint v15; // [sp+4Ch] [bp-28h] BYREF cocos2d::CCPoint v16; // [sp+54h] [bp-20h] BYREF cocos2d::CCPoint v17; // [sp+5Ch] [bp-18h] BYREF cocos2d::CCPoint v18; // [sp+64h] [bp-10h] BYREF v12 = a4; v6 = SetupTriggerPopup::init(a1, a2, a3, 300.0, 240.0, 1); if ( !v6 ) return v6; SetupTriggerPopup::preSetup(a1); m_gameObject = a1->m_gameObject; if ( m_gameObject && m_gameObject->m_objectID == 1812 ) { sub_776584((int)&v18, "On Death Trigger"); SetupTriggerPopup::addTitle(a1, (std::string)&v18); sub_774008(&v18); sub_776584((int)&v17, "Help"); sub_776584( (int)&v18, "Works like a Toggle + Spawn trigger that is activated upon player death.\n" "Disable using a Stop trigger."); SetupTriggerPopup::addHelpButton(a1, (std::string)&v17, (std::string)&v18, 1.0); } else { if ( a2 && a2->getType(a2) == CustomRing ) { if ( a2->m_objectID == 3643 ) v8 = "Toggle Block"; else v8 = "Toggle Orb"; sub_776584((int)&v15, v8); sub_775C20(&v16); SetupTriggerPopup::addTitle(a1, (std::string)&v16); sub_774008(&v16); sub_776584((int)&v17, "Help"); sub_776584( (int)&v18, "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."); SetupTriggerPopup::addHelpButton(a1, (std::string)&v17, (std::string)&v18, 1.0); sub_774008(&v18); sub_774008(&v17); v9 = &v15; goto LABEL_9; } sub_776584((int)&v18, "Toggle Group"); SetupTriggerPopup::addTitle(a1, (std::string)&v18); sub_774008(&v18); sub_776584((int)&v17, "Help"); sub_776584( (int)&v18, "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."); SetupTriggerPopup::addHelpButton(a1, (std::string)&v17, (std::string)&v18, 1.0); } sub_774008(&v18); v9 = &v17; LABEL_9: sub_774008(v9); sub_776584((int)&v18, "OK"); SetupTriggerPopup::addCloseButton(a1, (std::string)&v18); sub_774008(&v18); v10 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v14, v10); cocos2d::CCPoint::CCPoint(&v15, v14.width * 0.5, (float)(v14.height * 0.5) + 30.0); sub_776584((int)&v17, "Group ID"); cocos2d::CCPoint::CCPoint(&v18, &v15); SetupTriggerPopup::createValueControlAdvanced( (int)a1, 51, (int)&v17, (int)&v18, 0.9, 1, 3, 6, 1, nullptr, 100.0, 0, 0, 0, 2, 0); sub_774008(&v17); cocos2d::CCPoint::CCPoint( &v16, (float)((float)(v14.width * 0.5) - (float)(a1->m_width * 0.5)) + 20.0, (float)((float)(v14.height * 0.5) - (float)(a1->m_height * 0.5)) + 60.0); if ( a2 && a2->getType(a2) == CustomRing ) { if ( a2->getType(a2) == CustomRing ) { if ( v12 ) { sub_776584((int)v13, "NO Multi\nActivate"); cocos2d::CCPoint::CCPoint(&v17, 0.0, -35.0); cocos2d::CCPoint::operator+(&v18, &v16, &v17); SetupTriggerPopup::createToggleValueControl((int)a1, 444, (int)v13, (int)&v18, 0, 0, 0, 1.0); } else { sub_776584((int)v13, "Multi\nActivate"); cocos2d::CCPoint::CCPoint(&v17, 0.0, -35.0); cocos2d::CCPoint::operator+(&v18, &v16, &v17); SetupTriggerPopup::createToggleValueControl((int)a1, 99, (int)v13, (int)&v18, 0, 0, 0, 1.0); } sub_774008(v13); sub_776584((int)v13, "Claim Touch"); cocos2d::CCPoint::CCPoint(&v17, 0.0, 0.0); cocos2d::CCPoint::operator+(&v18, &v16, &v17); SetupTriggerPopup::createToggleValueControl((int)a1, 445, (int)v13, (int)&v18, 0, 0, 0, 1.0); sub_774008(v13); sub_776584((int)&v17, "Spawn\nOnly"); cocos2d::CCPoint::CCPoint( &v18, (float)((float)(a1->m_width * 0.5) + (float)(v14.width * 0.5)) - 65.0, (float)((float)((float)(v14.height * 0.5) - (float)(a1->m_height * 0.5)) + 60.0) - 35.0); SetupTriggerPopup::createToggleValueControl((int)a1, 504, (int)&v17, (int)&v18, 0, 0, 0, 1.0); sub_774008(&v17); } } else { SetupTriggerPopup::createMultiTriggerItemsDefault(a1); } sub_776584((int)&v17, "Activate Group"); cocos2d::CCPoint::CCPoint(&v18, (float)(v14.width * 0.5) - 50.0, (float)(v14.height * 0.5) - 20.0); SetupTriggerPopup::createToggleValueControl((int)a1, 56, (int)&v17, (int)&v18, 0, 0, 0, 1.0); sub_774008(&v17); SetupTriggerPopup::postSetup(a1); return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source