// // SetupShaderEffectPopup::setupGlitch from 0x553738 to 0x553a32 (762 bytes) // // 1 xrefs: // > SetupShaderEffectPopup::init @ 0x5571e8 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void SetupShaderEffectPopup::setupGlitch(SetupShaderEffectPopup *a1) { cocos2d::CCDirector *v2; // r0 _BYTE v3[4]; // [sp+18h] [bp-2Ch] BYREF cocos2d::CCSize v4; // [sp+1Ch] [bp-28h] BYREF cocos2d::CCPoint v5; // [sp+24h] [bp-20h] BYREF cocos2d::CCPoint v6; // [sp+2Ch] [bp-18h] BYREF cocos2d::CCPoint v7; // [sp+34h] [bp-10h] BYREF sub_776584((int)&v7, "Setup Glitch"); SetupTriggerPopup::addTitle((int)a1); sub_774008(&v7); sub_776584((int)&v6, "Glitch"); sub_776584( (int)&v7, "Speed defines how fast the glitch effect happens.\n" "SliceHeight is how high up objects get sliced.\n" "MaxSliceXOff sets how much objects get sliced.\n" "MaxColXOff and MaxColYOff is the max offset for the color effect on each axis.\n" "Relative makes the effect follow screen movement."); SetupTriggerPopup::addHelpButton((int)a1, (int)&v6, (int)&v7, 1065353216); sub_774008(&v7); sub_774008(&v6); v2 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v4, v2); cocos2d::CCPoint::CCPoint(&v5, v4.width * 0.5, (float)(v4.height * 0.5) + 98.0); sub_776584((int)v3, "FadeTime:"); cocos2d::CCPoint::CCPoint(&v6, -100.0, 0.0); cocos2d::CCPoint::operator+(&v7, &v5, &v6); SetupTriggerPopup::createValueControl((unsigned int)a1, 10, (int)v3, &v7, (cocos2d::CCZone *)0x3F333333, nullptr, 0.0); sub_774008(v3); sub_776584((int)v3, "Strength:"); cocos2d::CCPoint::CCPoint(&v6, 100.0, 0.0); cocos2d::CCPoint::operator+(&v7, &v5, &v6); SetupTriggerPopup::createValueControl( (unsigned int)a1, 176, (int)v3, &v7, (cocos2d::CCZone *)0x3F333333, nullptr, 0.0); sub_774008(v3); sub_776584((int)v3, "Speed:"); cocos2d::CCPoint::CCPoint(&v6, -100.0, -50.0); cocos2d::CCPoint::operator+(&v7, &v5, &v6); SetupTriggerPopup::createValueControl( (unsigned int)a1, 175, (int)v3, &v7, (cocos2d::CCZone *)0x3F333333, nullptr, 0.0); sub_774008(v3); sub_776584((int)v3, "MaxSliceXOff:"); cocos2d::CCPoint::CCPoint(&v6, 100.0, -100.0); cocos2d::CCPoint::operator+(&v7, &v5, &v6); SetupTriggerPopup::createValueControl( (unsigned int)a1, 191, (int)v3, &v7, (cocos2d::CCZone *)0x3F333333, nullptr, 0.0); sub_774008(v3); sub_776584((int)v3, "SliceHeight:"); cocos2d::CCPoint::CCPoint(&v6, -100.0, -100.0); cocos2d::CCPoint::operator+(&v7, &v5, &v6); SetupTriggerPopup::createValueControl( (unsigned int)a1, 179, (int)v3, &v7, (cocos2d::CCZone *)0x3F333333, nullptr, 0.0); sub_774008(v3); sub_776584((int)v3, "MaxColXOff:"); cocos2d::CCPoint::CCPoint(&v6, -100.0, -150.0); cocos2d::CCPoint::operator+(&v7, &v5, &v6); SetupTriggerPopup::createValueControl( (unsigned int)a1, 181, (int)v3, &v7, (cocos2d::CCZone *)0x3F333333, nullptr, 0.0); sub_774008(v3); sub_776584((int)v3, "MaxColYOff:"); cocos2d::CCPoint::CCPoint(&v6, 100.0, -150.0); cocos2d::CCPoint::operator+(&v7, &v5, &v6); SetupTriggerPopup::createValueControl( (unsigned int)a1, 182, (int)v3, &v7, (cocos2d::CCZone *)0x3F333333, nullptr, 0.0); sub_774008(v3); sub_776584((int)&v6, "Relative"); cocos2d::CCPoint::CCPoint( &v7, (float)((float)((float)(a1->m_width * 0.5) + (float)(v4.width * 0.5)) - 72.0) - 90.0, (float)((float)(v4.height * 0.5) - (float)(a1->m_height * 0.5)) + 20.0); SetupTriggerPopup::createToggleValueControl(a1, 514, (int)&v6, &v7, 0, 0, 0, 1.0); sub_774008(&v6); }
GD Web Decomp Icon

GD Web Decomp

Raw Source