//
// SetupInstantCollisionTriggerPopup::init from 0x100230c18 to 0x100231090 (1144 bytes)
//
// 1 xrefs:
// > SetupInstantCollisionTriggerPopup::create @ 0x100230bc8
//
// 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 __fastcall SetupInstantCollisionTriggerPopup::init(
SetupInstantCollisionTriggerPopup *a1,
EffectGameObject *a2,
cocos2d::CCArray *a3)
{
_BOOL4 v4; // w20
cocos2d::CCDirector *v5; // x0
unsigned __int32 v6; // s8
float v7; // s12
unsigned __int32 v8; // s11
__n128 v9; // q0
__n128 v10; // q1
__n128 v11; // q0
__n128 v12; // q1
__n128 v13; // q0
__n128 v14; // q1
__n128 v15; // q0
__n128 v16; // q1
__n128 v17; // q0
unsigned __int32 v18; // s8
__n128 v19; // q1
__n128 v20; // q0
__n128 v21; // q1
__n128 v22; // q0
__n128 v23; // q1
__n128 v24; // q0
__n128 v25; // q1
__n128 v26; // q0
__n128 v27; // q1
__n128 v28; // q0
__n128 v29; // q1
void *v31[2]; // [xsp+18h] [xbp-168h] BYREF
char v32; // [xsp+2Fh] [xbp-151h]
void *v33[2]; // [xsp+30h] [xbp-150h] BYREF
char v34; // [xsp+47h] [xbp-139h]
void *v35[2]; // [xsp+48h] [xbp-138h] BYREF
char v36; // [xsp+5Fh] [xbp-121h]
void *v37[2]; // [xsp+60h] [xbp-120h] BYREF
char v38; // [xsp+77h] [xbp-109h]
void *v39[2]; // [xsp+78h] [xbp-108h] BYREF
char v40; // [xsp+8Fh] [xbp-F1h]
void *v41[2]; // [xsp+90h] [xbp-F0h] BYREF
char v42; // [xsp+A7h] [xbp-D9h]
float32x2_t v43; // [xsp+A8h] [xbp-D8h] BYREF
void *__p[2]; // [xsp+B0h] [xbp-D0h] BYREF
char v45; // [xsp+C7h] [xbp-B9h]
float v46; // [xsp+C8h] [xbp-B8h]
float v47; // [xsp+CCh] [xbp-B4h]
void *v48[2]; // [xsp+D0h] [xbp-B0h] BYREF
char v49; // [xsp+E7h] [xbp-99h]
void *v50[2]; // [xsp+E8h] [xbp-98h] BYREF
char v51; // [xsp+FFh] [xbp-81h]
void *v52[2]; // [xsp+100h] [xbp-80h] BYREF
char v53; // [xsp+117h] [xbp-69h]
void *v54[2]; // [xsp+118h] [xbp-68h] BYREF
char v55; // [xsp+12Fh] [xbp-51h]
v4 = SetupTriggerPopup::init(a1, a2, a3, 340.0, 280.0, 1);
if ( v4 )
{
SetupTriggerPopup::preSetup(a1);
sub_100009900(v54, "Instant Collision");
SetupTriggerPopup::addTitle((__int64)a1, (__int64)v54);
if ( v55 < 0 )
operator delete(v54[0]);
sub_100009900(v52, "OK");
SetupTriggerPopup::addCloseButton((__int64)a1, (const char *)v52);
if ( v53 < 0 )
operator delete(v52[0]);
sub_100009900(v50, "Help");
sub_100009900(
v48,
"Activates a group when Collision Blocks using BlockA ID and BlockB ID collide or do not collide. The condi"
"tion is only checked when it is hit and never again. Make sure that one of the blocks have Dynamic Block enabled.\n"
"True ID is activated if they collide. False ID is activated if they do not collide.\n"
"P1 and P2 makes collision trigger upon the respective player touching BlockB ID.\n"
"PP triggers when both players collide.");
SetupTriggerPopup::addHelpButton((__int64)a1, (__int64)v50, (__int64)v48, 1.0);
if ( v49 < 0 )
operator delete(v48[0]);
if ( v51 < 0 )
operator delete(v50[0]);
v5 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v5);
*(float *)&v6 = (float)(v47 * 0.5) + 70.0;
v7 = v46 * 0.5;
*(float *)&v8 = (float)(v46 * 0.5) + -70.0;
sub_100009900(__p, "BlockA ID");
v9.n128_u32[0] = v8;
v10.n128_u32[0] = v6;
sub_100022980(v9, v10, &v43);
SetupTriggerPopup::createValueControlAdvanced(
a1,
80,
(const char *)__p,
&v43,
1,
Uint,
6,
1,
0.7,
0.0,
100.0,
0,
0,
0,
2,
0);
if ( v45 < 0 )
operator delete(__p[0]);
sub_100009900(v41, "BlockB ID");
v11.n128_f32[0] = v7 + 70.0;
v12.n128_u32[0] = v6;
sub_100022980(v11, v12, &v43);
SetupTriggerPopup::createValueControlAdvanced(
a1,
95,
(const char *)v41,
&v43,
1,
Uint,
6,
1,
0.7,
0.0,
100.0,
0,
0,
0,
2,
0);
if ( v42 < 0 )
operator delete(v41[0]);
sub_100009900(v39, "True ID");
v13.n128_u32[0] = v8;
v14.n128_f32[0] = *(float *)&v6 + -60.0;
sub_100022980(v13, v14, &v43);
SetupTriggerPopup::createValueControlAdvanced(
a1,
51,
(const char *)v39,
&v43,
1,
Uint,
6,
1,
0.7,
0.0,
100.0,
0,
0,
0,
2,
0);
if ( v40 < 0 )
operator delete(v39[0]);
sub_100009900(v37, "False ID");
v15.n128_f32[0] = v7 + 70.0;
v16.n128_f32[0] = *(float *)&v6 + -60.0;
sub_100022980(v15, v16, &v43);
SetupTriggerPopup::createValueControlAdvanced(
a1,
71,
(const char *)v37,
&v43,
1,
Uint,
6,
1,
0.7,
0.0,
100.0,
0,
0,
0,
2,
0);
if ( v38 < 0 )
operator delete(v37[0]);
sub_100009900(v35, "P1");
v17.n128_f32[0] = (float)(v46 * 0.5) + -75.0;
*(float *)&v18 = (float)(*(float *)&v6 + -120.0) + 10.0;
v19.n128_u32[0] = v18;
sub_100022980(v17, v19, &v43);
v20.n128_u32[0] = 1.0;
SetupTriggerPopup::createToggleValueControl((__int64)a1, 138, (__int64)v35, (__int64 *)&v43, 0, 0, 0, v20, v21);
if ( v36 < 0 )
operator delete(v35[0]);
sub_100009900(v33, "P2");
v22.n128_f32[0] = v46 * 0.5;
v23.n128_u32[0] = v18;
sub_100022980(v22, v23, &v43);
v24.n128_u32[0] = 1.0;
SetupTriggerPopup::createToggleValueControl((__int64)a1, 200, (__int64)v33, (__int64 *)&v43, 0, 0, 0, v24, v25);
if ( v34 < 0 )
operator delete(v33[0]);
sub_100009900(v31, "PP");
v26.n128_f32[0] = (float)(v46 * 0.5) + 75.0;
v27.n128_u32[0] = v18;
sub_100022980(v26, v27, &v43);
v28.n128_u32[0] = 1.0;
SetupTriggerPopup::createToggleValueControl((__int64)a1, 201, (__int64)v31, (__int64 *)&v43, 0, 0, 0, v28, v29);
if ( v32 < 0 )
operator delete(v31[0]);
SetupTriggerPopup::createMultiTriggerItemsDefault(a1);
SetupTriggerPopup::postSetup(a1);
}
return v4;
}