//
// SetupAreaTransformTriggerPopup::init from 0x1004d5510 to 0x1004d5d46 (2102 bytes)
//
// 1 xrefs:
// > SetupAreaTransformTriggerPopup::create @ 0x1004d54c2
//
// 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 SetupAreaTransformTriggerPopup::init(
SetupAreaTransformTriggerPopup *a1,
EnterEffectObject *a2,
cocos2d::CCArray *a3)
{
bool result; // al
bool v4; // r15
char v5; // [rsp+38h] [rbp-158h] BYREF
char v6[15]; // [rsp+39h] [rbp-157h] BYREF
void *v7; // [rsp+48h] [rbp-148h]
char v8; // [rsp+50h] [rbp-140h] BYREF
char v9[15]; // [rsp+51h] [rbp-13Fh] BYREF
void *v10; // [rsp+60h] [rbp-130h]
__int128 v11; // [rsp+68h] [rbp-128h] BYREF
void *v12; // [rsp+78h] [rbp-118h]
char v13; // [rsp+80h] [rbp-110h] BYREF
char v14[15]; // [rsp+81h] [rbp-10Fh] BYREF
void *v15; // [rsp+90h] [rbp-100h]
char v16; // [rsp+98h] [rbp-F8h] BYREF
char v17[15]; // [rsp+99h] [rbp-F7h] BYREF
void *v18; // [rsp+A8h] [rbp-E8h]
char v19; // [rsp+B0h] [rbp-E0h] BYREF
char v20[15]; // [rsp+B1h] [rbp-DFh] BYREF
void *v21; // [rsp+C0h] [rbp-D0h]
char v22; // [rsp+C8h] [rbp-C8h] BYREF
char v23[15]; // [rsp+C9h] [rbp-C7h] BYREF
void *v24; // [rsp+D8h] [rbp-B8h]
float v25[2]; // [rsp+E0h] [rbp-B0h] BYREF
void *v26[3]; // [rsp+E8h] [rbp-A8h] BYREF
char v27; // [rsp+100h] [rbp-90h] BYREF
char v28[15]; // [rsp+101h] [rbp-8Fh] BYREF
void *v29; // [rsp+110h] [rbp-80h]
char v30; // [rsp+118h] [rbp-78h] BYREF
char v31[15]; // [rsp+119h] [rbp-77h] BYREF
void *v32; // [rsp+128h] [rbp-68h]
char v33; // [rsp+130h] [rbp-60h] BYREF
char v34[15]; // [rsp+131h] [rbp-5Fh] BYREF
void *v35; // [rsp+140h] [rbp-50h]
char v36; // [rsp+148h] [rbp-48h] BYREF
char v37[15]; // [rsp+149h] [rbp-47h] BYREF
void *v38; // [rsp+158h] [rbp-38h]
unsigned __int64 v39; // [rsp+160h] [rbp-30h] BYREF
double v40; // [rsp+168h] [rbp-28h] BYREF
unsigned __int64 v41[4]; // [rsp+170h] [rbp-20h] BYREF
result = SetupTriggerPopup::init(a1, a2, a3, 420.0, 280.0, 1);
if ( result )
{
v4 = result;
((void (__fastcall *)(SetupAreaTransformTriggerPopup *))a1->determineStartValues)(a1);
strcpy((char *)v26, ",Area Transform Trigger");
SetupTriggerPopup::addTitle((__int64)a1, (__int64)v26);
if ( ((__int64)v26[0] & 1) != 0 )
operator delete(v26[2]);
v5 = 4;
strcpy(v6, "OK");
SetupTriggerPopup::addCloseButton((__int64)a1, (__int64)&v5);
if ( (v5 & 1) != 0 )
operator delete(v7);
v8 = 8;
strcpy(v9, "Help");
v12 = operator new(0x140u);
*(_QWORD *)&v11 = 321;
*((_QWORD *)&v11 + 1) = 312;
strcpy(
(char *)v12,
"Scales objects using Target Group ID within an area around Center Group ID. The area can be specif"
"ied by the arrow buttons and Length (for size).\n"
"You can specify how much the objects in the area scale depending on how close they are to the center.\n"
"Check the other pages for more settings.");
SetupTriggerPopup::addHelpButton((__int64)a1, (__int64)&v8, &v11, (__m128)0x3F800000u);
if ( (v11 & 1) != 0 )
operator delete(v12);
if ( (v8 & 1) != 0 )
operator delete(v10);
SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(a1);
cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v25);
sub_10028CBE0((float *)&v39, v25[0] * 0.5, (float)(0.5 * v25[1]) + 95.0);
v27 = 12;
strcpy(v28, "Length");
sub_10028CBE0((float *)v41, -75.0, 0.0);
sub_10028CCE0(&v40, &v39, v41);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
222,
(__int64)&v27,
(float *)&v40,
0,
Int,
0.64999998,
0.0,
100.0,
6,
0,
0,
0,
1,
2,
0);
if ( (v27 & 1) != 0 )
operator delete(v29);
v13 = 4;
strcpy(v14, "+-");
sub_10028CBE0((float *)v41, 75.0, 0.0);
sub_10028CCE0(&v40, &v39, v41);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
223,
(__int64)&v13,
(float *)&v40,
0,
Int,
0.64999998,
0.0,
100.0,
6,
0,
0,
0,
1,
2,
0);
if ( (v13 & 1) != 0 )
operator delete(v15);
v30 = 12;
strcpy(v31, "Offset");
sub_10028CBE0((float *)v41, -75.0, -25.0);
sub_10028CCE0(&v40, &v39, v41);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
220,
(__int64)&v30,
(float *)&v40,
0,
Int,
0.64999998,
-100.0,
100.0,
6,
0,
0,
0,
1,
2,
0);
if ( (v30 & 1) != 0 )
operator delete(v32);
v16 = 4;
strcpy(v17, "+-");
sub_10028CBE0((float *)v41, 75.0, -25.0);
sub_10028CCE0(&v40, &v39, v41);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
221,
(__int64)&v16,
(float *)&v40,
0,
Int,
0.64999998,
-100.0,
100.0,
6,
0,
0,
0,
1,
2,
0);
if ( (v16 & 1) != 0 )
operator delete(v18);
v33 = 12;
strcpy(v34, "ScaleX");
sub_10028CBE0((float *)v41, -75.0, -50.0);
sub_10028CCE0(&v40, &v39, v41);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
233,
(__int64)&v33,
(float *)&v40,
0,
Float,
0.64999998,
0.0,
4.0,
6,
0,
0,
0,
1,
2,
0);
if ( (v33 & 1) != 0 )
operator delete(v35);
v19 = 4;
strcpy(v20, "+-");
sub_10028CBE0((float *)v41, 75.0, -50.0);
sub_10028CCE0(&v40, &v39, v41);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
234,
(__int64)&v19,
(float *)&v40,
0,
Float,
0.64999998,
0.0,
4.0,
6,
0,
0,
0,
1,
2,
0);
if ( (v19 & 1) != 0 )
operator delete(v21);
v36 = 12;
strcpy(v37, "ScaleY");
sub_10028CBE0((float *)v41, -75.0, -75.0);
sub_10028CCE0(&v40, &v39, v41);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
235,
(__int64)&v36,
(float *)&v40,
0,
Float,
0.64999998,
0.0,
4.0,
6,
0,
0,
0,
1,
2,
0);
if ( (v36 & 1) != 0 )
operator delete(v38);
v22 = 4;
strcpy(v23, "+-");
sub_10028CBE0((float *)v41, 75.0, -75.0);
sub_10028CCE0(&v40, &v39, v41);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
236,
(__int64)&v22,
(float *)&v40,
0,
Float,
0.64999998,
0.0,
4.0,
6,
0,
0,
0,
1,
2,
0);
if ( (v22 & 1) != 0 )
operator delete(v24);
SetupAreaMoveTriggerPopup::addAreaDefaultControls(a1, 3008);
((void (__fastcall *)(SetupAreaTransformTriggerPopup *))a1->updateDefaultTriggerValues)(a1);
SetupTriggerPopup::createPageButtons(a1, (float)(a1->m_width * 0.5) + 15.0, 1);
SetupTriggerPopup::goToPage(a1, 0, 0);
a1->m_disableTextDelegate = 0;
return v4;
}
return result;
}