//
// SetupZoomTriggerPopup::init from 0x5045a4 to 0x5047a2 (510 bytes)
//
// 1 xrefs:
// > SetupZoomTriggerPopup::create @ 0x50495a
//
// 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 SetupZoomTriggerPopup::init(SetupZoomTriggerPopup *a1, EffectGameObject *a2, cocos2d::CCArray *a3)
{
_BOOL4 v4; // r10
cocos2d::CCDirector *v5; // r0
cocos2d::CCPoint v6; // r1
int v8; // [sp+4h] [bp-60h]
_BYTE v9[4]; // [sp+38h] [bp-2Ch] BYREF
cocos2d::CCSize v10; // [sp+3Ch] [bp-28h] BYREF
cocos2d::CCPoint v11; // [sp+44h] [bp-20h] BYREF
cocos2d::CCPoint v12; // [sp+4Ch] [bp-18h] BYREF
_BYTE v13[8]; // [sp+54h] [bp-10h] BYREF
v4 = SetupTriggerPopup::init(a1, a2, a3, 360.0, 220.0, 1);
if ( v4 )
{
SetupTriggerPopup::preSetup(a1);
v5 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v10, v5);
sub_776584((int)v13, "Setup Zoom");
SetupTriggerPopup::addTitle(a1, (std::string)v13);
sub_774008(v13);
sub_776584((int)v13, "OK");
SetupTriggerPopup::addCloseButton(a1, (std::string)v13);
sub_774008(v13);
sub_776584((int)&v12, "Help");
sub_776584(
(int)v13,
"Zooms the camera a given amount.\n"
"Time is how fast the zoom happens.\n"
"Easing changes the method used.");
SetupTriggerPopup::addHelpButton(a1, (std::string)&v12, (std::string)v13, 1.0);
sub_774008(v13);
sub_774008(&v12);
SetupTriggerPopup::createMultiTriggerItemsDefault(a1);
cocos2d::CCPoint::CCPoint(&v11, v10.width * 0.5, v10.height * 0.5);
sub_776584((int)v9, "Zoom:");
cocos2d::CCPoint::CCPoint(&v12, 0.0, 55.0);
cocos2d::CCPoint::operator+(v13, &v11, &v12);
SetupTriggerPopup::createValueControlAdvanced(
(int)a1,
371,
(int)v9,
(int)v13,
0.7,
0,
1,
4,
0,
(cocos2d::CCFloat *)0x3ECCCCCD,
3.0,
0,
0,
0,
3,
0);
sub_774008(v9);
sub_776584((int)v9, "Time:");
cocos2d::CCPoint::CCPoint(&v12, -80.0, 0.0);
cocos2d::CCPoint::operator+(v13, &v11, &v12);
SetupTriggerPopup::createValueControlAdvanced(
(int)a1,
10,
(int)v9,
(int)v13,
0.7,
0,
1,
4,
0,
nullptr,
10.0,
0,
0,
0,
2,
0);
sub_774008(v9);
cocos2d::CCPoint::CCPoint(&v12, 80.0, 0.0);
cocos2d::CCPoint::operator+(v13, &v11, &v12);
LODWORD(v6.x) = v13;
v6.y = 0.7;
SetupTriggerPopup::createEasingControls(a1, v6, 0.0, 0, v8);
SetupTriggerPopup::postSetup(a1);
a1->m_disableTextDelegate = 0;
}
return v4;
}