//
// SetupAreaMoveTriggerPopup::addAreaDefaultControls from 0x68f29c to 0x68fe40 (2980 bytes)
//
// 6 xrefs:
// > SetupAreaMoveTriggerPopup::init @ 0x690646
// > SetupAreaTransformTriggerPopup::init @ 0x690c48
// > SetupAreaRotateTriggerPopup::init @ 0x69117a
// > SetupAreaFadeTriggerPopup::init @ 0x691692
// > SetupAreaTintTriggerPopup::init @ 0x691d1e
// > SetupAreaTriggerPopup::init @ 0x692154
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:56:11 +0000
//
int __fastcall SetupAreaMoveTriggerPopup::addAreaDefaultControls(cocos2d::CCArray **this, int a2)
{
const char *v3; // r10
int v4; // r7
cocos2d::CCArray *v5; // r0
cocos2d::CCObject *v6; // r0
cocos2d::CCArray *v7; // r0
size_t v8; // r0
const cocos2d::CCPoint *v9; // r11
int v10; // r10
cocos2d::CCNodeRGBA *ToggleButton; // r11
int v12; // r3
int v13; // r1
cocos2d::CCArray *v14; // r0
int (__fastcall *v15)(cocos2d::CCArray **, int, bool); // r5
float v16; // r0
cocos2d::CCObject *v17; // r0
int v18; // r9
int v19; // s22
cocos2d::CCArray *PageContainer; // r8
char *v21; // r1
const char *v22; // r1
int v23; // r11
char *v24; // r1
char *v25; // r1
cocos2d::CCSprite *v26; // r0
ButtonSprite *v27; // r10
char *v28; // r3
ButtonSprite *v29; // r0
cocos2d::CCObject *v30; // r7
void (__fastcall *v31)(ButtonSprite *, _BYTE *); // r5
float v32; // s19
int v33; // r0
float v34; // s19
const cocos2d::CCPoint *v35; // r6
void (__fastcall *v36)(cocos2d::CCObject *, _BYTE *); // r5
int result; // r0
float v38; // [sp+14h] [bp-88h]
cocos2d::CCArray *v39; // [sp+38h] [bp-64h]
_BOOL4 v40; // [sp+38h] [bp-64h]
_BOOL4 v41; // [sp+3Ch] [bp-60h]
bool v43; // [sp+5Eh] [bp-3Eh] BYREF
bool v44; // [sp+5Fh] [bp-3Dh] BYREF
int v45; // [sp+60h] [bp-3Ch] BYREF
float v46; // [sp+64h] [bp-38h] BYREF
float v47; // [sp+68h] [bp-34h]
_BYTE v48[8]; // [sp+6Ch] [bp-30h] BYREF
_BYTE v49[8]; // [sp+74h] [bp-28h] BYREF
_BYTE v50[8]; // [sp+7Ch] [bp-20h] BYREF
_BYTE v51[8]; // [sp+84h] [bp-18h] BYREF
_BYTE v52[8]; // [sp+8Ch] [bp-10h] BYREF
_BYTE v53[8]; // [sp+94h] [bp-8h] BYREF
_DWORD (*v54)(SetupAreaMoveTriggerPopup *__hidden, cocos2d::CCObject *); // [sp+9Ch] [bp+0h] BYREF
int v55; // [sp+A0h] [bp+4h]
_DWORD v56[2]; // [sp+A4h] [bp+8h] BYREF
int v57[3]; // [sp+ACh] [bp+10h] BYREF
int v58; // [sp+B8h] [bp+1Ch] BYREF
int v59; // [sp+BCh] [bp+20h]
cocos2d::CCSprite *v60; // [sp+C0h] [bp+24h]
cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v46);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v48, v46 * 0.5, (float)(v47 * 0.5) + 95.0);
v58 = 0;
v59 = 0;
v60 = nullptr;
std::string::__init(&v58, "OffsetY", 7u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v54, -75.0, -0.0);
cocos2d::CCPoint::operator+(v56, v48, &v54);
SetupTriggerPopup::createValueControlAdvanced(
this,
252,
(unsigned __int8 *)&v58,
(int)v56,
1059481190,
0,
2,
6,
0,
0,
1120403456,
1,
99,
1,
2,
0);
std::string::~string((int)&v58);
v58 = 0;
v59 = 0;
v60 = nullptr;
std::string::__init(&v58, "+-", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v54, 75.0, -0.0);
cocos2d::CCPoint::operator+(v56, v48, &v54);
SetupTriggerPopup::createValueControlAdvanced(
this,
253,
(unsigned __int8 *)&v58,
(int)v56,
1059481190,
0,
2,
6,
0,
0,
1120403456,
1,
99,
1,
2,
0);
v3 = (const char *)(this + 110);
std::string::~string((int)&v58);
v58 = 0;
v59 = 0;
v60 = nullptr;
std::string::__init(&v58, "EffectID:", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v54, 85.0, -50.0);
cocos2d::CCPoint::operator+(v56, v48, &v54);
IDNameInput::create((int)this, (int)(this + 110), 5, 225, (int)&v58, (int)v56, 0.65, 6, 0, 1, 0);
std::string::~string((int)&v58);
v58 = 0;
v59 = 0;
v60 = nullptr;
std::string::__init(&v58, "Target Group ID:", 0x10u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v54, 85.0, -100.0);
cocos2d::CCPoint::operator+(v56, v48, &v54);
IDNameInput::create((int)this, (int)(this + 110), 1, 51, (int)&v58, (int)v56, 0.65, 6, 0, 1, 0);
std::string::~string((int)&v58);
v58 = 0;
v59 = 0;
v60 = nullptr;
std::string::__init(&v58, "Center Group ID:", 0x10u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v54, 85.0, -150.0);
cocos2d::CCPoint::operator+(v56, v48, &v54);
IDNameInput::create((int)this, (int)(this + 110), 1, 71, (int)&v58, (int)v56, 0.65, 6, 0, 1, 0);
std::string::~string((int)&v58);
v58 = 0;
v59 = 0;
v60 = nullptr;
std::string::__init(&v58, "Priority:", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v54, 85.0, -200.0);
cocos2d::CCPoint::operator+(v56, v48, &v54);
SetupTriggerPopup::createValueControlAdvanced(
this,
341,
(unsigned __int8 *)&v58,
(int)v56,
1059481190,
1,
2,
6,
1,
0,
1120403456,
1,
0,
0,
2,
0);
std::string::~string((int)&v58);
v58 = 0;
v59 = 0;
v60 = nullptr;
std::string::__init(&v58, "ModFront", 8u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v54, -75.0, -25.0);
cocos2d::CCPoint::operator+(v56, v48, &v54);
SetupTriggerPopup::createValueControlAdvanced(
this,
263,
(unsigned __int8 *)&v58,
(int)v56,
1059481190,
0,
1,
6,
0,
0,
COERCE_INT(10.0),
1,
0,
1,
2,
0);
std::string::~string((int)&v58);
v58 = 0;
v59 = 0;
v60 = nullptr;
std::string::__init(&v58, "ModBack", 7u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v54, -75.0, -50.0);
cocos2d::CCPoint::operator+(v56, v48, &v54);
SetupTriggerPopup::createValueControlAdvanced(
this,
264,
(unsigned __int8 *)&v58,
(int)v56,
1059481190,
0,
1,
6,
0,
0,
COERCE_INT(10.0),
1,
0,
1,
2,
0);
std::string::~string((int)&v58);
v58 = 0;
v59 = 0;
v60 = nullptr;
std::string::__init(&v58, "Deadzone", 8u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v54, -75.0, -75.0);
cocos2d::CCPoint::operator+(v56, v48, &v54);
SetupTriggerPopup::createValueControlAdvanced(
this,
282,
(unsigned __int8 *)&v58,
(int)v56,
1059481190,
0,
1,
6,
0,
0,
COERCE_INT(1.0),
1,
0,
1,
2,
0);
v4 = 1;
v5 = (cocos2d::CCArray *)std::string::~string((int)&v58);
v6 = (cocos2d::CCObject *)cocos2d::CCArray::create(v5);
*(this + 179) = v6;
cocos2d::CCObject::retain(v6);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, 170.0, 40.0);
v7 = (cocos2d::CCArray *)cocos2d::CCPoint::operator+(v49, v48, v56);
do
{
v39 = (cocos2d::CCArray *)cocos2d::CCArray::create(v7);
targetKeyToString(v57, -v4);
if ( (v57[0] & 1) == 0 )
v3 = (char *)v57 + 1;
v58 = 0;
if ( (v57[0] & 1) != 0 )
v3 = (const char *)v57[2];
v59 = 0;
v60 = nullptr;
v8 = strlen(v3);
std::string::__init(&v58, v3, v8);
v9 = *(this + 111);
v55 = 0;
v54 = SetupAreaMoveTriggerPopup::onSpecialTarget;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v52, 0.0, (float)v4 * -23.0);
cocos2d::CCPoint::operator+(v53, v49, v52);
v10 = (int)*(this + 115);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, 6.0, 0.0);
ToggleButton = GameToolbox::createToggleButton(
(int)&v58,
(int)v54,
v55,
0,
v9,
(int)v53,
(int)this,
v10,
0.6,
0.35,
110.0,
(int)v56,
"bigFont.fnt",
0,
0,
v39);
std::string::~string((int)&v58);
std::string::~string((int)v57);
v12 = *(_DWORD *)ToggleButton;
v3 = (_BYTE *)(&dword_0 + 1);
*((_BYTE *)ToggleButton + 309) = 1;
v13 = -v4++;
(*(void (__fastcall **)(cocos2d::CCNodeRGBA *, int))(v12 + 36))(ToggleButton, v13);
SetupTriggerPopup::addObjectsToPage(this, v39, 1u);
v7 = (cocos2d::CCArray *)cocos2d::CCArray::addObject(*(this + 179), ToggleButton);
}
while ( v4 != 12 );
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v50, (float)(v46 * 0.5) - 10.0, (float)(v47 * 0.5) - 80.0);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v51,
(float)((float)(v46 * 0.5) - (float)(*((float *)this + 139) * 0.5)) + 20.0,
(float)((float)((float)(v47 * 0.5) - (float)(*((float *)this + 140) * 0.5)) + 20.0) + 30.0);
v58 = 0;
v59 = 0;
v60 = nullptr;
std::string::__init(&v58, "Ignore\nGParent", 0xEu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v53, 90.0, 0.0);
cocos2d::CCPoint::operator+(v56, v51, v53);
SetupTriggerPopup::createToggleValueControl((int)this, 280, (int)&v58, (const cocos2d::CCPoint *)v56, 0, 1u, 0, 1.0);
std::string::~string((int)&v58);
v58 = 0;
v59 = 0;
v60 = nullptr;
std::string::__init(&v58, "Ignore\nLinked", 0xDu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, (const cocos2d::CCPoint *)v51);
SetupTriggerPopup::createToggleValueControl((int)this, 281, (int)&v58, (const cocos2d::CCPoint *)v56, 0, 1u, 0, 1.0);
std::string::~string((int)&v58);
v58 = 0;
v59 = 0;
v60 = nullptr;
std::string::__init(&v58, "DE\nAP", 5u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v53, 180.0, 20.0);
cocos2d::CCPoint::operator+(v56, v51, v53);
SetupTriggerPopup::createToggleValueControl(
(int)this,
539,
(int)&v58,
(const cocos2d::CCPoint *)v56,
0,
(unsigned int)&dword_0 + 1,
0,
1.0);
v14 = (cocos2d::CCArray *)std::string::~string((int)&v58);
if ( (unsigned int)(a2 - 3006) <= 2 )
{
v58 = 0;
v59 = 0;
v60 = nullptr;
std::string::__init(&v58, "Easing", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v53, -95.0, -150.0);
cocos2d::CCPoint::operator+(v56, v48, v53);
SetupTriggerPopup::createCustomEasingControls(
(int)this,
(int)&v58,
(int)v56,
(cocos2d::CCFloat *)0x3F333333,
(cocos2d::CCInteger *)((char *)&dword_F0 + 2),
(cocos2d::CCInteger *)((char *)&dword_F0 + 3),
0,
0);
std::string::~string((int)&v58);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v52,
(float)(v46 * 0.5) + 50.0,
(float)((float)(v47 * 0.5) - (float)(*((float *)this + 140) * 0.5)) + 20.0);
v58 = 0;
v59 = 0;
v60 = nullptr;
std::string::__init(&v58, "Ease\nOut", 8u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, (const cocos2d::CCPoint *)v52);
SetupTriggerPopup::createToggleValueControl((int)this, 261, (int)&v58, (const cocos2d::CCPoint *)v56, 0, 0, 0, 1.0);
std::string::~string((int)&v58);
v58 = 0;
v59 = 0;
v60 = nullptr;
std::string::__init(&v58, "Easing2", 7u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v53, 95.0, -150.0);
cocos2d::CCPoint::operator+(v56, v48, v53);
SetupTriggerPopup::createCustomEasingControls(
(int)this,
(int)&v58,
(int)v56,
(cocos2d::CCFloat *)0x3F333333,
(cocos2d::CCInteger *)&dword_F8,
(cocos2d::CCInteger *)((char *)&dword_F8 + 1),
0,
9);
std::string::~string((int)&v58);
v15 = *((int (__fastcall **)(cocos2d::CCArray **, int, bool))*this + 169);
v16 = COERCE_FLOAT((*((int (__fastcall **)(cocos2d::CCArray **, int))*this + 183))(this, 261));
v14 = (cocos2d::CCArray *)v15(this, 9, v16 != 0.0);
}
v17 = (cocos2d::CCObject *)cocos2d::CCArray::create(v14);
v18 = 0;
*(this + 178) = v17;
cocos2d::CCObject::retain(v17);
v19 = (int)COERCE_FLOAT((*((int (__fastcall **)(cocos2d::CCArray **, int))*this + 183))(this, 262));
v40 = COERCE_FLOAT((*((int (__fastcall **)(cocos2d::CCArray **, int))*this + 183))(this, 276)) != 0.0;
v41 = COERCE_FLOAT((*((int (__fastcall **)(cocos2d::CCArray **, int))*this + 183))(this, 283)) != 0.0;
PageContainer = (cocos2d::CCArray *)SetupTriggerPopup::getPageContainer(this, 1u);
do
{
v58 = 0;
v59 = 0;
v60 = nullptr;
switch ( v18 )
{
case 1:
v21 = "edit_areaModeBtn05_001.png";
goto LABEL_12;
case 2:
v21 = "edit_areaModeBtn01_001.png";
goto LABEL_12;
case 3:
v21 = "edit_areaModeBtn02_001.png";
goto LABEL_12;
case 4:
v21 = "edit_areaModeBtn03_001.png";
goto LABEL_12;
case 5:
v21 = "edit_areaModeBtn03b_001.png";
goto LABEL_12;
case 6:
v24 = "edit_areaModeBtn01_001.png";
goto LABEL_19;
case 7:
v24 = "edit_areaModeBtn02_001.png";
LABEL_19:
std::string::assign(&v58, v24);
v23 = 1119092736;
break;
case 8:
v25 = "edit_areaModeBtn03b_001.png";
goto LABEL_22;
case 9:
v25 = "edit_areaModeBtn03_001.png";
LABEL_22:
std::string::assign(&v58, v25);
v23 = -1028390912;
break;
default:
v21 = "edit_areaModeBtn04_001.png";
LABEL_12:
std::string::assign(&v58, v21);
v23 = 0;
break;
}
if ( (v58 & 1) != 0 )
v26 = v60;
else
v26 = (cocos2d::CCSprite *)((char *)&v58 + 1);
v27 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName(v26, v22);
(*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v27 + 180))(v27, v23);
SetupAreaMoveTriggerPopup::getModeValues((SetupAreaMoveTriggerPopup *)this, v18, &v45, &v43, &v44);
if ( v19 == v45 )
{
if ( v43 == v40 )
{
if ( v44 == v41 )
v28 = "GJ_button_02.png";
else
v28 = "GJ_button_04.png";
}
else
{
v28 = "GJ_button_04.png";
}
}
else
{
v28 = "GJ_button_04.png";
}
v29 = ButtonSprite::create(
v27,
(cocos2d::CCSprite *)&dword_20,
0,
32.0,
1.0,
(_BOOL4)&dword_0 + 1,
v28,
(const char *)&dword_0 + 1,
0.0,
v38);
v56[1] = 0;
v56[0] = SetupAreaMoveTriggerPopup::onMode;
v30 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(
(int)v29,
0,
(int)this,
(int)SetupAreaMoveTriggerPopup::onMode,
0);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v30 + 36))(v30, v18);
cocos2d::CCArray::addObject(PageContainer, v30);
cocos2d::CCArray::addObject(*(this + 178), v30);
(*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v27 + 80))(v27, 1072064102);
v31 = *(void (__fastcall **)(ButtonSprite *, _BYTE *))(*(_DWORD *)v27 + 92);
v32 = *(float *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v30 + 164))(v30);
v33 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v30 + 164))(v30);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v53, v32 * 0.5, *(float *)(v33 + 4) * 0.5);
v31(v27, v53);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v30 + 80))(v30, 1056964608);
*((_DWORD *)v30 + 79) = 1056964608;
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v30);
v34 = -25.0;
v35 = *(this + 111);
v36 = *(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v30 + 92);
if ( v18 <= 4 )
v34 = 0.0;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v52,
(float)((float)((float)(v46 * 0.5) - (float)(*((float *)this + 139) * 0.5)) + 50.0)
+ (float)((float)(v18 % 5) * 25.0),
(float)((float)(v47 * 0.5) - 20.0) + v34);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v53, v35);
v36(v30, v53);
++v18;
result = std::string::~string((int)&v58);
}
while ( v18 != 10 );
return result;
}