//
// SetTargetIDLayer::init from 0x4f2a80 to 0x4f2c4a (458 bytes)
//
// 1 xrefs:
// > SetTargetIDLayer::create @ 0x4f2e26
//
// 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 SetTargetIDLayer::init(
SetupTriggerPopup *a1,
EffectGameObject *a2,
cocos2d::CCArray *a3,
int a4,
char **a5,
unsigned int a6,
int a7,
SetupTriggerPopup_vtbl *a8)
{
_BOOL4 v9; // r10
cocos2d::CCDirector *v10; // r0
char *v11; // r1
void *v13; // [sp+3Ch] [bp-30h] BYREF
_BYTE v14[4]; // [sp+40h] [bp-2Ch] BYREF
cocos2d::CCSize v15; // [sp+44h] [bp-28h] BYREF
cocos2d::CCPoint v16; // [sp+4Ch] [bp-20h] BYREF
cocos2d::CCPoint v17; // [sp+54h] [bp-18h] BYREF
_BYTE v18[8]; // [sp+5Ch] [bp-10h] BYREF
v9 = SetupTriggerPopup::init(a1, a2, a3, 300.0, 240.0, 1);
if ( v9 )
{
a1[1].FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = a8;
a1[1].m_uID = a6;
a1[1].m_nLuaID = a7;
a1->determineStartValues(a1);
v10 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v15, v10);
sub_775C20(v18);
SetupTriggerPopup::addTitle(a1, (std::string)v18);
sub_774008(v18);
sub_776584((int)v18, "OK");
SetupTriggerPopup::addCloseButton(a1, (std::string)v18);
sub_774008(v18);
v13 = &unk_ACDDA8;
if ( a8 == (SetupTriggerPopup_vtbl *)((char *)&stru_E4C.st_name + 2) )
v11 = "Ensures visibility of every object in Group ID. If one object in the group is visible, all o"
"bject will be visible even if offscreen.\n"
"Processed at level load and cannot be disabled after.";
else
v11 = "Stops an Area trigger using Effect ID.";
sub_7753D4((int)&v13, v11);
sub_776584((int)&v17, "Help");
sub_775C20(v18);
SetupTriggerPopup::addHelpButton(a1, (std::string)&v17, (std::string)v18, 1.0);
sub_774008(v18);
sub_774008(&v17);
cocos2d::CCPoint::CCPoint(&v16, v15.width * 0.5, v15.height * 0.5);
sub_776584((int)v14, *a5);
cocos2d::CCPoint::CCPoint(&v17, 0.0, 0.0);
cocos2d::CCPoint::operator+(v18, &v16, &v17);
SetupTriggerPopup::createValueControlAdvanced(
(int)a1,
51,
(int)v14,
(int)v18,
1.0,
1,
2,
6,
1,
nullptr,
1.0,
0,
0,
0,
2,
0);
sub_774008(v14);
if ( a8 != (SetupTriggerPopup_vtbl *)((char *)&stru_E4C.st_name + 2) )
SetupTriggerPopup::createMultiTriggerItemsDefault(a1);
a1->updateDefaultTriggerValues(a1);
a1->m_disableTextDelegate = 0;
sub_774008(&v13);
}
return v9;
}