// // SetupShaderEffectPopup::setupChromaticGlitch from 0xb34d64 to 0xb35438 (1748 bytes) // // 2 xrefs: // > SetupShaderEffectPopup::init @ 0xb3ac40 // > @ 0x76918 // // 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::setupChromaticGlitch(cocos2d::CCArray **this) { cocos2d::CCDirector *v2; // x0 cocos2d::CCDirector *v3; // x0 __int64 v5; // [xsp+68h] [xbp+68h] BYREF _BYTE v6[8]; // [xsp+70h] [xbp+70h] BYREF _BYTE v7[8]; // [xsp+78h] [xbp+78h] BYREF __int64 v8; // [xsp+80h] [xbp+80h] BYREF cocos2d::CCDirector *v9[2]; // [xsp+88h] [xbp+88h] BYREF void *v10; // [xsp+98h] [xbp+98h] __int64 v11; // [xsp+A0h] [xbp+A0h] BYREF __int64 v12; // [xsp+A8h] [xbp+A8h] void *v13; // [xsp+B0h] [xbp+B0h] v11 = 0; v12 = 0; v13 = nullptr; std::string::__init(&v11, "Setup Chroma Glitch", 0x13u); SetupTriggerPopup::addTitle((__int64)this, (__int64)&v11); if ( (v11 & 1) != 0 ) operator delete(v13); v9[0] = nullptr; v9[1] = nullptr; v10 = nullptr; std::string::__init((__int64 *)v9, "Help", 4u); v11 = 0; v12 = 0; v13 = nullptr; std::string::__init( &v11, "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((__int64)this, (char *)v9, (char *)&v11, 1.0); if ( (v11 & 1) != 0 ) operator delete(v13); v2 = (cocos2d::CCDirector *)LOBYTE(v9[0]); if ( ((__int64)v9[0] & 1) != 0 ) operator delete(v10); v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v2); cocos2d::CCDirector::getWinSize(&v5, v3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v6, *(float *)&v5 * 0.5, (float)(*((float *)&v5 + 1) * 0.5) + 100.0); v11 = 0; v12 = 0; v13 = nullptr; std::string::__init(&v11, "Speed:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, -100.0, 0.0); cocos2d::CCPoint::operator+(&v8, v6); SetupTriggerPopup::createValueControl(this, 175, (char *)&v11, (cocos2d::CCPoint *)&v8, 0.6, 0.0, 5.0); if ( (v11 & 1) != 0 ) operator delete(v13); v11 = 0; v12 = 0; v13 = nullptr; std::string::__init(&v11, "RGBOff:", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 100.0, 0.0); cocos2d::CCPoint::operator+(&v8, v6); SetupTriggerPopup::createValueControl(this, 180, (char *)&v11, (cocos2d::CCPoint *)&v8, 0.6, 0.0, 5.0); if ( (v11 & 1) != 0 ) operator delete(v13); v11 = 0; v12 = 0; v13 = nullptr; std::string::__init(&v11, "Strength:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, -100.0, -40.0); cocos2d::CCPoint::operator+(&v8, v6); SetupTriggerPopup::createValueControl(this, 176, (char *)&v11, (cocos2d::CCPoint *)&v8, 0.6, 0.0, 5.0); if ( (v11 & 1) != 0 ) operator delete(v13); v11 = 0; v12 = 0; v13 = nullptr; std::string::__init(&v11, "FadeTime:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 100.0, -40.0); cocos2d::CCPoint::operator+(&v8, v6); SetupTriggerPopup::createValueControl(this, 10, (char *)&v11, (cocos2d::CCPoint *)&v8, 0.6, 0.0, 5.0); if ( (v11 & 1) != 0 ) operator delete(v13); v11 = 0; v12 = 0; v13 = nullptr; std::string::__init(&v11, "LineThickness:", 0xEu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, -100.0, -80.0); cocos2d::CCPoint::operator+(&v8, v6); SetupTriggerPopup::createValueControl(this, 179, (char *)&v11, (cocos2d::CCPoint *)&v8, 0.6, 0.0, 2.0); if ( (v11 & 1) != 0 ) operator delete(v13); v11 = 0; v12 = 0; v13 = nullptr; std::string::__init(&v11, "SegmentH:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 100.0, -80.0); cocos2d::CCPoint::operator+(&v8, v6); SetupTriggerPopup::createValueControl(this, 189, (char *)&v11, (cocos2d::CCPoint *)&v8, 0.6, 0.0, 5.0); if ( (v11 & 1) != 0 ) operator delete(v13); v11 = 0; v12 = 0; v13 = nullptr; std::string::__init(&v11, "LineStrength:", 0xDu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, -100.0, -120.0); cocos2d::CCPoint::operator+(&v8, v6); SetupTriggerPopup::createValueControl(this, 191, (char *)&v11, (cocos2d::CCPoint *)&v8, 0.6, 0.0, 2.0); if ( (v11 & 1) != 0 ) operator delete(v13); v11 = 0; v12 = 0; v13 = nullptr; std::string::__init(&v11, "Disable", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 110.0, -125.0); cocos2d::CCPoint::operator+(&v8, v6); SetupTriggerPopup::createToggleValueControl((__int64)this, 0xC0u, &v11, (const cocos2d::CCPoint *)&v8, 0, 0, 0, 1.0); if ( (v11 & 1) != 0 ) operator delete(v13); v11 = 0; v12 = 0; v13 = nullptr; std::string::__init(&v11, "Relative\nPos", 0xCu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 110.0, -155.0); cocos2d::CCPoint::operator+(&v8, v6); SetupTriggerPopup::createToggleValueControl((__int64)this, 0xC2u, &v11, (const cocos2d::CCPoint *)&v8, 0, 0, 0, 1.0); if ( (v11 & 1) != 0 ) operator delete(v13); v11 = 0; v12 = 0; v13 = nullptr; std::string::__init(&v11, "Relative", 8u); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v8, (float)((float)((float)(*((float *)this + 183) * 0.5) + (float)(*(float *)&v5 * 0.5)) - 72.0) - 90.0, 20.0 - (float)((float)(*((float *)this + 184) * 0.5) - (float)(*((float *)&v5 + 1) * 0.5))); SetupTriggerPopup::createToggleValueControl((__int64)this, 0x202u, &v11, (const cocos2d::CCPoint *)&v8, 0, 0, 0, 1.0); if ( (v11 & 1) != 0 ) operator delete(v13); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 0.0, -160.0); cocos2d::CCPoint::operator+(&v8, v6); SetupTriggerPopup::createEasingControls((__int64)this, (__int64)&v8, 0, 0, 0.8); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source