//
// SetupShaderEffectPopup::setupLensCircle from 0x1002ca650 to 0x1002caee8 (2200 bytes)
//
// 1 xrefs:
// > SetupShaderEffectPopup::init @ 0x1002c6230
//
// 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::setupLensCircle(SetupShaderEffectPopup *a1)
{
void *v1[3]; // [rsp+38h] [rbp-188h] BYREF
char v2; // [rsp+50h] [rbp-170h] BYREF
char v3[15]; // [rsp+51h] [rbp-16Fh] BYREF
void *v4; // [rsp+60h] [rbp-160h]
__int128 v5; // [rsp+68h] [rbp-158h] BYREF
void *v6; // [rsp+78h] [rbp-148h]
__int128 v7; // [rsp+80h] [rbp-140h] BYREF
void *v8; // [rsp+90h] [rbp-130h]
__int128 v9; // [rsp+98h] [rbp-128h] BYREF
void *v10; // [rsp+A8h] [rbp-118h]
__int128 v11; // [rsp+B0h] [rbp-110h] BYREF
void *v12; // [rsp+C0h] [rbp-100h]
__int128 v13; // [rsp+C8h] [rbp-F8h] BYREF
void *v14; // [rsp+D8h] [rbp-E8h]
char v15; // [rsp+E0h] [rbp-E0h] BYREF
_BYTE v16[23]; // [rsp+E1h] [rbp-DFh] BYREF
__int128 v17; // [rsp+F8h] [rbp-C8h] BYREF
void *v18; // [rsp+108h] [rbp-B8h]
__int128 v19; // [rsp+110h] [rbp-B0h] BYREF
void *v20; // [rsp+120h] [rbp-A0h]
__int128 v21; // [rsp+128h] [rbp-98h] BYREF
void *v22; // [rsp+138h] [rbp-88h]
char v23; // [rsp+140h] [rbp-80h] BYREF
_BYTE v24[23]; // [rsp+141h] [rbp-7Fh] BYREF
char v25; // [rsp+158h] [rbp-68h] BYREF
_BYTE v26[23]; // [rsp+159h] [rbp-67h] BYREF
char v27; // [rsp+170h] [rbp-50h] BYREF
_BYTE v28[23]; // [rsp+171h] [rbp-4Fh] BYREF
float v29; // [rsp+188h] [rbp-38h] BYREF
float v30; // [rsp+18Ch] [rbp-34h]
unsigned __int64 v31; // [rsp+190h] [rbp-30h] BYREF
unsigned __int64 v32; // [rsp+198h] [rbp-28h] BYREF
double v33[4]; // [rsp+1A0h] [rbp-20h] BYREF
strcpy((char *)v1, "\"Setup Lens Circle");
SetupTriggerPopup::addTitle((__int64)a1, (__int64)v1);
if ( ((__int64)v1[0] & 1) != 0 )
operator delete(v1[2]);
v2 = 8;
strcpy(v3, "Help");
v6 = operator new(0x1C0u);
*(_QWORD *)&v5 = 449;
*((_QWORD *)&v5 + 1) = 444;
strcpy(
(char *)v6,
"Creates a lens circle.\n"
"Size defines how big the circle is.\n"
"Strength is the opacity of the circle.\n"
"Fade sets how much the circle fades out at the edges.\n"
"Screen OffX and OffY offsets the center of the effect.\n"
"CenterID lets you set a specific target object as the center.\n"
"FadeTime is time until final state is reached.\n"
"Tint Channel lets you set a color channel to use for the circle.");
SetupTriggerPopup::addHelpButton((__int64)a1, (__int64)&v2, &v5, (__m128)0x3F800000u);
if ( (v5 & 1) != 0 )
operator delete(v6);
if ( (v2 & 1) != 0 )
operator delete(v4);
cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v29);
sub_10028CBE0((float *)&v31, v29 * 0.5, (float)(v30 * 0.5) + 100.0);
strcpy((char *)&v7, "\nSize:");
sub_10028CBE0((float *)&v32, -100.0, 0.0);
sub_10028CCE0(v33, &v31, &v32);
SetupTriggerPopup::createValueControl((int)a1, 179, &v7, COERCE_DOUBLE(1058642330), 0.0, 0.0);
if ( (v7 & 1) != 0 )
operator delete(v8);
strcpy((char *)&v9, "\nFade:");
sub_10028CBE0((float *)&v32, 100.0, 0.0);
sub_10028CCE0(v33, &v31, &v32);
SetupTriggerPopup::createValueControl((int)a1, 181, &v9, COERCE_DOUBLE(1058642330), 0.0, 0.0);
if ( (v9 & 1) != 0 )
operator delete(v10);
LOBYTE(v11) = 18;
strcpy((char *)&v11 + 1, "FadeTime:");
sub_10028CBE0((float *)&v32, -100.0, -45.0);
sub_10028CCE0(v33, &v31, &v32);
SetupTriggerPopup::createValueControl((int)a1, 10, &v11, COERCE_DOUBLE(1058642330), 0.0, 0.0);
if ( (v11 & 1) != 0 )
operator delete(v12);
LOBYTE(v13) = 18;
strcpy((char *)&v13 + 1, "Strength:");
sub_10028CBE0((float *)&v32, 100.0, -45.0);
sub_10028CCE0(v33, &v31, &v32);
SetupTriggerPopup::createValueControl((int)a1, 176, &v13, COERCE_DOUBLE(1058642330), 0.0, 0.0);
if ( (v13 & 1) != 0 )
operator delete(v14);
v23 = 24;
strcpy(v24, "Screen\nOffX:");
sub_10028CBE0((float *)&v32, -100.0, -90.0);
sub_10028CCE0(v33, &v31, &v32);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
290,
(__int64)&v23,
(float *)v33,
0,
Float,
0.60000002,
-1.0,
1.0,
6,
0,
0,
101,
0,
2,
0);
if ( (v23 & 1) != 0 )
operator delete(*(void **)&v24[15]);
v25 = 24;
strcpy(v26, "Screen\nOffY:");
sub_10028CBE0((float *)&v32, 100.0, -90.0);
sub_10028CCE0(v33, &v31, &v32);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
291,
(__int64)&v25,
(float *)v33,
0,
Float,
0.60000002,
-1.0,
1.0,
6,
0,
0,
101,
0,
2,
0);
if ( (v25 & 1) != 0 )
operator delete(*(void **)&v26[15]);
v15 = 18;
strcpy(v16, "CenterID:");
sub_10028CBE0((float *)&v32, -100.0, -135.0);
sub_10028CCE0(v33, &v31, &v32);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
51,
(__int64)&v15,
(float *)v33,
1,
Int,
0.60000002,
0.0,
0.0,
6,
0,
0,
0,
0,
2,
0);
if ( (v15 & 1) != 0 )
operator delete(*(void **)&v16[15]);
LOBYTE(v17) = 4;
strcpy((char *)&v17 + 1, "P1");
sub_10028CBE0((float *)&v32, -140.0, -170.0);
sub_10028CCE0(v33, &v31, &v32);
SetupTriggerPopup::createToggleValueControl((int)a1, 138, &v17, 1.0, (__int64)v33, 0, 1, 0);
if ( (v17 & 1) != 0 )
operator delete(v18);
LOBYTE(v19) = 4;
strcpy((char *)&v19 + 1, "P2");
sub_10028CBE0((float *)&v32, -70.0, -170.0);
sub_10028CCE0(v33, &v31, &v32);
SetupTriggerPopup::createToggleValueControl((int)a1, 200, &v19, 1.0, (__int64)v33, 0, 1, 0);
if ( (v19 & 1) != 0 )
operator delete(v20);
v27 = 26;
strcpy(v28, "Tint\nChannel:");
sub_10028CBE0((float *)&v32, 100.0, -135.0);
sub_10028CCE0(v33, &v31, &v32);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
71,
(__int64)&v27,
(float *)v33,
1,
Int,
0.60000002,
0.0,
0.0,
6,
0,
0,
0,
0,
2,
0);
if ( (v27 & 1) != 0 )
operator delete(*(void **)&v28[15]);
LOBYTE(v21) = 16;
strcpy((char *)&v21 + 1, "Relative");
sub_10028CBE0(
(float *)v33,
(float)((float)((float)(a1->m_width * 0.5) + (float)(v29 * 0.5)) + -72.0) + -90.0,
(float)((float)(v30 * 0.5) - (float)(0.5 * a1->m_height)) + 20.0);
SetupTriggerPopup::createToggleValueControl((int)a1, 514, &v21, 1.0, (__int64)v33, 0, 0, 0);
if ( (v21 & 1) != 0 )
operator delete(v22);
sub_10028CBE0((float *)&v32, 100.0, -165.0);
sub_10028CCE0(v33, &v31, &v32);
SetupTriggerPopup::createEasingControls(a1, (cocos2d::CCPoint)1058642330LL, -165.0, (int)v33, 0);
}