// // SetupCollisionStateTriggerPopup::init from 0x4f59a0 to 0x4f5b6c (460 bytes) // // 1 xrefs: // > SetupCollisionStateTriggerPopup::create @ 0x4f5c16 // // 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 SetupCollisionStateTriggerPopup::init( SetupCollisionStateTriggerPopup *a1, EffectGameObject *a2, cocos2d::CCArray *a3) { _BOOL4 v4; // r9 cocos2d::CCDirector *v5; // r0 float v6; // s17 float v7; // s16 float v8; // s17 _BYTE v10[4]; // [sp+38h] [bp-1Ch] BYREF cocos2d::CCSize v11; // [sp+3Ch] [bp-18h] BYREF cocos2d::CCPoint v12; // [sp+44h] [bp-10h] BYREF v4 = SetupTriggerPopup::init(a1, a2, a3, 340.0, 200.0, 1); if ( v4 ) { SetupTriggerPopup::preSetup(a1); sub_776584((int)&v12, "Collision State"); SetupTriggerPopup::addTitle(a1, (std::string)&v12); sub_774008(&v12); sub_776584((int)&v12, "OK"); SetupTriggerPopup::addCloseButton(a1, (std::string)&v12); sub_774008(&v12); sub_776584((int)&v11, "Help"); sub_776584( (int)&v12, "Activates a group when the player collides with the hitbox.\n" "State On is activated upon entering.\n" "State Off is activated upon exiting."); SetupTriggerPopup::addHelpButton(a1, (std::string)&v11, (std::string)&v12, 1.0); sub_774008(&v12); sub_774008(&v11); v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v11, v5); v6 = (float)(v11.height * 0.5) + 70.0; v7 = v11.width * 0.5; sub_776584((int)v10, "State On"); v8 = v6 - 60.0; cocos2d::CCPoint::CCPoint(&v12, v7 - 70.0, v8); SetupTriggerPopup::createValueControlAdvanced( (int)a1, 51, (int)v10, (int)&v12, 0.7, 1, 3, 6, 1, nullptr, 100.0, 0, 0, 0, 2, 0); sub_774008(v10); sub_776584((int)v10, "State Off"); cocos2d::CCPoint::CCPoint(&v12, v7 + 70.0, v8); SetupTriggerPopup::createValueControlAdvanced( (int)a1, 71, (int)v10, (int)&v12, 0.7, 1, 3, 6, 1, nullptr, 100.0, 0, 0, 0, 2, 0); sub_774008(v10); SetupTriggerPopup::postSetup(a1); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source