//
// EditGameObjectPopup::init from 0x14029af40 to 0x14029b169 (553 bytes)
//
// 2 xrefs:
// > EditorUI::editObjectSpecial @ 0x14011e5d7
// > ??> @ 0x1406d1d78
//
// 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=2
bool EditGameObjectPopup::init(EditGameObjectPopup *a1, EffectGameObject *a2, cocos2d::CCArray *a3, bool a4)
{
bool result; // al
__int64 v7; // rcx
cocos2d::CCDirector *v8; // rax
int v9; // eax
int v10; // eax
float v11; // [rsp+40h] [rbp-40h]
__int128 *v12; // [rsp+50h] [rbp-30h] BYREF
__int128 *v13; // [rsp+58h] [rbp-28h] BYREF
__int128 v14; // [rsp+60h] [rbp-20h] BYREF
__int64 v15; // [rsp+70h] [rbp-10h]
__int64 v16; // [rsp+78h] [rbp-8h]
result = SetupTriggerPopup::init(a1, a2, a3, 200.0, 140.0, 1);
if ( result )
{
a1->m_disableTextDelegate = 1;
a1->determineStartValues(a1);
v15 = 12;
v16 = 15;
strcpy((char *)&v14, "Setup Object");
BYTE13(v14) = 0;
HIWORD(v14) = 0;
SetupTriggerPopup::addTitle(a1, &v14);
v14 = 0;
v15 = 2;
v16 = 15;
strcpy((char *)&v14, "OK");
SetupTriggerPopup::addCloseButton(a1, &v14);
v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7);
cocos2d::CCDirector::getWinSize(v8);
cocos2d::CCPoint::CCPoint(0.0, (float)(v11 * 0.5) - 50.0);
v16 = 15;
if ( a4 )
{
v12 = &v14;
v14 = 0;
v15 = 0;
*(_QWORD *)&v14 = sub_14003AA10(0x20u);
v15 = 17;
v16 = 31;
strcpy((char *)v14, "NO Multi\nActivate");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v13);
SetupTriggerPopup::createToggleValueControl((_DWORD)a1, 444, (unsigned int)&v14, v9, 0, 0, 0, 1065353216);
}
else
{
v13 = &v14;
v15 = 14;
strcpy((char *)&v14, "Multi\nActivate");
HIBYTE(v14) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12);
SetupTriggerPopup::createToggleValueControl((_DWORD)a1, 99, (unsigned int)&v14, v10, 0, 0, 0, 1065353216);
}
a1->updateDefaultTriggerValues(a1);
a1->m_disableTextDelegate = 0;
return 1;
}
return result;
}