//
// SetupShaderEffectPopup::setupMotionBlur from 0x555004 to 0x55560a (1542 bytes)
//
// 1 xrefs:
// > SetupShaderEffectPopup::init @ 0x557218
//
// 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::setupMotionBlur(SetupShaderEffectPopup *a1)
{
cocos2d::CCDirector *v2; // r0
cocos2d::CCPoint v3; // r1
cocos2d::CCFloat *v4; // [sp+4h] [bp-60h]
_BYTE v5[4]; // [sp+38h] [bp-2Ch] BYREF
cocos2d::CCSize v6; // [sp+3Ch] [bp-28h] BYREF
cocos2d::CCPoint v7; // [sp+44h] [bp-20h] BYREF
cocos2d::CCPoint v8; // [sp+4Ch] [bp-18h] BYREF
cocos2d::CCPoint v9; // [sp+54h] [bp-10h] BYREF
sub_776584((int)&v9, "Setup Motion Blur");
SetupTriggerPopup::addTitle((int)a1);
sub_774008(&v9);
sub_776584((int)&v8, "Help");
sub_776584(
(int)&v9,
"Applies motion blur.\n"
"TargetX and TargetY is how much blur to apply to each axis.\n"
"FadeTime is time until final state is reached.\n"
"Fade sets how much blur fades out at the edges.\n"
"DualDir blurs in both directions instead of the default.\n"
"Target lets you set a specific target object as the reference.\n"
"You can also reference the player using P1 and P2 or the center of the screen using C.");
SetupTriggerPopup::addHelpButton((int)a1, (int)&v8, (int)&v9, 1065353216);
sub_774008(&v9);
sub_774008(&v8);
v2 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v6, v2);
cocos2d::CCPoint::CCPoint(&v7, v6.width * 0.5, (float)(v6.height * 0.5) + 95.0);
sub_776584((int)v5, "TargetX:");
cocos2d::CCPoint::CCPoint(&v8, -130.0, 0.0);
cocos2d::CCPoint::operator+(&v9, &v7, &v8);
SetupTriggerPopup::createValueControl(
(unsigned int)a1,
180,
(int)v5,
&v9,
(cocos2d::CCZone *)0x3F19999A,
nullptr,
0.0);
sub_774008(v5);
sub_776584((int)v5, "TargetY:");
cocos2d::CCPoint::CCPoint(&v8, 0.0, 0.0);
cocos2d::CCPoint::operator+(&v9, &v7, &v8);
SetupTriggerPopup::createValueControl(
(unsigned int)a1,
189,
(int)v5,
&v9,
(cocos2d::CCZone *)0x3F19999A,
nullptr,
0.0);
sub_774008(v5);
sub_776584((int)v5, "FadeTime:");
cocos2d::CCPoint::CCPoint(&v8, -130.0, -50.0);
cocos2d::CCPoint::operator+(&v9, &v7, &v8);
SetupTriggerPopup::createValueControl((unsigned int)a1, 10, (int)v5, &v9, (cocos2d::CCZone *)0x3F19999A, nullptr, 0.0);
sub_774008(v5);
sub_776584((int)v5, "Use\nX");
cocos2d::CCPoint::CCPoint(&v8, -45.0, -105.0);
cocos2d::CCPoint::operator+(&v9, &v7, &v8);
SetupTriggerPopup::createToggleValueControl(a1, 188, (int)v5, &v9, 0, 0, 0, 1.0);
sub_774008(v5);
sub_776584((int)v5, "Use\nY");
cocos2d::CCPoint::CCPoint(&v8, 20.0, -105.0);
cocos2d::CCPoint::operator+(&v9, &v7, &v8);
SetupTriggerPopup::createToggleValueControl(a1, 190, (int)v5, &v9, 0, 0, 0, 1.0);
sub_774008(v5);
sub_776584((int)v5, "Intensity:");
cocos2d::CCPoint::CCPoint(&v8, -130.0, -100.0);
cocos2d::CCPoint::operator+(&v9, &v7, &v8);
SetupTriggerPopup::createValueControl(
(unsigned int)a1,
176,
(int)v5,
&v9,
(cocos2d::CCZone *)0x3F19999A,
nullptr,
5.0);
sub_774008(v5);
sub_776584((int)v5, "Fade:");
cocos2d::CCPoint::CCPoint(&v8, 0.0, -50.0);
cocos2d::CCPoint::operator+(&v9, &v7, &v8);
SetupTriggerPopup::createValueControl(
(unsigned int)a1,
181,
(int)v5,
&v9,
(cocos2d::CCZone *)0x3F19999A,
nullptr,
1.0);
sub_774008(v5);
sub_776584((int)v5, "Ref\nChannel:");
cocos2d::CCPoint::CCPoint(&v8, 130.0, 0.0);
cocos2d::CCPoint::operator+(&v9, &v7, &v8);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
71,
(int)v5,
&v9,
(cocos2d::CCZone *)0x3F19999A,
1,
Int,
6,
0,
nullptr,
0.0,
0,
0,
0,
2,
0);
sub_774008(v5);
sub_776584((int)v5, "Follow\nEase:");
cocos2d::CCPoint::CCPoint(&v8, 130.0, -50.0);
cocos2d::CCPoint::operator+(&v9, &v7, &v8);
SetupTriggerPopup::createValueControl(
(unsigned int)a1,
191,
(int)v5,
&v9,
(cocos2d::CCZone *)0x3F19999A,
nullptr,
10.0);
sub_774008(v5);
sub_776584((int)&v8, "Relative");
cocos2d::CCPoint::CCPoint(
&v9,
(float)((float)((float)(a1->m_width * 0.5) + (float)(v6.width * 0.5)) - 72.0) - 90.0,
(float)((float)(v6.height * 0.5) - (float)(a1->m_height * 0.5)) + 20.0);
SetupTriggerPopup::createToggleValueControl(a1, 514, (int)&v8, &v9, 0, 0, 0, 1.0);
sub_774008(&v8);
sub_776584((int)v5, "TargetID:");
cocos2d::CCPoint::CCPoint(&v8, 130.0, -115.0);
cocos2d::CCPoint::operator+(&v9, &v7, &v8);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
51,
(int)v5,
&v9,
(cocos2d::CCZone *)0x3F19999A,
1,
Int,
6,
1,
nullptr,
1.0,
0,
0,
0,
2,
0);
sub_774008(v5);
sub_776584((int)v5, "P1");
cocos2d::CCPoint::CCPoint(&v8, 100.0, -150.0);
cocos2d::CCPoint::operator+(&v9, &v7, &v8);
SetupTriggerPopup::createToggleValueControl(a1, 138, (int)v5, &v9, 0, 0, 0, 1.0);
sub_774008(v5);
sub_776584((int)v5, "P2");
cocos2d::CCPoint::CCPoint(&v8, 160.0, -150.0);
cocos2d::CCPoint::operator+(&v9, &v7, &v8);
SetupTriggerPopup::createToggleValueControl(a1, 200, (int)v5, &v9, 0, 0, 0, 1.0);
sub_774008(v5);
sub_776584((int)v5, "C");
cocos2d::CCPoint::CCPoint(&v8, 130.0, -180.0);
cocos2d::CCPoint::operator+(&v9, &v7, &v8);
SetupTriggerPopup::createToggleValueControl(a1, 201, (int)v5, &v9, 0, 0, 0, 1.0);
sub_774008(v5);
sub_776584((int)v5, "DualDir");
cocos2d::CCPoint::CCPoint(&v8, 0.0, -140.0);
cocos2d::CCPoint::operator+(&v9, &v7, &v8);
SetupTriggerPopup::createToggleValueControl(a1, 194, (int)v5, &v9, 0, 0, 0, 0.9);
sub_774008(v5);
sub_776584((int)v5, "EmptyOnly");
cocos2d::CCPoint::CCPoint(&v8, 0.0, -170.0);
cocos2d::CCPoint::operator+(&v9, &v7, &v8);
SetupTriggerPopup::createToggleValueControl(a1, 515, (int)v5, &v9, 0, 0, 0, 0.9);
sub_774008(v5);
cocos2d::CCPoint::CCPoint(&v8, -110.0, -143.0);
cocos2d::CCPoint::operator+(&v9, &v7, &v8);
v3.y = 0.7;
LODWORD(v3.x) = &v9;
SetupTriggerPopup::createEasingControls(a1, v3, 0.0, 0, (int)v4);
}