// // SetupShaderEffectPopup::setupMotionBlur from 0xb36bd4 to 0xb375e0 (2572 bytes) // // 2 xrefs: // > SetupShaderEffectPopup::init @ 0xb3ac10 // > @ 0xec068 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:01:46 +0000 // __int64 __fastcall SetupShaderEffectPopup::setupMotionBlur(cocos2d::CCArray **this) { cocos2d::CCDirector *v2; // x0 cocos2d::CCDirector *v3; // x0 int v5; // [xsp+8h] [xbp-28h] __int64 v6; // [xsp+A8h] [xbp+78h] BYREF _BYTE v7[8]; // [xsp+B0h] [xbp+80h] BYREF _BYTE v8[8]; // [xsp+B8h] [xbp+88h] BYREF __int64 v9; // [xsp+C0h] [xbp+90h] BYREF cocos2d::CCDirector *v10[2]; // [xsp+C8h] [xbp+98h] BYREF void *v11; // [xsp+D8h] [xbp+A8h] __int64 v12; // [xsp+E0h] [xbp+B0h] BYREF __int64 v13; // [xsp+E8h] [xbp+B8h] void *v14; // [xsp+F0h] [xbp+C0h] v12 = 0; v13 = 0; v14 = nullptr; std::string::__init(&v12, "Setup Motion Blur", 0x11u); SetupTriggerPopup::addTitle((__int64)this, (__int64)&v12); if ( (v12 & 1) != 0 ) operator delete(v14); v10[0] = nullptr; v10[1] = nullptr; v11 = nullptr; std::string::__init((__int64 *)v10, "Help", 4u); v12 = 0; v13 = 0; v14 = nullptr; std::string::__init( &v12, "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.", 0x1BEu); SetupTriggerPopup::addHelpButton((__int64)this, (char *)v10, (char *)&v12, 1.0); if ( (v12 & 1) != 0 ) operator delete(v14); v2 = (cocos2d::CCDirector *)LOBYTE(v10[0]); if ( ((__int64)v10[0] & 1) != 0 ) operator delete(v11); v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v2); cocos2d::CCDirector::getWinSize(&v6, v3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, *(float *)&v6 * 0.5, (float)(*((float *)&v6 + 1) * 0.5) + 95.0); v12 = 0; v13 = 0; v14 = nullptr; std::string::__init(&v12, "TargetX:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, -130.0, 0.0); cocos2d::CCPoint::operator+(&v9, v7); SetupTriggerPopup::createValueControl(this, 180, (char *)&v12, (cocos2d::CCPoint *)&v9, 0.6, 0.0, 0.0); if ( (v12 & 1) != 0 ) operator delete(v14); v12 = 0; v13 = 0; v14 = nullptr; std::string::__init(&v12, "TargetY:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, 0.0, 0.0); cocos2d::CCPoint::operator+(&v9, v7); SetupTriggerPopup::createValueControl(this, 189, (char *)&v12, (cocos2d::CCPoint *)&v9, 0.6, 0.0, 0.0); if ( (v12 & 1) != 0 ) operator delete(v14); v12 = 0; v13 = 0; v14 = nullptr; std::string::__init(&v12, "FadeTime:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, -130.0, -50.0); cocos2d::CCPoint::operator+(&v9, v7); SetupTriggerPopup::createValueControl(this, 10, (char *)&v12, (cocos2d::CCPoint *)&v9, 0.6, 0.0, 0.0); if ( (v12 & 1) != 0 ) operator delete(v14); v12 = 0; v13 = 0; v14 = nullptr; std::string::__init(&v12, "Use\nX", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, -45.0, -105.0); cocos2d::CCPoint::operator+(&v9, v7); SetupTriggerPopup::createToggleValueControl((__int64)this, 0xBCu, &v12, (const cocos2d::CCPoint *)&v9, 0, 0, 0, 1.0); if ( (v12 & 1) != 0 ) operator delete(v14); v12 = 0; v13 = 0; v14 = nullptr; std::string::__init(&v12, "Use\nY", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, 20.0, -105.0); cocos2d::CCPoint::operator+(&v9, v7); SetupTriggerPopup::createToggleValueControl((__int64)this, 0xBEu, &v12, (const cocos2d::CCPoint *)&v9, 0, 0, 0, 1.0); if ( (v12 & 1) != 0 ) operator delete(v14); v12 = 0; v13 = 0; v14 = nullptr; std::string::__init(&v12, "Intensity:", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, -130.0, -100.0); cocos2d::CCPoint::operator+(&v9, v7); SetupTriggerPopup::createValueControl(this, 176, (char *)&v12, (cocos2d::CCPoint *)&v9, 0.6, 0.0, 5.0); if ( (v12 & 1) != 0 ) operator delete(v14); v12 = 0; v13 = 0; v14 = nullptr; std::string::__init(&v12, "Fade:", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, 0.0, -50.0); cocos2d::CCPoint::operator+(&v9, v7); SetupTriggerPopup::createValueControl(this, 181, (char *)&v12, (cocos2d::CCPoint *)&v9, 0.6, 0.0, 1.0); if ( (v12 & 1) != 0 ) operator delete(v14); v12 = 0; v13 = 0; v14 = nullptr; std::string::__init(&v12, "Ref\nChannel:", 0xCu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, 130.0, 0.0); cocos2d::CCPoint::operator+(&v9, v7); SetupTriggerPopup::createValueControlAdvanced( this, 71, (char *)&v12, (__int64)&v9, 1, 2, 6, 0, 0.6, 0.0, 0.0, 0, 0, 0, 2, 0); if ( (v12 & 1) != 0 ) operator delete(v14); v12 = 0; v13 = 0; v14 = nullptr; std::string::__init(&v12, "Follow\nEase:", 0xCu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, 130.0, -50.0); cocos2d::CCPoint::operator+(&v9, v7); SetupTriggerPopup::createValueControl(this, 191, (char *)&v12, (cocos2d::CCPoint *)&v9, 0.6, 0.0, 10.0); if ( (v12 & 1) != 0 ) operator delete(v14); v12 = 0; v13 = 0; v14 = nullptr; std::string::__init(&v12, "Relative", 8u); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v9, (float)((float)((float)(*((float *)this + 183) * 0.5) + (float)(*(float *)&v6 * 0.5)) - 72.0) - 90.0, 20.0 - (float)((float)(*((float *)this + 184) * 0.5) - (float)(*((float *)&v6 + 1) * 0.5))); SetupTriggerPopup::createToggleValueControl((__int64)this, 0x202u, &v12, (const cocos2d::CCPoint *)&v9, 0, 0, 0, 1.0); if ( (v12 & 1) != 0 ) operator delete(v14); v12 = 0; v13 = 0; v14 = nullptr; std::string::__init(&v12, "TargetID:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, 130.0, -115.0); cocos2d::CCPoint::operator+(&v9, v7); LOBYTE(v5) = 0; IDNameInput::create(this, this + 68, 1, 51, &v12, &v9, 6, 0, 0.6, 0, v5); if ( (v12 & 1) != 0 ) operator delete(v14); v12 = 0; v13 = 0; v14 = nullptr; std::string::__init(&v12, "P1", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, 100.0, -150.0); cocos2d::CCPoint::operator+(&v9, v7); SetupTriggerPopup::createToggleValueControl((__int64)this, 0x8Au, &v12, (const cocos2d::CCPoint *)&v9, 0, 0, 0, 1.0); if ( (v12 & 1) != 0 ) operator delete(v14); v12 = 0; v13 = 0; v14 = nullptr; std::string::__init(&v12, "P2", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, 160.0, -150.0); cocos2d::CCPoint::operator+(&v9, v7); SetupTriggerPopup::createToggleValueControl((__int64)this, 0xC8u, &v12, (const cocos2d::CCPoint *)&v9, 0, 0, 0, 1.0); if ( (v12 & 1) != 0 ) operator delete(v14); v12 = 0; v13 = 0; v14 = nullptr; std::string::__init(&v12, "C", 1u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, 130.0, -180.0); cocos2d::CCPoint::operator+(&v9, v7); SetupTriggerPopup::createToggleValueControl((__int64)this, 0xC9u, &v12, (const cocos2d::CCPoint *)&v9, 0, 0, 0, 1.0); if ( (v12 & 1) != 0 ) operator delete(v14); v12 = 0; v13 = 0; v14 = nullptr; std::string::__init(&v12, "DualDir", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, 0.0, -140.0); cocos2d::CCPoint::operator+(&v9, v7); SetupTriggerPopup::createToggleValueControl((__int64)this, 0xC2u, &v12, (const cocos2d::CCPoint *)&v9, 0, 0, 0, 0.9); if ( (v12 & 1) != 0 ) operator delete(v14); v12 = 0; v13 = 0; v14 = nullptr; std::string::__init(&v12, "EmptyOnly", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, 0.0, -170.0); cocos2d::CCPoint::operator+(&v9, v7); SetupTriggerPopup::createToggleValueControl((__int64)this, 0x203u, &v12, (const cocos2d::CCPoint *)&v9, 0, 0, 0, 0.9); if ( (v12 & 1) != 0 ) operator delete(v14); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, -110.0, -143.0); cocos2d::CCPoint::operator+(&v9, v7); SetupTriggerPopup::createEasingControls((__int64)this, (__int64)&v9, 0, 0, 0.7); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source