// // SetupCollisionStateTriggerPopup::init from 0xa9c9f8 to 0xa9cd28 (816 bytes) // // 2 xrefs: // > SetupCollisionStateTriggerPopup::create @ 0xa9cf58 // > @ 0xc37f0 // // 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:00:46 +0000 // __int64 __fastcall SetupCollisionStateTriggerPopup::init( SetupCollisionStateTriggerPopup *this, EffectGameObject *a2, cocos2d::CCArray *a3) { unsigned __int8 v4; // w0 unsigned int v5; // w22 cocos2d::CCDirector *v7; // x0 cocos2d::CCDirector *v8; // x0 float v9; // s8 float v10; // s9 float v11; // s8 int v12; // [xsp+8h] [xbp-8h] float v13; // [xsp+70h] [xbp+60h] __int64 v14; // [xsp+88h] [xbp+78h] BYREF _BYTE v15[8]; // [xsp+90h] [xbp+80h] BYREF cocos2d::CCDirector *v16[2]; // [xsp+98h] [xbp+88h] BYREF void *v17; // [xsp+A8h] [xbp+98h] __int64 v18; // [xsp+B0h] [xbp+A0h] BYREF __int64 v19; // [xsp+B8h] [xbp+A8h] void *v20; // [xsp+C0h] [xbp+B0h] v4 = SetupTriggerPopup::init(this, a2, a3, 340.0, 200.0, 1, 0.0); v5 = v4; if ( v4 ) { SetupTriggerPopup::preSetup(this); v18 = 0; v19 = 0; v20 = nullptr; std::string::__init(&v18, "Collision State", 0xFu); SetupTriggerPopup::addTitle(this, &v18); if ( (v18 & 1) != 0 ) operator delete(v20); v18 = 0; v19 = 0; v20 = nullptr; std::string::__init(&v18, "OK", 2u); SetupTriggerPopup::addCloseButton(this, &v18); if ( (v18 & 1) != 0 ) operator delete(v20); v16[0] = nullptr; v16[1] = nullptr; v17 = nullptr; std::string::__init((__int64 *)v16, "Help", 4u); v18 = 0; v19 = 0; v20 = nullptr; std::string::__init( &v18, "Activates a group when the player collides with the hitbox.\n" "State On is activated upon entering.\n" "State Off is activated upon exiting.", 0x95u); SetupTriggerPopup::addHelpButton(this, v16, &v18, 1.0); if ( (v18 & 1) != 0 ) operator delete(v20); v7 = (cocos2d::CCDirector *)LOBYTE(v16[0]); if ( ((__int64)v16[0] & 1) != 0 ) operator delete(v17); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(&v14, v8); v18 = 0; v9 = *((float *)&v14 + 1); v10 = (float)(*(float *)&v14 * 0.5) + 70.0; v19 = 0; v20 = nullptr; v13 = (float)(*(float *)&v14 * 0.5) + -70.0; std::string::__init(&v18, "State On", 8u); v11 = (float)((float)(v9 * 0.5) + 70.0) - 60.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, v13, v11); IDNameInput::create(this, (char *)this + 544, 1, 51, &v18, v15, 6, 0, 0.7, 0, 0); if ( (v18 & 1) != 0 ) operator delete(v20); v18 = 0; v19 = 0; v20 = nullptr; std::string::__init(&v18, "State Off", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, v10, v11); LOBYTE(v12) = 0; IDNameInput::create(this, (char *)this + 544, 1, 71, &v18, v15, 6, 0, 0.7, 0, v12); if ( (v18 & 1) != 0 ) operator delete(v20); SetupTriggerPopup::postSetup(this); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source