// // SetupShaderEffectPopup::setupChromaticGlitch from 0x68a04c to 0x68a504 (1208 bytes) // // 1 xrefs: // > SetupShaderEffectPopup::init @ 0x68de54 // // 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:07 +0000 // int __fastcall SetupShaderEffectPopup::setupChromaticGlitch(cocos2d::CCDictionary **this) { cocos2d::CCDirector *v2; // r0 float v4; // [sp+14h] [bp-40h] BYREF float v5; // [sp+18h] [bp-3Ch] _BYTE v6[8]; // [sp+1Ch] [bp-38h] BYREF _BYTE v7[8]; // [sp+24h] [bp-30h] BYREF _BYTE v8[8]; // [sp+2Ch] [bp-28h] BYREF int v9[3]; // [sp+34h] [bp-20h] BYREF int v10; // [sp+40h] [bp-14h] BYREF int v11; // [sp+44h] [bp-10h] int v12; // [sp+48h] [bp-Ch] v10 = 0; v11 = 0; v12 = 0; std::string::__init(&v10, "Setup Chroma Glitch", 0x13u); SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)&v10); std::string::~string((int)&v10); memset(v9, 0, sizeof(v9)); std::string::__init(v9, "Help", 4u); v10 = 0; v11 = 0; v12 = 0; std::string::__init( &v10, "Applies chromatic aberration in waves alongside glitch lines.\n" "Speed is how fast the wave effect happens.\n" "Strength is how big the waves are.\n" "LineThickness is how big the lines are.\n" "LineStrength is the opacity of the lines.\n" "RGBOff sets color offset.\n" "FadeTime is time until final state is reached.\n" "RelativePos changes the shape of the effect based on position.", 0x1A5u); SetupTriggerPopup::addHelpButton((int)this, (int)v9, (int)&v10, 1065353216); std::string::~string((int)&v10); v2 = (cocos2d::CCDirector *)std::string::~string((int)v9); cocos2d::CCDirector::sharedDirector(v2); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v4); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v6, v4 * 0.5, (float)(v5 * 0.5) + 100.0); v10 = 0; v11 = 0; v12 = 0; std::string::__init(&v10, "Speed:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, -100.0, 0.0); cocos2d::CCPoint::operator+(v8, v6, v7); SetupTriggerPopup::createValueControl(this, 175, (int)&v10, (const cocos2d::CCPoint *)v8, 1058642330, 0, 1084227584); std::string::~string((int)&v10); v10 = 0; v11 = 0; v12 = 0; std::string::__init(&v10, "RGBOff:", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 100.0, 0.0); cocos2d::CCPoint::operator+(v8, v6, v7); SetupTriggerPopup::createValueControl(this, 180, (int)&v10, (const cocos2d::CCPoint *)v8, 1058642330, 0, 1084227584); std::string::~string((int)&v10); v10 = 0; v11 = 0; v12 = 0; std::string::__init(&v10, "Strength:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, -100.0, -40.0); cocos2d::CCPoint::operator+(v8, v6, v7); SetupTriggerPopup::createValueControl(this, 176, (int)&v10, (const cocos2d::CCPoint *)v8, 1058642330, 0, 1084227584); std::string::~string((int)&v10); v10 = 0; v11 = 0; v12 = 0; std::string::__init(&v10, "FadeTime:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 100.0, -40.0); cocos2d::CCPoint::operator+(v8, v6, v7); SetupTriggerPopup::createValueControl(this, 10, (int)&v10, (const cocos2d::CCPoint *)v8, 1058642330, 0, 1084227584); std::string::~string((int)&v10); v10 = 0; v11 = 0; v12 = 0; std::string::__init(&v10, "LineThickness:", 0xEu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, -100.0, -80.0); cocos2d::CCPoint::operator+(v8, v6, v7); SetupTriggerPopup::createValueControl(this, 179, (int)&v10, (const cocos2d::CCPoint *)v8, 1058642330, 0, 0x40000000); std::string::~string((int)&v10); v10 = 0; v11 = 0; v12 = 0; std::string::__init(&v10, "SegmentH:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 100.0, -80.0); cocos2d::CCPoint::operator+(v8, v6, v7); SetupTriggerPopup::createValueControl(this, 189, (int)&v10, (const cocos2d::CCPoint *)v8, 1058642330, 0, 1084227584); std::string::~string((int)&v10); v10 = 0; v11 = 0; v12 = 0; std::string::__init(&v10, "LineStrength:", 0xDu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, -100.0, -120.0); cocos2d::CCPoint::operator+(v8, v6, v7); SetupTriggerPopup::createValueControl(this, 191, (int)&v10, (const cocos2d::CCPoint *)v8, 1058642330, 0, 0x40000000); std::string::~string((int)&v10); v10 = 0; v11 = 0; v12 = 0; std::string::__init(&v10, "Disable", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 110.0, -125.0); cocos2d::CCPoint::operator+(v8, v6, v7); SetupTriggerPopup::createToggleValueControl((int)this, 192, (int)&v10, (const cocos2d::CCPoint *)v8, 0, 0, 0, 1.0); std::string::~string((int)&v10); v10 = 0; v11 = 0; v12 = 0; std::string::__init(&v10, "Relative\nPos", 0xCu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 110.0, -155.0); cocos2d::CCPoint::operator+(v8, v6, v7); SetupTriggerPopup::createToggleValueControl((int)this, 194, (int)&v10, (const cocos2d::CCPoint *)v8, 0, 0, 0, 1.0); std::string::~string((int)&v10); v10 = 0; v11 = 0; v12 = 0; std::string::__init(&v10, "Relative", 8u); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v8, (float)((float)((float)(*((float *)this + 139) * 0.5) + (float)(v4 * 0.5)) - 72.0) - 90.0, (float)((float)(v5 * 0.5) - (float)(*((float *)this + 140) * 0.5)) + 20.0); SetupTriggerPopup::createToggleValueControl((int)this, 514, (int)&v10, (const cocos2d::CCPoint *)v8, 0, 0, 0, 1.0); std::string::~string((int)&v10); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 0.0, -160.0); cocos2d::CCPoint::operator+(v8, v6, v7); return SetupTriggerPopup::createEasingControls((int)this, (int)v8, 0.8, 0, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source