//
// SetupResetTriggerPopup::init from 0x579da4 to 0x579efe (346 bytes)
//
// 1 xrefs:
// > SetupResetTriggerPopup::create @ 0x579f9e
//
// 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 SetupResetTriggerPopup::init(SetupResetTriggerPopup *a1, EffectGameObject *a2, cocos2d::CCArray *a3)
{
_BOOL4 v4; // r9
cocos2d::CCDirector *v5; // r0
_BYTE v7[4]; // [sp+38h] [bp-20h] BYREF
cocos2d::CCSize v8; // [sp+3Ch] [bp-1Ch] BYREF
cocos2d::CCPoint v9; // [sp+44h] [bp-14h] BYREF
cocos2d::CCPoint v10; // [sp+4Ch] [bp-Ch] BYREF
v4 = SetupTriggerPopup::init(a1, a2, a3, 300.0, 220.0, 1);
if ( v4 )
{
SetupTriggerPopup::preSetup(a1);
sub_776584((int)&v10, "Reset Trigger");
SetupTriggerPopup::addTitle((int)a1);
sub_774008(&v10);
sub_776584((int)&v10, "OK");
SetupTriggerPopup::addCloseButton((unsigned int)a1, (ButtonSprite **)&v10);
sub_774008(&v10);
sub_776584((int)&v9, "Help");
sub_776584(
(int)&v10,
"Resets certain objects, such as collectables and checkpoints, given by Group ID. These will then r"
"eappear and can be collected again.");
SetupTriggerPopup::addHelpButton((int)a1, (int)&v9, (int)&v10, 1065353216);
sub_774008(&v10);
sub_774008(&v9);
SetupTriggerPopup::createMultiTriggerItemsDefault(a1);
v5 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v8, v5);
cocos2d::CCPoint::CCPoint(&v9, v8.width * 0.5, v8.height * 0.5);
sub_776584((int)v7, "Group ID:");
cocos2d::CCPoint::CCPoint(&v10, &v9);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
51,
(int)v7,
&v10,
(cocos2d::CCZone *)0x3F4CCCCD,
1,
Int,
10,
1,
nullptr,
9999.0,
0,
0,
0,
0,
0);
sub_774008(v7);
SetupTriggerPopup::postSetup(a1);
}
return v4;
}