//
// EditGameObjectPopup::init from 0x4af4cc to 0x4af5fa (302 bytes)
//
// 1 xrefs:
// > EditGameObjectPopup::create @ 0x4af696
//
// 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 EditGameObjectPopup::init(EditGameObjectPopup *a1, EffectGameObject *a2, cocos2d::CCArray *a3, bool a4)
{
_BOOL4 v4; // r10
_BOOL4 v6; // r9
cocos2d::CCDirector *v7; // r0
_BYTE v9[4]; // [sp+18h] [bp-24h] BYREF
cocos2d::CCSize v10; // [sp+1Ch] [bp-20h] BYREF
cocos2d::CCPoint v11; // [sp+24h] [bp-18h] BYREF
cocos2d::CCPoint v12; // [sp+2Ch] [bp-10h] BYREF
v4 = a4;
v6 = SetupTriggerPopup::init(a1, a2, a3, 200.0, 140.0, 1);
if ( v6 )
{
SetupTriggerPopup::preSetup(a1);
sub_776584((int)&v12, "Setup Object");
SetupTriggerPopup::addTitle(a1, (std::string)&v12);
sub_774008(&v12);
sub_776584((int)&v12, "OK");
SetupTriggerPopup::addCloseButton(a1, (std::string)&v12);
sub_774008(&v12);
v7 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v10, v7);
cocos2d::CCPoint::CCPoint(&v11, (float)(v10.width * 0.5) - 50.0, v10.height * 0.5);
if ( v4 )
{
sub_776584((int)v9, "NO Multi\nActivate");
cocos2d::CCPoint::CCPoint(&v12, &v11);
SetupTriggerPopup::createToggleValueControl((int)a1, 444, (int)v9, (int)&v12, 0, 0, 0, 1.0);
}
else
{
sub_776584((int)v9, "Multi\nActivate");
cocos2d::CCPoint::CCPoint(&v12, &v11);
SetupTriggerPopup::createToggleValueControl((int)a1, 99, (int)v9, (int)&v12, 0, 0, 0, 1.0);
}
sub_774008(v9);
SetupTriggerPopup::postSetup(a1);
}
return v6;
}