// // SetupShaderEffectPopup::setupShockLine from 0xb3330c to 0xb3423c (3888 bytes) // // 2 xrefs: // > SetupShaderEffectPopup::init @ 0xb3ac64 // > @ 0xa3a08 // // 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:45 +0000 // __int64 __fastcall SetupShaderEffectPopup::setupShockLine(cocos2d::CCArray **this) { __int64 v2; // x23 void (__fastcall *v3)(__int64, __int64 *); // x26 __int64 v4; // x27 cocos2d::CCDirector *v5; // x0 cocos2d::CCDirector *v6; // x0 float v7; // s0 _BOOL4 v8; // w19 void (__fastcall *v9)(cocos2d::CCArray **, __int64, bool); // x19 float v10; // s0 float v11; // s0 int v13; // [xsp+8h] [xbp-28h] __int64 v14; // [xsp+B8h] [xbp+88h] BYREF _BYTE v15[4]; // [xsp+C0h] [xbp+90h] BYREF float v16; // [xsp+C4h] [xbp+94h] _BYTE v17[8]; // [xsp+C8h] [xbp+98h] BYREF _BYTE v18[8]; // [xsp+D0h] [xbp+A0h] BYREF _BYTE v19[8]; // [xsp+D8h] [xbp+A8h] BYREF __int64 v20; // [xsp+E0h] [xbp+B0h] BYREF cocos2d::CCDirector *v21[2]; // [xsp+E8h] [xbp+B8h] BYREF void *v22; // [xsp+F8h] [xbp+C8h] __int64 v23; // [xsp+100h] [xbp+D0h] BYREF __int64 v24; // [xsp+108h] [xbp+D8h] void *v25; // [xsp+110h] [xbp+E0h] v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "Setup ShockLine", 0xFu); v2 = SetupTriggerPopup::addTitle((__int64)this, (__int64)&v23); if ( (v23 & 1) != 0 ) operator delete(v25); v3 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v2 + 184LL); v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 192LL))(v2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 0.0, 2.0); cocos2d::CCPoint::operator+(&v20, v4); v3(v2, &v20); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v2 + 160LL))(v2, 0.4); v21[0] = nullptr; v21[1] = nullptr; v22 = nullptr; std::string::__init((__int64 *)v21, "ShockLine", 9u); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init( &v23, "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.", 0x1BFu); SetupTriggerPopup::addHelpButton((__int64)this, (char *)v21, (char *)&v23, 1.0); if ( (v23 & 1) != 0 ) operator delete(v25); v5 = (cocos2d::CCDirector *)LOBYTE(v21[0]); if ( ((__int64)v21[0] & 1) != 0 ) operator delete(v22); v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize(&v14, v6); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v15, (float)(*(float *)&v14 * 0.5) + -10.0, (float)(*((float *)&v14 + 1) * 0.5) + 110.0); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "Speed:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, -100.0, 0.0); cocos2d::CCPoint::operator+(&v20, v15); SetupTriggerPopup::createValueControlAdvanced( this, 175, (char *)&v23, (__int64)&v20, 0, 1, 6, 0, 0.6, 0.0, 5.0, 0, 0, 1, 3, 1); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "Strength:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 100.0, 0.0); cocos2d::CCPoint::operator+(&v20, v15); SetupTriggerPopup::createValueControlAdvanced( this, 176, (char *)&v23, (__int64)&v20, 0, 1, 6, 0, 0.6, 0.0, 1.0, 0, 0, 1, 3, 1); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "Thickness:", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, -100.0, -25.0); cocos2d::CCPoint::operator+(&v20, v15); SetupTriggerPopup::createValueControlAdvanced( this, 180, (char *)&v23, (__int64)&v20, 0, 1, 6, 0, 0.6, 0.0, 5.0, 0, 0, 1, 3, 1); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "WaveW:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 100.0, -25.0); cocos2d::CCPoint::operator+(&v20, v15); SetupTriggerPopup::createValueControlAdvanced( this, 179, (char *)&v23, (__int64)&v20, 0, 1, 6, 0, 0.6, 0.0, 5.0, 0, 0, 1, 3, 1); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "FadeIn:", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, -100.0, -50.0); cocos2d::CCPoint::operator+(&v20, v15); SetupTriggerPopup::createValueControlAdvanced( this, 181, (char *)&v23, (__int64)&v20, 0, 1, 6, 0, 0.6, 0.0, 5.0, 0, 0, 1, 3, 1); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "FadeOut:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 100.0, -50.0); cocos2d::CCPoint::operator+(&v20, v15); SetupTriggerPopup::createValueControlAdvanced( this, 182, (char *)&v23, (__int64)&v20, 0, 1, 6, 0, 0.6, 0.0, 5.0, 0, 0, 1, 3, 1); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "TimeOff:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, -100.0, -75.0); cocos2d::CCPoint::operator+(&v20, v15); SetupTriggerPopup::createValueControlAdvanced( this, 177, (char *)&v23, (__int64)&v20, 0, 1, 6, 0, 0.6, -10.0, 10.0, 0, 0, 1, 3, 1); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "MaxSize:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 100.0, -75.0); cocos2d::CCPoint::operator+(&v20, v15); SetupTriggerPopup::createValueControlAdvanced( this, 512, (char *)&v23, (__int64)&v20, 0, 1, 6, 0, 0.6, 0.0, 1.0, 0, 0, 1, 3, 1); if ( (v23 & 1) != 0 ) operator delete(v25); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, (float)(*(float *)&v14 * 0.5) + -25.0, v16 - 100.0); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "Invert", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, -162.5, 0.0); cocos2d::CCPoint::operator+(&v20, v17); SetupTriggerPopup::createToggleValueControl((__int64)this, 0xB8u, &v23, (const cocos2d::CCPoint *)&v20, 0, 0, 0, 0.8); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "Flip", 4u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, -97.5, 0.0); cocos2d::CCPoint::operator+(&v20, v17); SetupTriggerPopup::createToggleValueControl((__int64)this, 0xB9u, &v23, (const cocos2d::CCPoint *)&v20, 0, 0, 0, 0.8); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "Rotate", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, -32.5, 0.0); cocos2d::CCPoint::operator+(&v20, v17); SetupTriggerPopup::createToggleValueControl((__int64)this, 0xBAu, &v23, (const cocos2d::CCPoint *)&v20, 0, 0, 0, 0.8); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "Dual", 4u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 32.5, 0.0); cocos2d::CCPoint::operator+(&v20, v17); SetupTriggerPopup::createToggleValueControl((__int64)this, 0xBBu, &v23, (const cocos2d::CCPoint *)&v20, 0, 0, 0, 0.8); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "Target", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 97.5, 0.0); cocos2d::CCPoint::operator+(&v20, v17); SetupTriggerPopup::createToggleValueControl((__int64)this, 0xBCu, &v23, (const cocos2d::CCPoint *)&v20, 0, 0, 0, 0.8); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "Relative", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 162.5, 0.0); cocos2d::CCPoint::operator+(&v20, v17); SetupTriggerPopup::createToggleValueControl((__int64)this, 0x202u, &v23, (const cocos2d::CCPoint *)&v20, 0, 0, 0, 0.8); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "Animate", 7u); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v20, (float)((float)((float)(*((float *)this + 183) * 0.5) + (float)(*(float *)&v14 * 0.5)) - 72.0) - 90.0, 20.0 - (float)((float)(*((float *)this + 184) * 0.5) - (float)(*((float *)&v14 + 1) * 0.5))); SetupTriggerPopup::createToggleValueControl((__int64)this, 0x201u, &v23, (const cocos2d::CCPoint *)&v20, 0, 0, 0, 1.0); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "ScreenOff:", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, -100.0, -125.0); cocos2d::CCPoint::operator+(&v20, v15); SetupTriggerPopup::createValueControlAdvanced( this, 290, (char *)&v23, (__int64)&v20, 0, 1, 6, 0, 0.6, -1.0, 1.0, 0, 101, 1, 3, 1); if ( (v23 & 1) != 0 ) operator delete(v25); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, (float)(*(float *)&v14 * 0.5) + -20.0, v16 - 125.0); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "CenterID", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, -100.0, 0.0); cocos2d::CCPoint::operator+(&v20, v18); LOBYTE(v13) = 1; IDNameInput::create(this, this + 68, 1, 51, &v23, &v20, 6, 100, 0.6, 0, v13); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "P1", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 20.0, 0.0); cocos2d::CCPoint::operator+(&v20, v18); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x8Au, &v23, (const cocos2d::CCPoint *)&v20, 0, 0, 100, 0.8); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "P2", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 80.0, 0.0); cocos2d::CCPoint::operator+(&v20, v18); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0xC8u, &v23, (const cocos2d::CCPoint *)&v20, 0, 0, 100, 0.8); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "Follow", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 140.0, 0.0); cocos2d::CCPoint::operator+(&v20, v18); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0xBEu, &v23, (const cocos2d::CCPoint *)&v20, 0, 0, 100, 0.8); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "FadeTime:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, -100.0, -185.0); cocos2d::CCPoint::operator+(&v20, v15); SetupTriggerPopup::createValueControlAdvanced( this, 10, (char *)&v23, (__int64)&v20, 0, 1, 6, 0, 0.6, 0.0, 1.0, 0, 103, 1, 2, 0); if ( (v23 & 1) != 0 ) operator delete(v25); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 100.0, -170.0); cocos2d::CCPoint::operator+(&v20, v15); SetupTriggerPopup::createEasingControls((__int64)this, (__int64)&v20, 0, 103, 0.65); v7 = (*((float (__fastcall **)(cocos2d::CCArray **, __int64))*this + 183))(this, 188); v8 = v7 != 0.0; (*((void (__fastcall **)(cocos2d::CCArray **, __int64, bool))*this + 169))(this, 100, v7 != 0.0); (*((void (__fastcall **)(cocos2d::CCArray **, __int64, bool))*this + 169))(this, 101, !v8); v9 = *((void (__fastcall **)(cocos2d::CCArray **, __int64, bool))*this + 169); v10 = (*((float (__fastcall **)(cocos2d::CCArray **, __int64))*this + 183))(this, 513); v9(this, 103, v10 != 0.0); v11 = (*((float (__fastcall **)(cocos2d::CCArray **, __int64))*this + 183))(this, 513); SetupTriggerPopup::toggleDisableButtons((__int64)this, v11 != 0.0); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source