//
// SetupAdvFollowPopup::init from 0x55f418 to 0x56130e (7926 bytes)
//
// 1 xrefs:
// > SetupAdvFollowPopup::create @ 0x56138e
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool SetupAdvFollowPopup::init(SetupAdvFollowPopup *a1, AdvancedFollowTriggerObject *a2, cocos2d::CCArray *a3)
{
cocos2d::CCDirector *v4; // r0
int v5; // s15
int v6; // r6
int v7; // r7
char *v8; // r3
ButtonSprite *v9; // r11
CCMenuItemSpriteExtra *v10; // r9
int v11; // r2
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r11
cocos2d::CCPoint *v13; // r0
ButtonSprite *v14; // r8
CCMenuItemSpriteExtra *v15; // r8
cocos2d::CCMenu *v16; // r10
void (__fastcall *v17)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9
float v19; // [sp+10h] [bp-7Ch]
float v20; // [sp+10h] [bp-7Ch]
_BOOL4 v21; // [sp+30h] [bp-5Ch]
cocos2d::CCMenu *m_buttonMenu; // [sp+44h] [bp-48h]
cocos2d::CCSize v23; // [sp+4Ch] [bp-40h] BYREF
cocos2d::CCPoint v24; // [sp+54h] [bp-38h] BYREF
_BYTE v25[8]; // [sp+5Ch] [bp-30h] BYREF
cocos2d::CCPoint v26; // [sp+64h] [bp-28h] BYREF
cocos2d::CCPoint v27; // [sp+6Ch] [bp-20h] BYREF
cocos2d::CCPoint v28; // [sp+74h] [bp-18h] BYREF
cocos2d::CCPoint v29; // [sp+7Ch] [bp-10h] BYREF
v21 = SetupTriggerPopup::init(a1, a2, a3, 440.0, 310.0, 1);
if ( v21 )
{
SetupTriggerPopup::preSetup(a1);
sub_776584((int)&v29, "OK");
SetupTriggerPopup::addCloseButton((unsigned int)a1, (ButtonSprite **)&v29);
sub_774008(&v29);
SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(a1);
sub_776584((int)&v29, "Setup Advanced Follow");
SetupTriggerPopup::addTitle((int)a1);
sub_774008(&v29);
sub_776584((int)&v28, "Help");
sub_776584(
(int)&v29,
"Makes a group of objects follow an object.\n"
"You can also follow the player using P1 and P2 or the center of the screen using C.\n"
"Check the other pages for more settings.\n"
"You can also use presets under Pre.\n"
"This is an advanced trigger.\n"
"View the editor guide for more details.");
SetupTriggerPopup::addHelpButton((int)a1, (int)&v28, (int)&v29, 1065353216);
sub_774008(&v29);
sub_774008(&v28);
v4 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v23, v4);
cocos2d::CCPoint::CCPoint(&v24, v23.width * 0.5, (float)(v23.height * 0.5) + 110.0);
cocos2d::CCPoint::CCPoint(&v29, 0.0, -30.0);
cocos2d::CCPoint::operator+(v25, &v24, &v29);
sub_776584((int)&v27, "Target GID:");
cocos2d::CCPoint::CCPoint(&v28, -124.0, -0.0);
cocos2d::CCPoint::operator+(&v29, v25, &v28);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
51,
(int)&v27,
&v29,
(cocos2d::CCZone *)0x3F333333,
1,
Int,
6,
1,
nullptr,
1.0,
0,
0,
0,
2,
0);
sub_774008(&v27);
sub_776584((int)&v27, "Follow GID:");
cocos2d::CCPoint::CCPoint(&v28, 0.0, -0.0);
cocos2d::CCPoint::operator+(&v29, v25, &v28);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
71,
(int)&v27,
&v29,
(cocos2d::CCZone *)0x3F333333,
1,
Int,
6,
1,
nullptr,
1.0,
0,
0,
0,
2,
0);
sub_774008(&v27);
sub_776584((int)&v27, "Priority:");
cocos2d::CCPoint::CCPoint(&v28, 124.0, -0.0);
cocos2d::CCPoint::operator+(&v29, v25, &v28);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
365,
(int)&v27,
&v29,
(cocos2d::CCZone *)0x3F333333,
1,
Int,
6,
1,
nullptr,
1.0,
0,
0,
0,
2,
0);
sub_774008(&v27);
sub_776584((int)&v27, "X\nOnly");
cocos2d::CCPoint::CCPoint(&v28, -164.0, -42.0);
cocos2d::CCPoint::operator+(&v29, v25, &v28);
SetupTriggerPopup::createToggleValueControl(a1, 306, (int)&v27, &v29, 0, 0, 0, 1.0);
sub_774008(&v27);
sub_776584((int)&v27, "Y\nOnly");
cocos2d::CCPoint::CCPoint(&v28, -84.0, -42.0);
cocos2d::CCPoint::operator+(&v29, v25, &v28);
SetupTriggerPopup::createToggleValueControl(a1, 307, (int)&v27, &v29, 0, 0, 0, 1.0);
sub_774008(&v27);
sub_776584((int)&v27, "P1");
cocos2d::CCPoint::CCPoint(&v28, -4.0, -42.0);
cocos2d::CCPoint::operator+(&v29, v25, &v28);
SetupTriggerPopup::createToggleValueControl(a1, 138, (int)&v27, &v29, 0, 0, 0, 1.0);
sub_774008(&v27);
sub_776584((int)&v27, "P2");
cocos2d::CCPoint::CCPoint(&v28, 76.0, -42.0);
cocos2d::CCPoint::operator+(&v29, v25, &v28);
SetupTriggerPopup::createToggleValueControl(a1, 200, (int)&v27, &v29, 0, 0, 0, 1.0);
sub_774008(&v27);
sub_776584((int)&v27, "C");
cocos2d::CCPoint::CCPoint(&v28, 156.0, -42.0);
cocos2d::CCPoint::operator+(&v29, v25, &v28);
SetupTriggerPopup::createToggleValueControl(a1, 201, (int)&v27, &v29, 0, 0, 0, 1.0);
sub_774008(&v27);
sub_776584((int)&v27, "Rotation\nOffset:");
cocos2d::CCPoint::CCPoint(&v28, -84.0, -84.0);
cocos2d::CCPoint::operator+(&v29, v25, &v28);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
340,
(int)&v27,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Int,
6,
0,
nullptr,
360.0,
0,
0,
1,
2,
0);
sub_774008(&v27);
sub_776584((int)&v27, "Ignore\nDisabled");
cocos2d::CCPoint::CCPoint(&v28, 34.0, -84.0);
cocos2d::CCPoint::operator+(&v29, v25, &v28);
SetupTriggerPopup::createToggleValueControl(a1, 336, (int)&v27, &v29, 0, 0, 0, 1.0);
sub_774008(&v27);
sub_776584((int)&v27, "Rotate\nDir");
cocos2d::CCPoint::CCPoint(&v28, 134.0, -84.0);
cocos2d::CCPoint::operator+(&v29, v25, &v28);
SetupTriggerPopup::createToggleValueControl(a1, 339, (int)&v27, &v29, 0, 0, 0, 1.0);
sub_774008(&v27);
sub_776584((int)&v27, "Rotate\nEasing:");
cocos2d::CCPoint::CCPoint(&v28, -84.0, -126.0);
cocos2d::CCPoint::operator+(&v29, v25, &v28);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
363,
(int)&v27,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Uint,
6,
0,
nullptr,
100.0,
0,
0,
1,
2,
0);
sub_774008(&v27);
sub_776584((int)&v27, "Rotate\nDeadZ:");
cocos2d::CCPoint::CCPoint(&v28, 84.0, -126.0);
cocos2d::CCPoint::operator+(&v29, v25, &v28);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
364,
(int)&v27,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Uint,
6,
0,
nullptr,
100.0,
0,
0,
1,
2,
0);
sub_774008(&v27);
v5 = (int)a1->getValue(a1, 572);
sub_776584((int)&v27, "Init");
cocos2d::CCPoint::CCPoint(&v28, -164.0, -168.0);
cocos2d::CCPoint::operator+(&v29, v25, &v28);
SetupTriggerPopup::createCustomToggleValueControl(
a1,
0,
v5 == 0,
1,
(std::string)&v27,
(cocos2d::CCPoint)(unsigned int)&v29,
0,
0);
sub_774008(&v27);
sub_776584((int)&v27, "Set");
cocos2d::CCPoint::CCPoint(&v28, -84.0, -168.0);
cocos2d::CCPoint::operator+(&v29, v25, &v28);
SetupTriggerPopup::createCustomToggleValueControl(
a1,
1,
v5 == 1,
1,
(std::string)&v27,
(cocos2d::CCPoint)(unsigned int)&v29,
0,
0);
sub_774008(&v27);
sub_776584((int)&v27, "Add");
cocos2d::CCPoint::CCPoint(&v28, -4.0, -168.0);
cocos2d::CCPoint::operator+(&v29, v25, &v28);
SetupTriggerPopup::createCustomToggleValueControl(
a1,
2,
v5 == 2,
1,
(std::string)&v27,
(cocos2d::CCPoint)(unsigned int)&v29,
0,
0);
sub_774008(&v27);
sub_776584((int)&v27, "Exclusive");
cocos2d::CCPoint::CCPoint(&v28, 76.0, -168.0);
cocos2d::CCPoint::operator+(&v29, v25, &v28);
SetupTriggerPopup::createToggleValueControl(a1, 571, (int)&v27, &v29, 0, 0, 0, 1.0);
v6 = 0;
sub_774008(&v27);
v7 = (int)a1->getValue(a1, 367);
do
{
GameToolbox::intToString((GameToolbox *)&v29, v6 + 1);
v8 = "GJ_button_02.png";
if ( v6 != v7 )
v8 = "GJ_button_04.png";
v9 = ButtonSprite::create(
(ButtonSprite *)LODWORD(v29.x),
(const char *)&dword_14,
0,
0.8,
1,
"bigFont.fnt",
v8,
COERCE_CONST_CHAR_(30.0),
v19);
sub_774008(&v29);
((void (__fastcall *)(ButtonSprite *, int))v9->setScale)(v9, 1058642330);
LODWORD(v28.x) = SetupAdvFollowPopup::onMode;
v28.y = 0.0;
v10 = CCMenuItemSpriteExtra::create(
v9,
nullptr,
(cocos2d::SEL_MenuHandler)__PAIR64__(SetupAdvFollowPopup::onMode, (unsigned int)a1));
v10->setTag(v10, v6);
a1->m_buttonMenu->addChild(a1->m_buttonMenu, v10);
v11 = 30 * v6;
setPosition = v10->setPosition;
++v6;
m_buttonMenu = a1->m_buttonMenu;
cocos2d::CCPoint::CCPoint(
&v27,
(float)((float)((float)(a1->m_width * 0.5) + (float)(v23.width * 0.5)) - 80.0) + (float)v11,
(float)((float)(a1->m_height * 0.5) + (float)(v23.height * 0.5)) - 18.0);
cocos2d::CCNode::convertToNodeSpace(&v29, m_buttonMenu, &v27);
setPosition(v10, &v29);
SetupTriggerPopup::addObjectToPage(a1, v10, 1);
}
while ( v6 != 3 );
sub_776584((int)&v26, "Delay:");
cocos2d::CCPoint::CCPoint(&v27, -72.0, 0.0);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
292,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
2.0,
1,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "+-");
cocos2d::CCPoint::CCPoint(&v27, 72.0, 0.0);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
293,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
2.0,
1,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "MaxSpeed:");
cocos2d::CCPoint::CCPoint(&v27, -72.0, -23.4);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
298,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
1,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "+-");
cocos2d::CCPoint::CCPoint(&v27, 72.0, -23.4);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
299,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
1,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "MaxRange:");
cocos2d::CCPoint::CCPoint(&v27, -72.0, -46.8);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
308,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Int,
6,
0,
nullptr,
200.0,
1,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "+-");
cocos2d::CCPoint::CCPoint(&v27, 72.0, -46.8);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
309,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Int,
6,
0,
nullptr,
200.0,
1,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, (char *)&unk_939830);
cocos2d::CCPoint::CCPoint(&v27, 202.0, -46.8);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
366,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
1,
Int,
6,
0,
nullptr,
1.0,
1,
0,
1,
2,
0);
sub_774008(&v26);
if ( v7 )
{
sub_776584((int)&v26, "StartSpeed:");
cocos2d::CCPoint::CCPoint(&v27, -72.0, -70.2);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
300,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
1,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "+-");
cocos2d::CCPoint::CCPoint(&v27, 72.0, -70.2);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
301,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
1,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, (char *)&unk_939830);
cocos2d::CCPoint::CCPoint(&v27, 202.0, -70.2);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
560,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
1,
Int,
6,
0,
nullptr,
1.0,
1,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "StartDir:");
cocos2d::CCPoint::CCPoint(&v27, -72.0, -93.6);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
563,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Int,
6,
0,
(cocos2d::CCFloat *)0xC3340000,
180.0,
1,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "+-");
cocos2d::CCPoint::CCPoint(&v27, 72.0, -93.6);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
564,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Int,
6,
0,
nullptr,
360.0,
1,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, (char *)&unk_939830);
cocos2d::CCPoint::CCPoint(&v27, 202.0, -93.6);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
565,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
1,
Int,
6,
0,
nullptr,
1.0,
1,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "Acceleration:");
cocos2d::CCPoint::CCPoint(&v27, -72.0, -117.0);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
334,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
1,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "+-");
cocos2d::CCPoint::CCPoint(&v27, 72.0, -117.0);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
335,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
1,
0,
1,
2,
0);
sub_774008(&v26);
if ( v7 == 2 )
{
sub_776584((int)&v26, "SteerForce:");
cocos2d::CCPoint::CCPoint(&v27, -72.0, -140.4);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
316,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
1,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "+-");
cocos2d::CCPoint::CCPoint(&v27, 72.0, -140.4);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
317,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
1,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "SteerForceLow:");
cocos2d::CCPoint::CCPoint(&v27, -72.0, -0.0);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
318,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
2,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "+-");
cocos2d::CCPoint::CCPoint(&v27, 72.0, -0.0);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
319,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
2,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, " ");
cocos2d::CCPoint::CCPoint(&v27, 178.0, 0.0);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createToggleValueControl(a1, 337, (int)&v26, &v29, 0, 2, 0, 1.0);
sub_774008(&v26);
sub_776584((int)&v26, "SpeedRangeLow:");
cocos2d::CCPoint::CCPoint(&v27, -72.0, -23.4);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
322,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
2,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "+-");
cocos2d::CCPoint::CCPoint(&v27, 72.0, -23.4);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
323,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
2,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "SteerForceHigh:");
cocos2d::CCPoint::CCPoint(&v27, -72.0, -46.8);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
320,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
2,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "+-");
cocos2d::CCPoint::CCPoint(&v27, 72.0, -46.8);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
321,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
2,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, " ");
cocos2d::CCPoint::CCPoint(&v27, 178.0, -46.8);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createToggleValueControl(a1, 338, (int)&v26, &v29, 0, 2, 0, 1.0);
sub_774008(&v26);
sub_776584((int)&v26, "SpeedRangeHigh:");
cocos2d::CCPoint::CCPoint(&v27, -72.0, -70.2);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
324,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
2,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "+-");
cocos2d::CCPoint::CCPoint(&v27, 72.0, -70.2);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
325,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
2,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "SlowAccel:");
cocos2d::CCPoint::CCPoint(&v27, -72.0, -93.6);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
357,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
2,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "+-");
cocos2d::CCPoint::CCPoint(&v27, 72.0, -93.6);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
358,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
2,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "SlowDist:");
cocos2d::CCPoint::CCPoint(&v27, -72.0, -117.0);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
359,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Uint,
6,
0,
nullptr,
100.0,
2,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "+-");
cocos2d::CCPoint::CCPoint(&v27, 72.0, -117.0);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
360,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Uint,
6,
0,
nullptr,
100.0,
2,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "BreakForce:");
cocos2d::CCPoint::CCPoint(&v27, -72.0, -140.4);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
326,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
1.0,
2,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "+-");
cocos2d::CCPoint::CCPoint(&v27, 72.0, -140.4);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
327,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
1.0,
2,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "BreakAngle:");
cocos2d::CCPoint::CCPoint(&v27, -72.0, -163.8);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
328,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Int,
6,
0,
nullptr,
180.0,
2,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "+-");
cocos2d::CCPoint::CCPoint(&v27, 72.0, -163.8);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
329,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Int,
6,
0,
nullptr,
180.0,
2,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "BreakSteerForce:");
cocos2d::CCPoint::CCPoint(&v27, -72.0, -187.2);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
330,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
2,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "+-");
cocos2d::CCPoint::CCPoint(&v27, 72.0, -187.2);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
331,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
2,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "BreakSteer\nSpeedLimit:");
cocos2d::CCPoint::CCPoint(&v27, -72.0, -210.6);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
332,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
2,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "+-");
cocos2d::CCPoint::CCPoint(&v27, 72.0, -210.6);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
333,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
2,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v27, "Target\nDir");
cocos2d::CCPoint::CCPoint(
&v29,
(float)(v24.x + 84.0) - 10.0,
(float)((float)(v23.height * 0.5) - (float)(a1->m_height * 0.5)) + 20.0);
SetupTriggerPopup::createToggleValueControl(a1, 305, (int)&v27, &v29, 0, 2, 0, 1.0);
v13 = &v27;
}
else
{
if ( v7 != 1 )
goto LABEL_10;
sub_776584((int)&v26, "Friction:");
cocos2d::CCPoint::CCPoint(&v27, -72.0, -140.4);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
558,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
1,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "+-");
cocos2d::CCPoint::CCPoint(&v27, 72.0, -140.4);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
559,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
1,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "NearDist:");
cocos2d::CCPoint::CCPoint(&v27, -72.0, -163.8);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
359,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
1.0,
1,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "+-");
cocos2d::CCPoint::CCPoint(&v27, 72.0, -163.8);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
360,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
1.0,
1,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "NearFriction:");
cocos2d::CCPoint::CCPoint(&v27, -72.0, -187.2);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
561,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
1,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "+-");
cocos2d::CCPoint::CCPoint(&v27, 72.0, -187.2);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
562,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
1,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "NearAccel:");
cocos2d::CCPoint::CCPoint(&v27, -72.0, -210.6);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
357,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
1,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "+-");
cocos2d::CCPoint::CCPoint(&v27, 72.0, -210.6);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
358,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
1,
0,
1,
2,
0);
v13 = &v26;
}
}
else
{
sub_776584((int)&v26, "Easing:");
cocos2d::CCPoint::CCPoint(&v27, -72.0, -70.2);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
361,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
100.0,
1,
0,
1,
2,
0);
sub_774008(&v26);
sub_776584((int)&v26, "+-");
cocos2d::CCPoint::CCPoint(&v27, 72.0, -70.2);
cocos2d::CCPoint::operator+(&v29, &v24, &v27);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
362,
(int)&v26,
&v29,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
100.0,
1,
0,
1,
2,
0);
v13 = &v26;
}
sub_774008(v13);
LABEL_10:
v14 = ButtonSprite::create(
(ButtonSprite *)"Pre",
(const char *)&word_28,
0,
0.8,
1,
"bigFont.fnt",
"GJ_button_04.png",
COERCE_CONST_CHAR_(30.0),
v20);
((void (__fastcall *)(ButtonSprite *, int))v14->setScale)(v14, 1058642330);
LODWORD(v29.x) = SetupAdvFollowPopup::onPremade;
v29.y = 0.0;
v15 = CCMenuItemSpriteExtra::create(
v14,
nullptr,
(cocos2d::SEL_MenuHandler)__PAIR64__(SetupAdvFollowPopup::onPremade, (unsigned int)a1));
a1->m_buttonMenu->addChild(a1->m_buttonMenu, v15);
v16 = a1->m_buttonMenu;
v17 = v15->setPosition;
cocos2d::CCPoint::CCPoint(
&v26,
(float)((float)(a1->m_width * 0.5) + (float)(v23.width * 0.5)) - 28.0,
(float)((float)(a1->m_height * 0.5) + (float)(v23.height * 0.5)) - 18.0);
cocos2d::CCNode::convertToNodeSpace(&v27, v16, &v26);
v17(v15, &v27);
SetupTriggerPopup::addObjectToPage(a1, v15, 0);
SetupTriggerPopup::createPageButtons(a1, (float)(a1->m_width * 0.5) + 15.0, 1);
SetupTriggerPopup::goToPage(a1, 0, 0);
SetupTriggerPopup::postSetup(a1);
}
return v21;
}