// // SetupShaderEffectPopup::setupInvertColor from 0x1002ce3d0 to 0x1002ce95f (1423 bytes) // // 1 xrefs: // > SetupShaderEffectPopup::init @ 0x1002c623a // // 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 __fastcall SetupShaderEffectPopup::setupInvertColor(SetupShaderEffectPopup *a1) { char v1; // [rsp+10h] [rbp-140h] BYREF char v2[15]; // [rsp+11h] [rbp-13Fh] BYREF void *v3; // [rsp+20h] [rbp-130h] __int128 v4; // [rsp+28h] [rbp-128h] BYREF void *v5; // [rsp+38h] [rbp-118h] __int128 v6; // [rsp+40h] [rbp-110h] BYREF void *v7; // [rsp+50h] [rbp-100h] __int128 v8; // [rsp+58h] [rbp-F8h] BYREF void *v9; // [rsp+68h] [rbp-E8h] __int128 v10; // [rsp+70h] [rbp-E0h] BYREF void *v11; // [rsp+80h] [rbp-D0h] __int128 v12; // [rsp+88h] [rbp-C8h] BYREF void *v13; // [rsp+98h] [rbp-B8h] __int128 v14; // [rsp+A0h] [rbp-B0h] BYREF void *v15; // [rsp+B0h] [rbp-A0h] __int128 v16; // [rsp+B8h] [rbp-98h] BYREF void *v17; // [rsp+C8h] [rbp-88h] float v18[2]; // [rsp+D0h] [rbp-80h] BYREF void *v19[3]; // [rsp+D8h] [rbp-78h] BYREF __int128 v20; // [rsp+F0h] [rbp-60h] BYREF void *v21; // [rsp+100h] [rbp-50h] __int128 v22; // [rsp+108h] [rbp-48h] BYREF void *v23; // [rsp+118h] [rbp-38h] unsigned __int64 v24; // [rsp+120h] [rbp-30h] BYREF double v25; // [rsp+128h] [rbp-28h] BYREF unsigned __int64 v26[4]; // [rsp+130h] [rbp-20h] BYREF strcpy((char *)v19, "$Setup Invert Color"); SetupTriggerPopup::addTitle((__int64)a1, (__int64)v19); if ( ((__int64)v19[0] & 1) != 0 ) operator delete(v19[2]); v1 = 8; strcpy(v2, "Help"); v5 = operator new(0x1B0u); *(_QWORD *)&v4 = 433; *((_QWORD *)&v4 + 1) = 429; strcpy( (char *)v5, "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((__int64)a1, (__int64)&v1, &v4, (__m128)0x3F800000u); if ( (v4 & 1) != 0 ) operator delete(v5); if ( (v1 & 1) != 0 ) operator delete(v3); cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v18); sub_10028CBE0((float *)&v24, v18[0] * 0.5, (float)(0.5 * v18[1]) + 90.0); LOBYTE(v20) = 14; strcpy((char *)&v20 + 1, "Target:"); sub_10028CBE0((float *)v26, -100.0, 0.0); sub_10028CCE0(&v25, &v24, v26); SetupTriggerPopup::createValueControl((int)a1, 176, &v20, COERCE_DOUBLE(1060320051), 0.0, 0.0); if ( (v20 & 1) != 0 ) operator delete(v21); LOBYTE(v6) = 18; strcpy((char *)&v6 + 1, "FadeTime:"); sub_10028CBE0((float *)v26, 100.0, 0.0); sub_10028CCE0(&v25, &v24, v26); SetupTriggerPopup::createValueControl((int)a1, 10, &v6, COERCE_DOUBLE(1060320051), 0.0, 0.0); if ( (v6 & 1) != 0 ) operator delete(v7); LOBYTE(v8) = 4; strcpy((char *)&v8 + 1, "R:"); sub_10028CBE0((float *)v26, -130.0, -50.0); sub_10028CCE0(&v25, &v24, v26); SetupTriggerPopup::createValueControl((int)a1, 179, &v8, COERCE_DOUBLE(1058642330), 0.0, 0.0); if ( (v8 & 1) != 0 ) operator delete(v9); LOBYTE(v10) = 4; strcpy((char *)&v10 + 1, "G:"); sub_10028CBE0((float *)v26, 0.0, -50.0); sub_10028CCE0(&v25, &v24, v26); SetupTriggerPopup::createValueControl((int)a1, 180, &v10, COERCE_DOUBLE(1058642330), 0.0, 0.0); if ( (v10 & 1) != 0 ) operator delete(v11); LOBYTE(v12) = 4; strcpy((char *)&v12 + 1, "B:"); sub_10028CBE0((float *)v26, 130.0, -50.0); sub_10028CCE0(&v25, &v24, v26); SetupTriggerPopup::createValueControl((int)a1, 189, &v12, COERCE_DOUBLE(1058642330), 0.0, 0.0); if ( (v12 & 1) != 0 ) operator delete(v13); LOBYTE(v22) = 14; strcpy((char *)&v22 + 1, "EditRGB"); sub_10028CBE0((float *)v26, -130.0, -105.0); sub_10028CCE0(&v25, &v24, v26); SetupTriggerPopup::createToggleValueControl((int)a1, 188, &v22, 1.0, (__int64)&v25, 0, 0, 0); if ( (v22 & 1) != 0 ) operator delete(v23); LOBYTE(v14) = 16; strcpy((char *)&v14 + 1, "TweenRGB"); sub_10028CBE0((float *)v26, -30.0, -105.0); sub_10028CCE0(&v25, &v24, v26); SetupTriggerPopup::createToggleValueControl((int)a1, 190, &v14, 1.0, (__int64)&v25, 0, 0, 0); if ( (v14 & 1) != 0 ) operator delete(v15); LOBYTE(v16) = 16; strcpy((char *)&v16 + 1, "ClampRGB"); sub_10028CBE0((float *)v26, 70.0, -105.0); sub_10028CCE0(&v25, &v24, v26); SetupTriggerPopup::createToggleValueControl((int)a1, 194, &v16, 1.0, (__int64)&v25, 0, 0, 0); if ( (v16 & 1) != 0 ) operator delete(v17); sub_10028CBE0((float *)v26, 0.0, -140.0); sub_10028CCE0(&v25, &v24, v26); SetupTriggerPopup::createEasingControls(a1, (cocos2d::CCPoint)1061997773LL, -140.0, (int)&v25, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source