//
// SetupStaticCameraPopup::init from 0xab18a8 to 0xab20f0 (2120 bytes)
//
// 2 xrefs:
// > SetupStaticCameraPopup::create @ 0xab2340
// > ??> @ 0xba280
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:00:57 +0000
//
__int64 __fastcall SetupStaticCameraPopup::init(
SetupStaticCameraPopup *this,
CameraTriggerGameObject *a2,
cocos2d::CCArray *a3)
{
unsigned __int8 v4; // w0
unsigned int v5; // w25
cocos2d::CCDirector *v7; // x0
cocos2d::CCDirector *v8; // x0
float v9; // s0
int v10; // w26
_BOOL4 v11; // w27
int v12; // [xsp+20h] [xbp-10h]
int v13; // [xsp+20h] [xbp-10h]
__int64 v14; // [xsp+A8h] [xbp+78h] BYREF
_BYTE v15[8]; // [xsp+B0h] [xbp+80h] BYREF
_BYTE v16[8]; // [xsp+B8h] [xbp+88h] BYREF
__int64 v17; // [xsp+C0h] [xbp+90h] BYREF
__int64 v18[2]; // [xsp+C8h] [xbp+98h] BYREF
void *v19; // [xsp+D8h] [xbp+A8h]
__int64 v20; // [xsp+E0h] [xbp+B0h] BYREF
__int64 v21; // [xsp+E8h] [xbp+B8h]
void *v22; // [xsp+F0h] [xbp+C0h]
v4 = SetupTriggerPopup::init(this, a2, a3, 420.0, 310.0, 1, 0.0);
v5 = v4;
if ( v4 )
{
v7 = (cocos2d::CCDirector *)SetupTriggerPopup::preSetup(this);
v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7);
cocos2d::CCDirector::getWinSize(&v14, v8);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, *(float *)&v14 * 0.5, *((float *)&v14 + 1) * 0.5);
v20 = 0;
v21 = 0;
v22 = nullptr;
std::string::__init(&v20, "Setup Static Camera", 0x13u);
SetupTriggerPopup::addTitle(this, &v20);
if ( (v20 & 1) != 0 )
operator delete(v22);
v18[0] = 0;
v18[1] = 0;
v19 = nullptr;
std::string::__init(v18, "Help", 4u);
v20 = 0;
v21 = 0;
v22 = nullptr;
std::string::__init(
&v20,
"Makes the camera static around a target object.\n"
"Follow makes the camera change according to the object's movement.\n"
"Smooth Velocity makes the transition to the target adapt to current camera velocity. Recommended no easing"
".\n"
"Duration is how long the camera takes to change to the target object.\n"
"Use another trigger with Exit Static to stop.",
0x17Au);
SetupTriggerPopup::addHelpButton(this, v18, &v20, 1.0);
if ( (v20 & 1) != 0 )
operator delete(v22);
if ( (v18[0] & 1) != 0 )
operator delete(v19);
v20 = 0;
v21 = 0;
v22 = nullptr;
std::string::__init(&v20, "OK", 2u);
SetupTriggerPopup::addCloseButton(this, &v20);
if ( (v20 & 1) != 0 )
operator delete(v22);
SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(this);
v20 = 0;
v21 = 0;
v22 = nullptr;
std::string::__init(&v20, "Exit\nStatic", 0xBu);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v16,
(float)(*((float *)this + 183) * 0.5) + -80.0,
(float)(*((float *)this + 184) * 0.5) + -20.0);
cocos2d::CCPoint::operator+(&v17, v15);
SetupTriggerPopup::createToggleValueControl(this, 110, &v20, &v17, 0, 0, 0, 1.0);
if ( (v20 & 1) != 0 )
operator delete(v22);
v20 = 0;
v21 = 0;
v22 = nullptr;
std::string::__init(&v20, "Exit\nInstant", 0xCu);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v16,
(float)(*((float *)this + 183) * 0.5) + -80.0,
(float)(*((float *)this + 184) * 0.5) + -50.0);
cocos2d::CCPoint::operator+(&v17, v15);
SetupTriggerPopup::createToggleValueControl(this, 465, &v20, &v17, 0, 0, 0, 1.0);
if ( (v20 & 1) != 0 )
operator delete(v22);
v20 = 0;
v21 = 0;
v22 = nullptr;
std::string::__init(&v20, "Target Group ID:", 0x10u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, -100.0, 80.0);
cocos2d::CCPoint::operator+(&v17, v15);
IDNameInput::create(this, (char *)this + 544, 1, 71, &v20, &v17, 6, 0, 0.75, 0, 0);
if ( (v20 & 1) != 0 )
operator delete(v22);
v9 = (*(float (__fastcall **)(SetupStaticCameraPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 101);
v20 = 0;
v10 = (int)v9;
v21 = 0;
v22 = nullptr;
v11 = (int)v9 == 1;
std::string::__init(&v20, "X\nOnly", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, 40.0, 80.0);
cocos2d::CCPoint::operator+(&v17, v15);
SetupTriggerPopup::createCustomToggleValueControl((int)this, 1, v11, 1, (int)&v20, (int)&v17, 0, 0, 0);
if ( (v20 & 1) != 0 )
operator delete(v22);
v20 = 0;
v21 = 0;
v22 = nullptr;
std::string::__init(&v20, "Y\nOnly", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, 130.0, 80.0);
cocos2d::CCPoint::operator+(&v17, v15);
SetupTriggerPopup::createCustomToggleValueControl((int)this, 2, v10 == 2, 1, (int)&v20, (int)&v17, 0, 0, 0);
if ( (v20 & 1) != 0 )
operator delete(v22);
v20 = 0;
v21 = 0;
v22 = nullptr;
std::string::__init(&v20, "Follow", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, -130.0, 30.0);
cocos2d::CCPoint::operator+(&v17, v15);
SetupTriggerPopup::createToggleValueControl(this, 212, &v20, &v17, 0, 0, 0, 1.0);
if ( (v20 & 1) != 0 )
operator delete(v22);
v20 = 0;
v21 = 0;
v22 = nullptr;
std::string::__init(&v20, "Easing:", 7u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, 95.0, 30.0);
cocos2d::CCPoint::operator+(&v17, v15);
SetupTriggerPopup::createValueControlAdvanced(this, 213, &v20, &v17, 0, 1, 10, 0, 0.75, 0.0, 50.0, 0, 212, 1, 1, 0);
if ( (v20 & 1) != 0 )
operator delete(v22);
v20 = 0;
v21 = 0;
v22 = nullptr;
std::string::__init(&v20, "Smooth\nVelocity", 0xFu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, -130.0, -10.0);
cocos2d::CCPoint::operator+(&v17, v15);
SetupTriggerPopup::createToggleValueControl(this, 453, &v20, &v17, 0, 0, 0, 1.0);
if ( (v20 & 1) != 0 )
operator delete(v22);
v20 = 0;
v21 = 0;
v22 = nullptr;
std::string::__init(&v20, "Modifier:", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, 95.0, -10.0);
cocos2d::CCPoint::operator+(&v17, v15);
LOBYTE(v12) = 0;
SetupTriggerPopup::createValueControlAdvanced(this, 454, &v20, &v17, 0, 1, 10, 0, 0.75, 0.0, 1.0, 0, 453, 1, 2, v12);
if ( (v20 & 1) != 0 )
operator delete(v22);
v20 = 0;
v21 = 0;
v22 = nullptr;
std::string::__init(&v20, "Duration:", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, -100.0, -60.0);
cocos2d::CCPoint::operator+(&v17, v15);
LOBYTE(v13) = 0;
SetupTriggerPopup::createValueControlAdvanced(this, 10, &v20, &v17, 0, 1, 10, 0, 0.75, 0.0, 10.0, 0, 0, 0, 2, v13);
if ( (v20 & 1) != 0 )
operator delete(v22);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, 105.0, -60.0);
cocos2d::CCPoint::operator+(&v17, v15);
SetupTriggerPopup::createEasingControls(this, &v17, 0, 0, 0.8);
SetupStaticCameraPopup::updateState(this);
SetupTriggerPopup::postSetup(this);
}
return v5;
}