//
// SetupKeyframeAnimPopup::init from 0x6adb38 to 0x6ae0e2 (1450 bytes)
//
// 1 xrefs:
// > SetupKeyframeAnimPopup::create @ 0x6ae172
//
// 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:37 +0000
//
GameManager *__fastcall SetupKeyframeAnimPopup::init(
SetupKeyframeAnimPopup *this,
EffectGameObject *a2,
cocos2d::CCArray *a3)
{
GameManager *v4; // r11
cocos2d::CCDirector *MultiTriggerItemsDefault; // r0
int v7[2]; // [sp+0h] [bp-7Ch] BYREF
void *v8; // [sp+34h] [bp-48h]
float v9; // [sp+3Ch] [bp-40h] BYREF
float v10; // [sp+40h] [bp-3Ch]
_BYTE v11[8]; // [sp+44h] [bp-38h] BYREF
_BYTE v12[8]; // [sp+4Ch] [bp-30h] BYREF
_BYTE v13[8]; // [sp+54h] [bp-28h] BYREF
int v14[3]; // [sp+5Ch] [bp-20h] BYREF
int v15; // [sp+68h] [bp-14h] BYREF
int v16; // [sp+6Ch] [bp-10h]
int v17; // [sp+70h] [bp-Ch]
v8 = &_stack_chk_guard;
v4 = SetupTriggerPopup::init(this, a2, a3, 340.0, 280.0, (_BYTE *)&dword_0 + 1, 0.0);
if ( v4 )
{
SetupTriggerPopup::preSetup(this);
v15 = 0;
v16 = 0;
v17 = 0;
std::string::__init(&v15, "Setup Keyframe Anim", 0x13u);
SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)&v15);
std::string::~string((int)&v15);
v15 = 0;
v16 = 0;
v17 = 0;
std::string::__init(&v15, "OK", 2u);
SetupTriggerPopup::addCloseButton((int)this, (int)&v15);
std::string::~string((int)&v15);
memset(v14, 0, sizeof(v14));
std::string::__init(v14, "Help", 4u);
v15 = 0;
v16 = 0;
v17 = 0;
std::string::__init(
&v15,
"Sets up a keyframe animation using Animation Group ID.\n"
"Use Target ID to specify a different target than the one set in the Keyframe trigger.\n"
"The animation itself is made in the Keyframe trigger.\n"
"By default, objects choose their own center for scaling and rotation, but you can set one using Parent ID."
"\n"
"On page 2, you can put modifiers for the keyframe sequence.",
0x189u);
SetupTriggerPopup::addHelpButton((int)this, (int)v14, (int)&v15, 1065353216);
std::string::~string((int)&v15);
std::string::~string((int)v14);
MultiTriggerItemsDefault = (cocos2d::CCDirector *)SetupTriggerPopup::createMultiTriggerItemsDefault(this);
cocos2d::CCDirector::sharedDirector(MultiTriggerItemsDefault);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v9);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, v9 * 0.5, (float)(v10 * 0.5) + 60.0);
v15 = 0;
v16 = 0;
v17 = 0;
std::string::__init(&v15, "Animation Group ID", 0x12u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, 0.0, 0.0);
cocos2d::CCPoint::operator+(v13, v11, v12);
IDNameInput::create((int)this, (int)this + 440, 1, 76, (int)&v15, (int)v13, 0.8, 6, 0, 0, 0);
std::string::~string((int)&v15);
v15 = 0;
v16 = 0;
v17 = 0;
std::string::__init(&v15, "Target ID", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, -85.0, -70.0);
cocos2d::CCPoint::operator+(v13, v11, v12);
IDNameInput::create((int)this, (int)this + 440, 1, 51, (int)&v15, (int)v13, 0.8, 6, 0, 0, 0);
std::string::~string((int)&v15);
v15 = 0;
v16 = 0;
v17 = 0;
std::string::__init(&v15, "Parent ID", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, 85.0, -70.0);
cocos2d::CCPoint::operator+(v13, v11, v12);
IDNameInput::create((int)this, (int)this + 440, 1, 71, (int)&v15, (int)v13, 0.8, 6, 0, 0, 0);
std::string::~string((int)&v15);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, v9 * 0.5, (float)(v10 * 0.5) + 95.0);
cocos2d::CCPoint::operator=(v11, v13);
v15 = 0;
v16 = 0;
v17 = 0;
std::string::__init(&v15, "Time Mod:", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, 0.0, 0.0);
cocos2d::CCPoint::operator+(v13, v11, v12);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCDictionary **)this,
520,
(unsigned __int8 *)&v15,
(int)v13,
1060320051,
0,
1,
6,
0,
0,
1065353216,
1,
0,
1,
2,
0);
std::string::~string((int)&v15);
v15 = 0;
v16 = 0;
v17 = 0;
std::string::__init(&v15, "Position X Mod:", 0xFu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, 0.0, -30.0);
cocos2d::CCPoint::operator+(v13, v11, v12);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCDictionary **)this,
521,
(unsigned __int8 *)&v15,
(int)v13,
1060320051,
0,
1,
6,
0,
COERCE_INT(-2.0),
0x40000000,
1,
0,
1,
2,
0);
std::string::~string((int)&v15);
v15 = 0;
v16 = 0;
v17 = 0;
std::string::__init(&v15, "Position Y Mod:", 0xFu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, 0.0, -60.0);
cocos2d::CCPoint::operator+(v13, v11, v12);
strcpy((char *)v7, "333?");
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCDictionary **)this,
545,
(unsigned __int8 *)&v15,
(int)v13,
v7[0],
v7[1],
1,
6,
0,
COERCE_INT(-2.0),
0x40000000,
1,
0,
1,
2,
0);
std::string::~string((int)&v15);
v15 = 0;
v16 = 0;
v17 = 0;
std::string::__init(&v15, "Rotation mod:", 0xDu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, 0.0, -90.0);
cocos2d::CCPoint::operator+(v13, v11, v12);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCDictionary **)this,
522,
(unsigned __int8 *)&v15,
(int)v13,
1060320051,
0,
1,
6,
0,
COERCE_INT(-2.0),
0x40000000,
1,
0,
1,
2,
0);
std::string::~string((int)&v15);
v15 = 0;
v16 = 0;
v17 = 0;
std::string::__init(&v15, "Scale X Mod:", 0xCu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, 0.0, -120.0);
cocos2d::CCPoint::operator+(v13, v11, v12);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCDictionary **)this,
523,
(unsigned __int8 *)&v15,
(int)v13,
1060320051,
0,
1,
6,
0,
COERCE_INT(-2.0),
0x40000000,
1,
0,
1,
2,
0);
std::string::~string((int)&v15);
v15 = 0;
v16 = 0;
v17 = 0;
std::string::__init(&v15, "Scale Y Mod:", 0xCu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, 0.0, -150.0);
cocos2d::CCPoint::operator+(v13, v11, v12);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCDictionary **)this,
546,
(unsigned __int8 *)&v15,
(int)v13,
1060320051,
0,
1,
6,
0,
COERCE_INT(-2.0),
0x40000000,
1,
0,
1,
2,
0);
std::string::~string((int)&v15);
SetupTriggerPopup::createPageButtons(this, (float)(*((float *)this + 139) * 0.5) + 15.0, 1u);
SetupTriggerPopup::goToPage((cocos2d::CCArray **)this, nullptr, 0);
SetupTriggerPopup::postSetup(this);
}
return v4;
}