//
// SetupProgressPopup::init from 0x6b67b4 to 0x6b6ae2 (814 bytes)
//
// 1 xrefs:
// > SetupProgressPopup::create @ 0x6b6ba2
//
// 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:43 +0000
//
GameManager *__fastcall SetupProgressPopup::init(
SetupProgressPopup *this,
ProgressGameObject *a2,
cocos2d::CCArray *a3)
{
GameManager *v4; // r10
cocos2d::CCDirector *MultiTriggerItemsDefault; // r0
void (__fastcall *v6)(SetupProgressPopup *, int, int); // r4
int v7; // r0
float v9[2]; // [sp+3Ch] [bp-40h] BYREF
_BYTE v10[8]; // [sp+44h] [bp-38h] BYREF
_BYTE v11[8]; // [sp+4Ch] [bp-30h] BYREF
_BYTE v12[8]; // [sp+54h] [bp-28h] BYREF
int v13[3]; // [sp+5Ch] [bp-20h] BYREF
int v14; // [sp+68h] [bp-14h] BYREF
int v15; // [sp+6Ch] [bp-10h]
int v16; // [sp+70h] [bp-Ch]
v4 = SetupTriggerPopup::init(this, a2, a3, 340.0, 240.0, (_BYTE *)&dword_0 + 1, 0.0);
if ( v4 )
{
SetupTriggerPopup::preSetup(this);
v14 = 0;
v15 = 0;
v16 = 0;
std::string::__init(&v14, "Progress", 8u);
SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)&v14);
std::string::~string((int)&v14);
v14 = 0;
v15 = 0;
v16 = 0;
std::string::__init(&v14, "OK", 2u);
SetupTriggerPopup::addCloseButton((int)this, (int)&v14);
std::string::~string((int)&v14);
memset(v13, 0, sizeof(v13));
std::string::__init(v13, "Help", 4u);
v14 = 0;
v15 = 0;
v16 = 0;
std::string::__init(
&v14,
"Sets the player's Platformer progress to the selected value.\n"
"Lower values are ignored.\n"
"Add increases the current progress by that amount.\n"
"Input takes the value from an itemID instead.\n"
"Progress is saved on death, like Classic percent, and awards orbs in rated levels.\n"
"Target ItemID: Progress is also written to this itemID.",
0x15Au);
SetupTriggerPopup::addHelpButton((int)this, (int)v13, (int)&v14, 1065353216);
std::string::~string((int)&v14);
std::string::~string((int)v13);
MultiTriggerItemsDefault = (cocos2d::CCDirector *)SetupTriggerPopup::createMultiTriggerItemsDefault(this);
cocos2d::CCDirector::sharedDirector(MultiTriggerItemsDefault);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v9);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, v9[0] * 0.5, v9[1] * 0.5);
v14 = 0;
v15 = 0;
v16 = 0;
std::string::__init(&v14, "Input", 5u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, -80.0, 50.0);
cocos2d::CCPoint::operator+(v12, v10, v11);
SetupTriggerPopup::createToggleValueControl((int)this, 605, (int)&v14, (const cocos2d::CCPoint *)v12, 1, 0, 0, 1.0);
std::string::~string((int)&v14);
v14 = 0;
v15 = 0;
v16 = 0;
std::string::__init(&v14, "Percent:", 8u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, 50.0, 65.0);
cocos2d::CCPoint::operator+(v12, v10, v11);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCDictionary **)this,
602,
(unsigned __int8 *)&v14,
(int)v12,
1061997773,
0,
2,
3,
0,
0,
1120272384,
0,
602,
0,
0,
0);
std::string::~string((int)&v14);
SetupTriggerPopup::toggleLimitValue((int **)this, 602, 1);
v14 = 0;
v15 = 0;
v16 = 0;
std::string::__init(&v14, "ItemID:", 7u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, 50.0, 50.0);
cocos2d::CCPoint::operator+(v12, v10, v11);
IDNameInput::create((int)this, (int)this + 440, 2, 95, (int)&v14, (int)v12, 0.8, 6, 605, 0, 0);
std::string::~string((int)&v14);
v14 = 0;
v15 = 0;
v16 = 0;
std::string::__init(&v14, "Add", 3u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, -80.0, -20.0);
cocos2d::CCPoint::operator+(v12, v10, v11);
SetupTriggerPopup::createToggleValueControl((int)this, 603, (int)&v14, (const cocos2d::CCPoint *)v12, 1, 0, 0, 1.0);
std::string::~string((int)&v14);
v14 = 0;
v15 = 0;
v16 = 0;
std::string::__init(&v14, "Target ItemID:", 0xEu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, 50.0, -20.0);
cocos2d::CCPoint::operator+(v12, v10, v11);
IDNameInput::create((int)this, (int)this + 440, 2, 80, (int)&v14, (int)v12, 0.8, 6, 0, 0, 0);
std::string::~string((int)&v14);
v6 = *(void (__fastcall **)(SetupProgressPopup *, int, int))(*(_DWORD *)this + 728);
v7 = (*(int (__fastcall **)(SetupProgressPopup *, int))(*(_DWORD *)this + 732))(this, 605);
v6(this, 605, v7);
SetupTriggerPopup::postSetup(this);
}
return v4;
}