//
// SetupShaderEffectPopup::setupShockLine from 0x552d5c to 0x553718 (2492 bytes)
//
// 1 xrefs:
// > SetupShaderEffectPopup::init @ 0x5571e0
//
// 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
//
void SetupShaderEffectPopup::setupShockLine(SetupShaderEffectPopup *a1)
{
cocos2d::CCLabelBMFont *v2; // r4
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8
int v4; // r9
cocos2d::CCDirector *v5; // r0
cocos2d::CCPoint v6; // r1
float v7; // s15
void (__fastcall *toggleGroup)(SetupShaderEffectPopup *__hidden, int, bool); // r4
float v9; // r0
float v10; // s15
int v11; // [sp+4h] [bp-58h]
_BYTE v12[4]; // [sp+38h] [bp-24h] BYREF
cocos2d::CCSize v13; // [sp+3Ch] [bp-20h] BYREF
cocos2d::CCPoint v14; // [sp+44h] [bp-18h] BYREF
cocos2d::CCPoint v15; // [sp+4Ch] [bp-10h] BYREF
cocos2d::CCPoint v16; // [sp+54h] [bp-8h] BYREF
cocos2d::CCPoint v17; // [sp+5Ch] [bp+0h] BYREF
cocos2d::CCPoint v18; // [sp+64h] [bp+8h] BYREF
sub_776584((int)&v18, "Setup ShockLine");
v2 = SetupTriggerPopup::addTitle((int)a1);
sub_774008(&v18);
setPosition = v2->setPosition;
v4 = (int)v2->getPosition(v2);
cocos2d::CCPoint::CCPoint(&v17, 0.0, 2.0);
cocos2d::CCPoint::operator+(&v18, v4, &v17);
setPosition(v2, &v18);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v2->setScale)(v2, 1053609165);
sub_776584((int)&v17, "ShockLine");
sub_776584(
(int)&v18,
"Speed defines how fast the shockline effect happens.\n"
"Strength sets how distorted objects get within the waves.\n"
"Thickness is how big each wave is.\n"
"MaxSize modifies the maximum size of the wave.\n"
"WaveW is line width.\n"
"TimeOff is offset in seconds before the effect begins.\n"
"Target lets you set a specific object to do the effect around.\n"
"Flip and Rotate change the direction of the effect.");
SetupTriggerPopup::addHelpButton((int)a1, (int)&v17, (int)&v18, 1065353216);
sub_774008(&v18);
sub_774008(&v17);
v5 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v13, v5);
cocos2d::CCPoint::CCPoint(&v14, (float)(v13.width * 0.5) - 10.0, (float)(v13.height * 0.5) + 110.0);
sub_776584((int)&v16, "Speed:");
cocos2d::CCPoint::CCPoint(&v17, -100.0, 0.0);
cocos2d::CCPoint::operator+(&v18, &v14, &v17);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
175,
(int)&v16,
&v18,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
0,
0,
1,
3,
1);
sub_774008(&v16);
sub_776584((int)&v16, "Strength:");
cocos2d::CCPoint::CCPoint(&v17, 100.0, 0.0);
cocos2d::CCPoint::operator+(&v18, &v14, &v17);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
176,
(int)&v16,
&v18,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
1.0,
0,
0,
1,
3,
1);
sub_774008(&v16);
sub_776584((int)&v16, "Thickness:");
cocos2d::CCPoint::CCPoint(&v17, -100.0, -25.0);
cocos2d::CCPoint::operator+(&v18, &v14, &v17);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
180,
(int)&v16,
&v18,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
0,
0,
1,
3,
1);
sub_774008(&v16);
sub_776584((int)&v16, "WaveW:");
cocos2d::CCPoint::CCPoint(&v17, 100.0, -25.0);
cocos2d::CCPoint::operator+(&v18, &v14, &v17);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
179,
(int)&v16,
&v18,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
0,
0,
1,
3,
1);
sub_774008(&v16);
sub_776584((int)&v16, "FadeIn:");
cocos2d::CCPoint::CCPoint(&v17, -100.0, -50.0);
cocos2d::CCPoint::operator+(&v18, &v14, &v17);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
181,
(int)&v16,
&v18,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
0,
0,
1,
3,
1);
sub_774008(&v16);
sub_776584((int)&v16, "FadeOut:");
cocos2d::CCPoint::CCPoint(&v17, 100.0, -50.0);
cocos2d::CCPoint::operator+(&v18, &v14, &v17);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
182,
(int)&v16,
&v18,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
5.0,
0,
0,
1,
3,
1);
sub_774008(&v16);
sub_776584((int)&v16, "TimeOff:");
cocos2d::CCPoint::CCPoint(&v17, -100.0, -75.0);
cocos2d::CCPoint::operator+(&v18, &v14, &v17);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
177,
(int)&v16,
&v18,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
(cocos2d::CCFloat *)0xC1200000,
10.0,
0,
0,
1,
3,
1);
sub_774008(&v16);
sub_776584((int)&v16, "MaxSize:");
cocos2d::CCPoint::CCPoint(&v17, 100.0, -75.0);
cocos2d::CCPoint::operator+(&v18, &v14, &v17);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
512,
(int)&v16,
&v18,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
1.0,
0,
0,
1,
3,
1);
sub_774008(&v16);
cocos2d::CCPoint::CCPoint(&v15, (float)(v13.width * 0.5) - 25.0, v14.y - 100.0);
sub_776584((int)&v16, "Invert");
cocos2d::CCPoint::CCPoint(&v17, -162.5, 0.0);
cocos2d::CCPoint::operator+(&v18, &v15, &v17);
SetupTriggerPopup::createToggleValueControl(a1, 184, (int)&v16, &v18, 0, 0, 0, 0.8);
sub_774008(&v16);
sub_776584((int)&v16, "Flip");
cocos2d::CCPoint::CCPoint(&v17, -97.5, 0.0);
cocos2d::CCPoint::operator+(&v18, &v15, &v17);
SetupTriggerPopup::createToggleValueControl(a1, 185, (int)&v16, &v18, 0, 0, 0, 0.8);
sub_774008(&v16);
sub_776584((int)&v16, "Rotate");
cocos2d::CCPoint::CCPoint(&v17, -32.5, 0.0);
cocos2d::CCPoint::operator+(&v18, &v15, &v17);
SetupTriggerPopup::createToggleValueControl(a1, 186, (int)&v16, &v18, 0, 0, 0, 0.8);
sub_774008(&v16);
sub_776584((int)&v16, "Dual");
cocos2d::CCPoint::CCPoint(&v17, 32.5, 0.0);
cocos2d::CCPoint::operator+(&v18, &v15, &v17);
SetupTriggerPopup::createToggleValueControl(a1, 187, (int)&v16, &v18, 0, 0, 0, 0.8);
sub_774008(&v16);
sub_776584((int)&v16, "Target");
cocos2d::CCPoint::CCPoint(&v17, 97.5, 0.0);
cocos2d::CCPoint::operator+(&v18, &v15, &v17);
SetupTriggerPopup::createToggleValueControl(a1, 188, (int)&v16, &v18, 0, 0, 0, 0.8);
sub_774008(&v16);
sub_776584((int)&v16, "Relative");
cocos2d::CCPoint::CCPoint(&v17, 162.5, 0.0);
cocos2d::CCPoint::operator+(&v18, &v15, &v17);
SetupTriggerPopup::createToggleValueControl(a1, 514, (int)&v16, &v18, 0, 0, 0, 0.8);
sub_774008(&v16);
sub_776584((int)&v17, "Animate");
cocos2d::CCPoint::CCPoint(
&v18,
(float)((float)((float)(a1->m_width * 0.5) + (float)(v13.width * 0.5)) - 72.0) - 90.0,
(float)((float)(v13.height * 0.5) - (float)(a1->m_height * 0.5)) + 20.0);
SetupTriggerPopup::createToggleValueControl(a1, 513, (int)&v17, &v18, 0, 0, 0, 1.0);
sub_774008(&v17);
sub_776584((int)&v16, "ScreenOff:");
cocos2d::CCPoint::CCPoint(&v17, -100.0, -125.0);
cocos2d::CCPoint::operator+(&v18, &v14, &v17);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
290,
(int)&v16,
&v18,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
(cocos2d::CCFloat *)0xBF800000,
1.0,
0,
101,
1,
3,
1);
sub_774008(&v16);
cocos2d::CCPoint::CCPoint(&v16, (float)(v13.width * 0.5) - 20.0, v14.y - 125.0);
sub_776584((int)v12, "CenterID");
cocos2d::CCPoint::CCPoint(&v17, -100.0, 0.0);
cocos2d::CCPoint::operator+(&v18, &v16, &v17);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
51,
(int)v12,
&v18,
(cocos2d::CCZone *)0x3F19999A,
1,
Int,
6,
1,
nullptr,
1.0,
0,
100,
1,
2,
0);
sub_774008(v12);
sub_776584((int)v12, "P1");
cocos2d::CCPoint::CCPoint(&v17, 20.0, 0.0);
cocos2d::CCPoint::operator+(&v18, &v16, &v17);
SetupTriggerPopup::createToggleValueControl(a1, 138, (int)v12, &v18, 0, 0, 100, 0.8);
sub_774008(v12);
sub_776584((int)v12, "P2");
cocos2d::CCPoint::CCPoint(&v17, 80.0, 0.0);
cocos2d::CCPoint::operator+(&v18, &v16, &v17);
SetupTriggerPopup::createToggleValueControl(a1, 200, (int)v12, &v18, 0, 0, 100, 0.8);
sub_774008(v12);
sub_776584((int)v12, "Follow");
cocos2d::CCPoint::CCPoint(&v17, 140.0, 0.0);
cocos2d::CCPoint::operator+(&v18, &v16, &v17);
SetupTriggerPopup::createToggleValueControl(a1, 190, (int)v12, &v18, 0, 0, 100, 0.8);
sub_774008(v12);
sub_776584((int)v12, "FadeTime:");
cocos2d::CCPoint::CCPoint(&v17, -100.0, -185.0);
cocos2d::CCPoint::operator+(&v18, &v14, &v17);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
10,
(int)v12,
&v18,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
nullptr,
1.0,
0,
103,
1,
2,
0);
sub_774008(v12);
cocos2d::CCPoint::CCPoint(&v17, 100.0, -170.0);
cocos2d::CCPoint::operator+(&v18, &v14, &v17);
v6.y = 0.65;
LODWORD(v6.x) = &v18;
SetupTriggerPopup::createEasingControls(a1, v6, 0.0, 103, v11);
v7 = COERCE_FLOAT(((int (__fastcall *)(SetupShaderEffectPopup *, int))a1->getValue)(a1, 188));
a1->toggleGroup(a1, 100, v7 != 0.0);
a1->toggleGroup(a1, 101, v7 == 0.0);
toggleGroup = a1->toggleGroup;
v9 = COERCE_FLOAT(((int (__fastcall *)(SetupShaderEffectPopup *, int))a1->getValue)(a1, 513));
toggleGroup(a1, 103, v9 != 0.0);
v10 = COERCE_FLOAT(((int (__fastcall *)(SetupShaderEffectPopup *, int))a1->getValue)(a1, 513));
SetupTriggerPopup::toggleDisableButtons(a1, v10 != 0.0);
}