// // SetupShaderEffectPopup::setupInvertColor from 0x5565fc to 0x5568ec (752 bytes) // // 1 xrefs: // > SetupShaderEffectPopup::init @ 0x557240 // // 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::setupInvertColor(SetupShaderEffectPopup *a1) { cocos2d::CCDirector *v2; // r0 cocos2d::CCPoint v3; // r1 cocos2d::CCFloat *v4; // [sp+4h] [bp-40h] _BYTE v5[4]; // [sp+18h] [bp-2Ch] BYREF cocos2d::CCSize v6; // [sp+1Ch] [bp-28h] BYREF cocos2d::CCPoint v7; // [sp+24h] [bp-20h] BYREF cocos2d::CCPoint v8; // [sp+2Ch] [bp-18h] BYREF cocos2d::CCPoint v9; // [sp+34h] [bp-10h] BYREF sub_776584((int)&v9, "Setup Invert Color"); SetupTriggerPopup::addTitle((int)a1); sub_774008(&v9); sub_776584((int)&v8, "Help"); sub_776584( (int)&v9, "Inverts colors on the screen.\n" "Target is how much of the filter to apply.\n" "FadeTime is time until final state is reached.\n" "R, G, and B let you customize the filter color.\n" "EditRGB allows editing the above values.\n" "TweenRGB makes transitions smoother.\n" "ClampRGB limits these values to 1.\n" "Tip: Use ClampRGB and set an R, G or B value\n" "over 1 to avoid the middle grey effect."); SetupTriggerPopup::addHelpButton((int)a1, (int)&v8, (int)&v9, 1065353216); sub_774008(&v9); sub_774008(&v8); v2 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v6, v2); cocos2d::CCPoint::CCPoint(&v7, v6.width * 0.5, (float)(v6.height * 0.5) + 90.0); sub_776584((int)v5, "Target:"); cocos2d::CCPoint::CCPoint(&v8, -100.0, 0.0); cocos2d::CCPoint::operator+(&v9, &v7, &v8); SetupTriggerPopup::createValueControl( (unsigned int)a1, 176, (int)v5, &v9, (cocos2d::CCZone *)0x3F333333, nullptr, 0.0); sub_774008(v5); sub_776584((int)v5, "FadeTime:"); cocos2d::CCPoint::CCPoint(&v8, 100.0, 0.0); cocos2d::CCPoint::operator+(&v9, &v7, &v8); SetupTriggerPopup::createValueControl((unsigned int)a1, 10, (int)v5, &v9, (cocos2d::CCZone *)0x3F333333, nullptr, 0.0); sub_774008(v5); sub_776584((int)v5, "R:"); cocos2d::CCPoint::CCPoint(&v8, -130.0, -50.0); cocos2d::CCPoint::operator+(&v9, &v7, &v8); SetupTriggerPopup::createValueControl( (unsigned int)a1, 179, (int)v5, &v9, (cocos2d::CCZone *)0x3F19999A, nullptr, 0.0); sub_774008(v5); sub_776584((int)v5, "G:"); cocos2d::CCPoint::CCPoint(&v8, 0.0, -50.0); cocos2d::CCPoint::operator+(&v9, &v7, &v8); SetupTriggerPopup::createValueControl( (unsigned int)a1, 180, (int)v5, &v9, (cocos2d::CCZone *)0x3F19999A, nullptr, 0.0); sub_774008(v5); sub_776584((int)v5, "B:"); cocos2d::CCPoint::CCPoint(&v8, 130.0, -50.0); cocos2d::CCPoint::operator+(&v9, &v7, &v8); SetupTriggerPopup::createValueControl( (unsigned int)a1, 189, (int)v5, &v9, (cocos2d::CCZone *)0x3F19999A, nullptr, 0.0); sub_774008(v5); sub_776584((int)v5, "EditRGB"); cocos2d::CCPoint::CCPoint(&v8, -130.0, -105.0); cocos2d::CCPoint::operator+(&v9, &v7, &v8); SetupTriggerPopup::createToggleValueControl(a1, 188, (int)v5, &v9, 0, 0, 0, 1.0); sub_774008(v5); sub_776584((int)v5, "TweenRGB"); cocos2d::CCPoint::CCPoint(&v8, -30.0, -105.0); cocos2d::CCPoint::operator+(&v9, &v7, &v8); SetupTriggerPopup::createToggleValueControl(a1, 190, (int)v5, &v9, 0, 0, 0, 1.0); sub_774008(v5); sub_776584((int)v5, "ClampRGB"); cocos2d::CCPoint::CCPoint(&v8, 70.0, -105.0); cocos2d::CCPoint::operator+(&v9, &v7, &v8); SetupTriggerPopup::createToggleValueControl(a1, 194, (int)v5, &v9, 0, 0, 0, 1.0); sub_774008(v5); cocos2d::CCPoint::CCPoint(&v8, 0.0, -140.0); cocos2d::CCPoint::operator+(&v9, &v7, &v8); v3.y = 0.8; LODWORD(v3.x) = &v9; SetupTriggerPopup::createEasingControls(a1, v3, 0.0, 0, (int)v4); }
GD Web Decomp Icon

GD Web Decomp

Raw Source