//
// SetupCameraGuidePopup::init from 0x6b5c44 to 0x6b5f66 (802 bytes)
//
// 1 xrefs:
// > SetupCameraGuidePopup::create @ 0x6b603e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:56:42 +0000
//
GameManager *__fastcall SetupCameraGuidePopup::init(
SetupCameraGuidePopup *this,
CameraTriggerGameObject *a2,
cocos2d::CCArray *a3)
{
GameManager *v4; // r9
cocos2d::CCDirector *v5; // r0
float v7; // [sp+34h] [bp-40h] BYREF
float v8; // [sp+38h] [bp-3Ch]
_BYTE v9[8]; // [sp+3Ch] [bp-38h] BYREF
_BYTE v10[8]; // [sp+44h] [bp-30h] BYREF
_BYTE v11[8]; // [sp+4Ch] [bp-28h] BYREF
int v12[3]; // [sp+54h] [bp-20h] BYREF
int v13; // [sp+60h] [bp-14h] BYREF
int v14; // [sp+64h] [bp-10h]
int v15; // [sp+68h] [bp-Ch]
v4 = SetupTriggerPopup::init(this, a2, a3, 360.0, 250.0, (_BYTE *)&dword_0 + 1, 0.0);
if ( v4 )
{
SetupTriggerPopup::preSetup(this);
*((_BYTE *)this + 652) = 1;
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Camera Guide", 0xCu);
SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)&v13);
std::string::~string((int)&v13);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "OK", 2u);
SetupTriggerPopup::addCloseButton((int)this, (int)&v13);
std::string::~string((int)&v13);
memset(v12, 0, sizeof(v12));
std::string::__init(v12, "Help", 4u);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(
&v13,
"Preview the camera bounds at specified Zoom and Offset values for different aspect ratios. The inn"
"er line is the guaranteed view 4:3 and the outer line is based on your window aspect ratio.",
0xCDu);
SetupTriggerPopup::addHelpButton((int)this, (int)v12, (int)&v13, 1065353216);
std::string::~string((int)&v13);
v5 = (cocos2d::CCDirector *)std::string::~string((int)v12);
cocos2d::CCDirector::sharedDirector(v5);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v7);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, v7 * 0.5, v8 * 0.5);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Zoom:", 5u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 0.0, 70.0);
cocos2d::CCPoint::operator+(v11, v9, v10);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCDictionary **)this,
371,
(unsigned __int8 *)&v13,
(int)v11,
1061997773,
0,
1,
4,
0,
1053609165,
1077936128,
0,
0,
0,
3,
0);
std::string::~string((int)&v13);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Offset X:", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, -85.0, -5.0);
cocos2d::CCPoint::operator+(v11, v9, v10);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCDictionary **)this,
28,
(unsigned __int8 *)&v13,
(int)v11,
1061997773,
0,
2,
10,
0,
-1027080192,
1120403456,
0,
0,
0,
0,
0);
std::string::~string((int)&v13);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Offset Y:", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 90.0, -5.0);
cocos2d::CCPoint::operator+(v11, v9, v10);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCDictionary **)this,
29,
(unsigned __int8 *)&v13,
(int)v11,
1061997773,
0,
2,
10,
0,
-1027080192,
1120403456,
0,
0,
0,
0,
0);
std::string::~string((int)&v13);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Preview\nOpacity", 0xFu);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v11,
(float)((float)(*((float *)this + 139) * 0.5) + (float)(v7 * 0.5)) - 72.0,
(float)((float)(v8 * 0.5) - (float)(*((float *)this + 140) * 0.5)) + 40.0);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCDictionary **)this,
506,
(unsigned __int8 *)&v13,
(int)v11,
1059481190,
0,
1,
5,
0,
0,
0,
0,
0,
0,
2,
0);
std::string::~string((int)&v13);
SetupTriggerPopup::postSetup(this);
}
return v4;
}