//
// SetupObjectOptions2Popup::init from 0x140400ac0 to 0x140400fbb (1275 bytes)
//
// 2 xrefs:
// > SetGroupIDLayer::onExtra2 @ 0x1403fbad6
// > ??> @ 0x1406d8828
//
// 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
//
// Hidden C++ exception states: #wind=3
bool SetupObjectOptions2Popup::init(SetupObjectOptions2Popup *a1, GameObject *a2, cocos2d::CCArray *a3)
{
bool result; // al
double v5; // xmm0_8
__int64 v6; // rcx
cocos2d::CCDirector *v7; // rax
int v8; // r9d
float v9; // [rsp+88h] [rbp-29h]
int v10[2]; // [rsp+90h] [rbp-21h] BYREF
__int128 *v11; // [rsp+98h] [rbp-19h]
__int128 *v12; // [rsp+A0h] [rbp-11h]
__int128 v13; // [rsp+A8h] [rbp-9h] BYREF
__int64 v14; // [rsp+B8h] [rbp+7h]
__int64 v15; // [rsp+C0h] [rbp+Fh]
__int128 v16; // [rsp+C8h] [rbp+17h] BYREF
__int64 v17; // [rsp+D8h] [rbp+27h]
__int64 v18; // [rsp+E0h] [rbp+2Fh]
char v19; // [rsp+130h] [rbp+7Fh] BYREF
result = SetupTriggerPopup::init(a1, (EffectGameObject *)a2, a3, 320.0, 200.0, 1);
if ( result )
{
a1->m_disableTextDelegate = 1;
a1->determineStartValues(a1);
a1->m_disableTextDelegate = 1;
v14 = 8;
v15 = 15;
v13 = 0x32206769666E6F43uLL;
SetupTriggerPopup::addTitle(a1, &v13);
v13 = 0;
v14 = 2;
v15 = 15;
strcpy((char *)&v13, "OK");
SetupTriggerPopup::addCloseButton(a1, &v13);
*(_QWORD *)v10 = &v13;
v13 = 0;
v14 = 0;
v15 = 15;
*(_QWORD *)&v13 = sub_14003AA10(0xD0u);
v14 = 197;
v15 = 207;
strcpy(
(char *)v13,
"Enter Channel is used to set a specific enter effect.\n"
"Material is used to link with specific events.\n"
"ControlID allows you to reference specific objects when using remapping.");
v16 = 0;
v17 = 4;
v18 = 15;
strcpy((char *)&v16, "Help");
v5 = SetupTriggerPopup::addHelpButton(a1, &v16, &v13);
v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6);
cocos2d::CCDirector::getWinSize(v7);
cocos2d::CCPoint::CCPoint(*(float *)&v5, v9 * 0.5);
v11 = &v13;
v14 = 14;
v15 = 15;
strcpy((char *)&v13, "Enter Channel:");
HIBYTE(v13) = 0;
cocos2d::CCPoint::CCPoint(7.2143221e22, -80.0);
cocos2d::CCPoint::operator+(&v19, v10);
SetupTriggerPopup::createValueControlAdvanced(
(_DWORD)a1,
343,
(unsigned int)&v13,
(unsigned int)v10,
1060320051,
1,
3,
6,
1,
0,
0,
0,
0,
0,
2,
0);
v12 = &v16;
v16 = 0;
v17 = 0;
v18 = 15;
LOBYTE(v16) = 0;
cocos2d::CCPoint::CCPoint(0.0, -5.0);
cocos2d::CCPoint::operator+(&v19, v10);
SetupTriggerPopup::createPlusButton((int)a1, 343, (int)v10, v8, &v16, 0, 0);
v12 = &v13;
*((_QWORD *)&v13 + 1) = 58;
v14 = 9;
v15 = 15;
*(_QWORD *)&v13 = 0x6C6169726574614DLL;
cocos2d::CCPoint::CCPoint(7.2128269e22, 80.0);
cocos2d::CCPoint::operator+(&v19, v10);
SetupTriggerPopup::createValueControlAdvanced(
(_DWORD)a1,
446,
(unsigned int)&v13,
(unsigned int)v10,
1060320051,
1,
3,
6,
1,
0,
0,
0,
0,
0,
2,
0);
if ( a1->m_effectObjects )
{
v12 = &v13;
*((_QWORD *)&v13 + 1) = 14916;
v14 = 10;
v15 = 15;
*(_QWORD *)&v13 = 0x496C6F72746E6F43LL;
cocos2d::CCPoint::CCPoint(7.5562946e31, 80.0);
cocos2d::CCPoint::operator+(&v19, v10);
SetupTriggerPopup::createValueControlAdvanced(
(_DWORD)a1,
534,
(unsigned int)&v13,
(unsigned int)v10,
1060320051,
1,
3,
6,
1,
0,
0,
0,
0,
0,
2,
0);
}
a1->updateDefaultTriggerValues(a1);
a1->m_disableTextDelegate = 0;
return 1;
}
return result;
}