// // SetupShaderEffectPopup::setupPixelate from 0x1002b6c60 to 0x1002b725e (1534 bytes) // // 1 xrefs: // > SetupShaderEffectPopup::init @ 0x1002b2ef9 // // This function is hookable on this platform (idp: pc, 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 12:28:03 +0000 // __int64 __fastcall SetupShaderEffectPopup::setupPixelate(void *a1) { __int64 v1; // rbx __int64 v2; // rax __int128 v4; // [rsp+10h] [rbp-140h] BYREF void *v5; // [rsp+20h] [rbp-130h] __int128 v6; // [rsp+28h] [rbp-128h] BYREF void *v7; // [rsp+38h] [rbp-118h] __int128 v8; // [rsp+40h] [rbp-110h] BYREF void *v9; // [rsp+50h] [rbp-100h] __int128 v10; // [rsp+58h] [rbp-F8h] BYREF void *v11; // [rsp+68h] [rbp-E8h] __int128 v12; // [rsp+70h] [rbp-E0h] BYREF void *v13; // [rsp+80h] [rbp-D0h] __int128 v14; // [rsp+88h] [rbp-C8h] BYREF void *v15; // [rsp+98h] [rbp-B8h] __int128 v16; // [rsp+A0h] [rbp-B0h] BYREF void *v17; // [rsp+B0h] [rbp-A0h] __int128 v18; // [rsp+B8h] [rbp-98h] BYREF void *v19; // [rsp+C8h] [rbp-88h] __int128 v20; // [rsp+D0h] [rbp-80h] BYREF void *v21; // [rsp+E0h] [rbp-70h] char v22; // [rsp+E8h] [rbp-68h] BYREF _BYTE v23[23]; // [rsp+E9h] [rbp-67h] BYREF __int128 v24; // [rsp+100h] [rbp-50h] BYREF void *v25; // [rsp+110h] [rbp-40h] float v26; // [rsp+118h] [rbp-38h] BYREF float v27; // [rsp+11Ch] [rbp-34h] unsigned __int64 v28; // [rsp+120h] [rbp-30h] BYREF unsigned __int64 v29; // [rsp+128h] [rbp-28h] BYREF double v30[4]; // [rsp+130h] [rbp-20h] BYREF v1 = (__int64)a1; v22 = 28; strcpy(v23, "Setup Pixelate"); SetupTriggerPopup::addTitle((__int64)a1, (__int64)&v22); if ( (v22 & 1) != 0 ) operator delete(*(void **)&v23[15]); LOBYTE(v4) = 8; strcpy((char *)&v4 + 1, "Help"); v7 = operator new(0xD8u); *(_QWORD *)&v6 = 217; *((_QWORD *)&v6 + 1) = 208; strcpy( (char *)v7, "Pixelates the screen.\n" "TargetX and TargetY define how strong the effect is.\n" "FadeTime is time until final state is reached.\n" "Snap Grid makes the pixels align with the game camera."); SetupTriggerPopup::addHelpButton((__int64)a1, &v4, &v6, 1.0); if ( (v6 & 1) != 0 ) { a1 = v7; operator delete(v7); } if ( (v4 & 1) != 0 ) { a1 = v5; operator delete(v5); } v2 = cocos2d::CCDirector::sharedDirector(a1, &v4); cocos2d::CCDirector::getWinSize(&v26, v2); sub_100278250((float *)&v28, v26 * 0.5, (float)(v27 * 0.5) + 95.0); LOBYTE(v8) = 16; strcpy((char *)&v8 + 1, "TargetX:"); sub_100278250((float *)&v29, -100.0, 0.0); sub_100278350(v30, &v28, &v29); SetupTriggerPopup::createValueControl(v1, 0xB4u, &v8, (__int64)v30, 0.60000002, 0.0, 10.0); if ( (v8 & 1) != 0 ) operator delete(v9); LOBYTE(v10) = 16; strcpy((char *)&v10 + 1, "TargetY:"); sub_100278250((float *)&v29, 100.0, 0.0); sub_100278350(v30, &v28, &v29); SetupTriggerPopup::createValueControl(v1, 0xBDu, &v10, (__int64)v30, 0.60000002, 0.0, 10.0); if ( (v10 & 1) != 0 ) operator delete(v11); LOBYTE(v12) = 18; strcpy((char *)&v12 + 1, "FadeTime:"); sub_100278250((float *)&v29, -100.0, -40.0); sub_100278350(v30, &v28, &v29); SetupTriggerPopup::createValueControl(v1, 0xAu, &v12, (__int64)v30, 0.60000002, 0.0, 0.0); if ( (v12 & 1) != 0 ) operator delete(v13); strcpy((char *)&v14, "\nUse X"); sub_100278250((float *)&v29, 45.0, -45.0); sub_100278350(v30, &v28, &v29); SetupTriggerPopup::createToggleValueControl(v1, 188, &v14, (__int64)v30, 0, 0, 1.0, 0); if ( (v14 & 1) != 0 ) operator delete(v15); strcpy((char *)&v16, "\nUse Y"); sub_100278250((float *)&v29, 130.0, -45.0); sub_100278350(v30, &v28, &v29); SetupTriggerPopup::createToggleValueControl(v1, 190, &v16, (__int64)v30, 0, 0, 1.0, 0); if ( (v16 & 1) != 0 ) operator delete(v17); LOBYTE(v18) = 18; strcpy((char *)&v18 + 1, "Snap Grid"); sub_100278250((float *)&v29, -155.0, -85.0); sub_100278350(v30, &v28, &v29); SetupTriggerPopup::createToggleValueControl(v1, 194, &v18, (__int64)v30, 0, 0, 1.0, 0); if ( (v18 & 1) != 0 ) operator delete(v19); LOBYTE(v24) = 20; strcpy((char *)&v24 + 1, "Hard Edges"); sub_100278250((float *)&v29, 45.0, -85.0); sub_100278350(v30, &v28, &v29); SetupTriggerPopup::createToggleValueControl(v1, 515, &v24, (__int64)v30, 0, 0, 1.0, 0); if ( (v24 & 1) != 0 ) operator delete(v25); LOBYTE(v20) = 16; strcpy((char *)&v20 + 1, "Relative"); sub_100278250( (float *)v30, (float)((float)((float)(*(float *)(v1 + 732) * 0.5) + (float)(v26 * 0.5)) + -72.0) + -90.0, (float)((float)(v27 * 0.5) - (float)(0.5 * *(float *)(v1 + 736))) + 20.0); SetupTriggerPopup::createToggleValueControl(v1, 514, &v20, (__int64)v30, 0, 0, 1.0, 0); if ( (v20 & 1) != 0 ) operator delete(v21); sub_100278250((float *)&v29, 0.0, -120.0); sub_100278350(v30, &v28, &v29); return SetupTriggerPopup::createEasingControls(v1, (__int64)v30, 0, 0, 1.0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source