// // SetupShaderEffectPopup::setupShockWave from 0x688240 to 0x688dca (2954 bytes) // // 1 xrefs: // > SetupShaderEffectPopup::init @ 0x68de34 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:56:06 +0000 // int __fastcall SetupShaderEffectPopup::setupShockWave(cocos2d::CCDictionary **this) { int v2; // r8 void (__fastcall *v3)(int, _BYTE *); // r9 int v4; // r10 cocos2d::CCDirector *v5; // r0 _BOOL4 v6; // r4 void (__fastcall *v7)(cocos2d::CCDictionary **, int, _BOOL4); // r4 _BOOL4 v8; // r2 void (__fastcall *v9)(cocos2d::CCDictionary **, int, _BOOL4); // r4 _BOOL4 v10; // r2 _BOOL4 v11; // r1 float v13; // [sp+34h] [bp-50h] BYREF float v14; // [sp+38h] [bp-4Ch] _BYTE v15[4]; // [sp+3Ch] [bp-48h] BYREF float v16; // [sp+40h] [bp-44h] _BYTE v17[8]; // [sp+44h] [bp-40h] BYREF _BYTE v18[8]; // [sp+4Ch] [bp-38h] BYREF _BYTE v19[8]; // [sp+54h] [bp-30h] BYREF _BYTE v20[8]; // [sp+5Ch] [bp-28h] BYREF int v21[3]; // [sp+64h] [bp-20h] BYREF int v22; // [sp+70h] [bp-14h] BYREF int v23; // [sp+74h] [bp-10h] int v24; // [sp+78h] [bp-Ch] v22 = 0; v23 = 0; v24 = 0; std::string::__init(&v22, "Setup ShockWave", 0xFu); v2 = SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)&v22); std::string::~string((int)&v22); v3 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v2 + 92); v4 = (*(int (__fastcall **)(int))(*(_DWORD *)v2 + 96))(v2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 0.0, 2.0); cocos2d::CCPoint::operator+(v20, v4, v19); v3(v2, v20); (*(void (__fastcall **)(int, int))(*(_DWORD *)v2 + 80))(v2, 1053609165); memset(v21, 0, sizeof(v21)); std::string::__init(v21, "ShockWave", 9u); v22 = 0; v23 = 0; v24 = 0; std::string::__init( &v22, "Speed defines how fast the shockwave 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" "TimeOff is offset in seconds before the effect begins.\n" "Target lets you set a specific object to do the effect around.\n" "Relative makes the effect follow screen movement.\n" "Invert makes the effect go towards the center.", 0x1D7u); SetupTriggerPopup::addHelpButton((int)this, (int)v21, (int)&v22, 1065353216); std::string::~string((int)&v22); v5 = (cocos2d::CCDirector *)std::string::~string((int)v21); cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v13); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, (float)(v13 * 0.5) - 10.0, (float)(v14 * 0.5) + 110.0); v22 = 0; v23 = 0; v24 = 0; std::string::__init(&v22, "Speed:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, -100.0, 0.0); cocos2d::CCPoint::operator+(v20, v15, v19); SetupTriggerPopup::createValueControlAdvanced( this, 175, (unsigned __int8 *)&v22, (int)v20, 1058642330, 0, 1, 6, 0, 0, 1084227584, 0, 0, 1, 3, 1); std::string::~string((int)&v22); v22 = 0; v23 = 0; v24 = 0; std::string::__init(&v22, "Strength:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 100.0, 0.0); cocos2d::CCPoint::operator+(v20, v15, v19); SetupTriggerPopup::createValueControlAdvanced( this, 176, (unsigned __int8 *)&v22, (int)v20, 1058642330, 0, 1, 6, 0, 0, 1065353216, 0, 0, 1, 3, 1); std::string::~string((int)&v22); v22 = 0; v23 = 0; v24 = 0; std::string::__init(&v22, "Thickness:", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, -100.0, -25.0); cocos2d::CCPoint::operator+(v20, v15, v19); SetupTriggerPopup::createValueControlAdvanced( this, 180, (unsigned __int8 *)&v22, (int)v20, 1058642330, 0, 1, 6, 0, 0, 1084227584, 0, 0, 1, 3, 1); std::string::~string((int)&v22); v22 = 0; v23 = 0; v24 = 0; std::string::__init(&v22, "WaveW:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 100.0, -25.0); cocos2d::CCPoint::operator+(v20, v15, v19); SetupTriggerPopup::createValueControlAdvanced( this, 179, (unsigned __int8 *)&v22, (int)v20, 1058642330, 0, 1, 6, 0, 0, 1084227584, 0, 0, 1, 3, 1); std::string::~string((int)&v22); v22 = 0; v23 = 0; v24 = 0; std::string::__init(&v22, "FadeIn:", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, -100.0, -50.0); cocos2d::CCPoint::operator+(v20, v15, v19); SetupTriggerPopup::createValueControlAdvanced( this, 181, (unsigned __int8 *)&v22, (int)v20, 1058642330, 0, 1, 6, 0, 0, 1084227584, 0, 0, 1, 3, 1); std::string::~string((int)&v22); v22 = 0; v23 = 0; v24 = 0; std::string::__init(&v22, "FadeOut:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 100.0, -50.0); cocos2d::CCPoint::operator+(v20, v15, v19); SetupTriggerPopup::createValueControlAdvanced( this, 182, (unsigned __int8 *)&v22, (int)v20, 1058642330, 0, 1, 6, 0, 0, 1084227584, 0, 0, 1, 3, 1); std::string::~string((int)&v22); v22 = 0; v23 = 0; v24 = 0; std::string::__init(&v22, "TimeOff:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, -100.0, -75.0); cocos2d::CCPoint::operator+(v20, v15, v19); SetupTriggerPopup::createValueControlAdvanced( this, 177, (unsigned __int8 *)&v22, (int)v20, 1058642330, 0, 1, 6, 0, -1054867456, COERCE_INT(10.0), 0, 0, 1, 3, 1); std::string::~string((int)&v22); v22 = 0; v23 = 0; v24 = 0; std::string::__init(&v22, "MaxSize:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 100.0, -75.0); cocos2d::CCPoint::operator+(v20, v15, v19); SetupTriggerPopup::createValueControlAdvanced( this, 512, (unsigned __int8 *)&v22, (int)v20, 1058642330, 0, 1, 6, 0, 0, 1065353216, 0, 0, 1, 3, 1); std::string::~string((int)&v22); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, (float)(v13 * 0.5) - 35.0, v16 - 100.0); v22 = 0; v23 = 0; v24 = 0; std::string::__init(&v22, "Invert", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, -100.0, 0.0); cocos2d::CCPoint::operator+(v20, v17, v19); SetupTriggerPopup::createToggleValueControl((int)this, 184, (int)&v22, (const cocos2d::CCPoint *)v20, 0, 0, 0, 0.8); std::string::~string((int)&v22); v22 = 0; v23 = 0; v24 = 0; std::string::__init(&v22, "Target", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 0.0, 0.0); cocos2d::CCPoint::operator+(v20, v17, v19); SetupTriggerPopup::createToggleValueControl((int)this, 188, (int)&v22, (const cocos2d::CCPoint *)v20, 0, 0, 0, 0.8); std::string::~string((int)&v22); v22 = 0; v23 = 0; v24 = 0; std::string::__init(&v22, "Relative", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 100.0, 0.0); cocos2d::CCPoint::operator+(v20, v17, v19); SetupTriggerPopup::createToggleValueControl((int)this, 514, (int)&v22, (const cocos2d::CCPoint *)v20, 0, 0, 0, 0.8); std::string::~string((int)&v22); v22 = 0; v23 = 0; v24 = 0; std::string::__init(&v22, "Animate", 7u); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v20, (float)((float)((float)(*((float *)this + 139) * 0.5) + (float)(v13 * 0.5)) - 72.0) - 90.0, (float)((float)(v14 * 0.5) - (float)(*((float *)this + 140) * 0.5)) + 20.0); SetupTriggerPopup::createToggleValueControl((int)this, 513, (int)&v22, (const cocos2d::CCPoint *)v20, 0, 0, 0, 1.0); std::string::~string((int)&v22); v22 = 0; v23 = 0; v24 = 0; std::string::__init(&v22, "Screen\nOffX:", 0xCu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, -100.0, -125.0); cocos2d::CCPoint::operator+(v20, v15, v19); SetupTriggerPopup::createValueControlAdvanced( this, 290, (unsigned __int8 *)&v22, (int)v20, 1058642330, 0, 1, 6, 0, -1082130432, 1065353216, 0, 101, 1, 3, 1); std::string::~string((int)&v22); v22 = 0; v23 = 0; v24 = 0; std::string::__init(&v22, "Screen\nOffY:", 0xCu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 100.0, -125.0); cocos2d::CCPoint::operator+(v20, v15, v19); SetupTriggerPopup::createValueControlAdvanced( this, 291, (unsigned __int8 *)&v22, (int)v20, 1058642330, 0, 1, 6, 0, -1082130432, 1065353216, 0, 101, 1, 3, 1); std::string::~string((int)&v22); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, (float)(v13 * 0.5) - 20.0, v16 - 125.0); v22 = 0; v23 = 0; v24 = 0; std::string::__init(&v22, "CenterID", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, -100.0, 0.0); cocos2d::CCPoint::operator+(v20, v18, v19); IDNameInput::create((int)this, (int)(this + 110), 1, 51, (int)&v22, (int)v20, 0.6, 6, 100, 0, 1); std::string::~string((int)&v22); v22 = 0; v23 = 0; v24 = 0; std::string::__init(&v22, "P1", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 20.0, 0.0); cocos2d::CCPoint::operator+(v20, v18, v19); SetupTriggerPopup::createToggleValueControl((int)this, 138, (int)&v22, (const cocos2d::CCPoint *)v20, 0, 0, 100, 0.8); std::string::~string((int)&v22); v22 = 0; v23 = 0; v24 = 0; std::string::__init(&v22, "P2", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 80.0, 0.0); cocos2d::CCPoint::operator+(v20, v18, v19); SetupTriggerPopup::createToggleValueControl((int)this, 200, (int)&v22, (const cocos2d::CCPoint *)v20, 0, 0, 100, 0.8); std::string::~string((int)&v22); v22 = 0; v23 = 0; v24 = 0; std::string::__init(&v22, "Follow", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 140.0, 0.0); cocos2d::CCPoint::operator+(v20, v18, v19); SetupTriggerPopup::createToggleValueControl((int)this, 190, (int)&v22, (const cocos2d::CCPoint *)v20, 0, 0, 100, 0.8); std::string::~string((int)&v22); v22 = 0; v23 = 0; v24 = 0; std::string::__init(&v22, "Inner:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, -100.0, -150.0); cocos2d::CCPoint::operator+(v20, v15, v19); SetupTriggerPopup::createValueControlAdvanced( this, 183, (unsigned __int8 *)&v22, (int)v20, 1058642330, 0, 1, 6, 0, 0, 1084227584, 0, 102, 1, 3, 1); std::string::~string((int)&v22); v22 = 0; v23 = 0; v24 = 0; std::string::__init(&v22, "Outer:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 100.0, -150.0); cocos2d::CCPoint::operator+(v20, v15, v19); SetupTriggerPopup::createValueControlAdvanced( this, 191, (unsigned __int8 *)&v22, (int)v20, 1058642330, 0, 1, 6, 0, 0, 1084227584, 0, 102, 1, 3, 1); std::string::~string((int)&v22); v22 = 0; v23 = 0; v24 = 0; std::string::__init(&v22, "FadeTime:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, -100.0, -185.0); cocos2d::CCPoint::operator+(v20, v15, v19); SetupTriggerPopup::createValueControlAdvanced( this, 10, (unsigned __int8 *)&v22, (int)v20, 1058642330, 0, 1, 6, 0, 0, 1065353216, 0, 103, 1, 2, 0); std::string::~string((int)&v22); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 100.0, -170.0); cocos2d::CCPoint::operator+(v20, v15, v19); SetupTriggerPopup::createEasingControls((int)this, (int)v20, 0.65, 0, 103); v6 = COERCE_FLOAT((*((int (__fastcall **)(cocos2d::CCDictionary **, int))*this + 183))(this, 188)) != 0.0; (*((void (__fastcall **)(cocos2d::CCDictionary **, int, _BOOL4))*this + 169))(this, 100, v6); (*((void (__fastcall **)(cocos2d::CCDictionary **, int, bool))*this + 169))(this, 101, !v6); v7 = *((void (__fastcall **)(cocos2d::CCDictionary **, int, _BOOL4))*this + 169); v8 = COERCE_FLOAT((*((int (__fastcall **)(cocos2d::CCDictionary **, int))*this + 183))(this, 184)) != 0.0; v7(this, 102, v8); v9 = *((void (__fastcall **)(cocos2d::CCDictionary **, int, _BOOL4))*this + 169); v10 = COERCE_FLOAT((*((int (__fastcall **)(cocos2d::CCDictionary **, int))*this + 183))(this, 513)) != 0.0; v9(this, 103, v10); v11 = COERCE_FLOAT((*((int (__fastcall **)(cocos2d::CCDictionary **, int))*this + 183))(this, 513)) != 0.0; return SetupTriggerPopup::toggleDisableButtons((int)this, v11); }
GD Web Decomp Icon

GD Web Decomp

Raw Source