//
// SetupAnimSettingsPopup::init from 0x625130 to 0x625600 (1232 bytes)
//
// 1 xrefs:
// > SetupAnimSettingsPopup::create @ 0x625804
//
// 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:55:09 +0000
//
int __fastcall SetupAnimSettingsPopup::init(SetupAnimSettingsPopup *this, EffectGameObject *a2, cocos2d::CCArray *a3)
{
int v4; // r11
cocos2d::CCDirector *v5; // r0
float v7[2]; // [sp+3Ch] [bp-48h] BYREF
_BYTE v8[8]; // [sp+44h] [bp-40h] BYREF
_BYTE v9[8]; // [sp+4Ch] [bp-38h] BYREF
_BYTE v10[8]; // [sp+54h] [bp-30h] BYREF
_BYTE v11[8]; // [sp+5Ch] [bp-28h] BYREF
int v12[3]; // [sp+64h] [bp-20h] BYREF
int v13; // [sp+70h] [bp-14h] BYREF
int v14; // [sp+74h] [bp-10h]
int v15; // [sp+78h] [bp-Ch]
v4 = SetupTriggerPopup::init(this, a2, a3, 400.0, 240.0, 1, 0.0);
if ( v4 )
{
SetupTriggerPopup::preSetup(this);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Edit Animation Settings", 0x17u);
SetupTriggerPopup::addTitle(this, &v13);
std::string::~string((int)&v13);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "OK", 2u);
SetupTriggerPopup::addCloseButton(this, &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,
"Disable Anim Shine removes the white flash at the start of the animation for some animated objects.\n"
"Use Speed lets you set a custom animation speed.\n"
"Use Animate On Trigger to toggle on with Animate trigger.\n"
"Only If Active only does this if the object is active.\n"
"Single Frame lets you select a specific frame of the animation.\n"
"Offset Anim will offset the animation the value of single frame.",
0x1BEu);
SetupTriggerPopup::addHelpButton(this, v12, &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 *)v8, v7[0] * 0.5, v7[1] * 0.5);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, -40.0, 60.0);
cocos2d::CCPoint::operator+(v9, v8, v11);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Randomize\nStart", 0xFu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, -125.0, 0.0);
cocos2d::CCPoint::operator+(v11, v9, v10);
SetupTriggerPopup::createToggleValueControl((int)this, 106, (int)&v13, (int)v11, 0, 0, 0, 1.0);
std::string::~string((int)&v13);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Use\nSpeed", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 0.0, 0.0);
cocos2d::CCPoint::operator+(v11, v9, v10);
SetupTriggerPopup::createToggleValueControl((int)this, 122, (int)&v13, (int)v11, 0, 0, 0, 1.0);
std::string::~string((int)&v13);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Animate\non Trigger", 0x12u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 125.0, 0.0);
cocos2d::CCPoint::operator+(v11, v9, v10);
SetupTriggerPopup::createToggleValueControl((int)this, 123, (int)&v13, (int)v11, 0, 0, 0, 1.0);
std::string::~string((int)&v13);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Disable\ndelayed\nloop", 0x14u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, -125.0, -40.0);
cocos2d::CCPoint::operator+(v11, v9, v10);
SetupTriggerPopup::createToggleValueControl((int)this, 126, (int)&v13, (int)v11, 0, 0, 0, 1.0);
std::string::~string((int)&v13);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Disable\nAnimShine", 0x11u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 0.0, -40.0);
cocos2d::CCPoint::operator+(v11, v9, v10);
SetupTriggerPopup::createToggleValueControl((int)this, 127, (int)&v13, (int)v11, 0, 0, 0, 1.0);
std::string::~string((int)&v13);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Only if\nactive", 0xEu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 125.0, -40.0);
cocos2d::CCPoint::operator+(v11, v9, v10);
SetupTriggerPopup::createToggleValueControl((int)this, 214, (int)&v13, (int)v11, 0, 0, 0, 1.0);
std::string::~string((int)&v13);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Speed:", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, -100.0, -30.0);
cocos2d::CCPoint::operator+(v11, v8, v10);
SetupTriggerPopup::createValueControlAdvanced(
this,
107,
&v13,
v11,
1061997773,
0,
1,
6,
0,
-1073741824,
0x40000000,
0,
0,
0,
2,
0);
std::string::~string((int)&v13);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Single Frame:", 0xDu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 100.0, -45.0);
cocos2d::CCPoint::operator+(v11, v8, v10);
SetupTriggerPopup::createValueControlAdvanced(
this,
462,
&v13,
v11,
1061997773,
1,
3,
3,
1,
0,
1101004800,
0,
0,
0,
2,
0);
std::string::~string((int)&v13);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "Offset\nAnim", 0xBu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 125.0, -155.0);
cocos2d::CCPoint::operator+(v11, v9, v10);
SetupTriggerPopup::createToggleValueControl((int)this, 592, (int)&v13, (int)v11, 0, 0, 0, 1.0);
std::string::~string((int)&v13);
SetupTriggerPopup::postSetup(this);
}
return v4;
}