//
// SetupTimerControlTriggerPopup::init from 0x6da984 to 0x6dabc4 (576 bytes)
//
// 1 xrefs:
// > SetupTimerControlTriggerPopup::create @ 0x6dac76
//
// 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:57:10 +0000
//
GameManager *__fastcall SetupTimerControlTriggerPopup::init(
SetupTimerControlTriggerPopup *this,
TimerTriggerGameObject *a2,
cocos2d::CCArray *a3)
{
GameManager *v4; // r9
cocos2d::CCDirector *MultiTriggerItemsDefault; // r0
int v6; // s16
float v8[2]; // [sp+24h] [bp-40h] BYREF
_BYTE v9[8]; // [sp+2Ch] [bp-38h] BYREF
_BYTE v10[8]; // [sp+34h] [bp-30h] BYREF
_BYTE v11[8]; // [sp+3Ch] [bp-28h] BYREF
int v12[3]; // [sp+44h] [bp-20h] BYREF
int v13; // [sp+50h] [bp-14h] BYREF
int v14; // [sp+54h] [bp-10h]
int v15; // [sp+58h] [bp-Ch]
v4 = SetupTriggerPopup::init(this, a2, a3, 300.0, 240.0, (_BYTE *)&dword_0 + 1, 0.0);
if ( v4 )
{
SetupTriggerPopup::preSetup(this);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Time Control Trigger", 0x14u);
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, "Starts or stops a timer given by ItemID.", 0x28u);
SetupTriggerPopup::addHelpButton((int)this, (int)v12, (int)&v13, 1065353216);
std::string::~string((int)&v13);
std::string::~string((int)v12);
MultiTriggerItemsDefault = (cocos2d::CCDirector *)SetupTriggerPopup::createMultiTriggerItemsDefault(this);
cocos2d::CCDirector::sharedDirector(MultiTriggerItemsDefault);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v8);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, v8[0] * 0.5, v8[1] * 0.5);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "TimerID", 7u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 0.0, 50.0);
cocos2d::CCPoint::operator+(v11, v9, v10);
IDNameInput::create((int)this, (int)this + 440, 4, 80, (int)&v13, (int)v11, 0.8, 6, 0, 0, 0);
std::string::~string((int)&v13);
v6 = (int)(*(float (__fastcall **)(SetupTimerControlTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 472);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Start", 5u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, -60.0, -20.0);
cocos2d::CCPoint::operator+(v11, v9, v10);
SetupTriggerPopup::createCustomToggleValueControl(
(int)this,
0,
v6 == 0,
1,
(int)&v13,
(const cocos2d::CCPoint *)v11,
1,
0,
0);
std::string::~string((int)&v13);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Stop", 4u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 60.0, -20.0);
cocos2d::CCPoint::operator+(v11, v9, v10);
SetupTriggerPopup::createCustomToggleValueControl(
(int)this,
1,
v6 == 1,
1,
(int)&v13,
(const cocos2d::CCPoint *)v11,
1,
0,
0);
std::string::~string((int)&v13);
SetupTriggerPopup::postSetup(this);
}
return v4;
}