//
// SetupShaderEffectPopup::setupLensCircle from 0x55457c to 0x554a6e (1266 bytes)
//
// 1 xrefs:
// > SetupShaderEffectPopup::init @ 0x557208
//
// 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::setupLensCircle(SetupShaderEffectPopup *a1)
{
cocos2d::CCDirector *v2; // r0
cocos2d::CCPoint v3; // r1
cocos2d::CCFloat *v4; // [sp+4h] [bp-60h]
_BYTE v5[4]; // [sp+38h] [bp-2Ch] BYREF
cocos2d::CCSize v6; // [sp+3Ch] [bp-28h] BYREF
cocos2d::CCPoint v7; // [sp+44h] [bp-20h] BYREF
cocos2d::CCPoint v8; // [sp+4Ch] [bp-18h] BYREF
cocos2d::CCPoint v9; // [sp+54h] [bp-10h] BYREF
sub_776584((int)&v9, "Setup Lens Circle");
SetupTriggerPopup::addTitle((int)a1);
sub_774008(&v9);
sub_776584((int)&v8, "Help");
sub_776584(
(int)&v9,
"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((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) + 100.0);
sub_776584((int)v5, "Size:");
cocos2d::CCPoint::CCPoint(&v8, -100.0, 0.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, "Fade:");
cocos2d::CCPoint::CCPoint(&v8, 100.0, 0.0);
cocos2d::CCPoint::operator+(&v9, &v7, &v8);
SetupTriggerPopup::createValueControl(
(unsigned int)a1,
181,
(int)v5,
&v9,
(cocos2d::CCZone *)0x3F19999A,
nullptr,
0.0);
sub_774008(v5);
sub_776584((int)v5, "FadeTime:");
cocos2d::CCPoint::CCPoint(&v8, -100.0, -45.0);
cocos2d::CCPoint::operator+(&v9, &v7, &v8);
SetupTriggerPopup::createValueControl((unsigned int)a1, 10, (int)v5, &v9, (cocos2d::CCZone *)0x3F19999A, nullptr, 0.0);
sub_774008(v5);
sub_776584((int)v5, "Strength:");
cocos2d::CCPoint::CCPoint(&v8, 100.0, -45.0);
cocos2d::CCPoint::operator+(&v9, &v7, &v8);
SetupTriggerPopup::createValueControl(
(unsigned int)a1,
176,
(int)v5,
&v9,
(cocos2d::CCZone *)0x3F19999A,
nullptr,
0.0);
sub_774008(v5);
sub_776584((int)v5, "Screen\nOffX:");
cocos2d::CCPoint::CCPoint(&v8, -100.0, -90.0);
cocos2d::CCPoint::operator+(&v9, &v7, &v8);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
290,
(int)v5,
&v9,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
(cocos2d::CCFloat *)0xBF800000,
1.0,
0,
101,
0,
2,
0);
sub_774008(v5);
sub_776584((int)v5, "Screen\nOffY:");
cocos2d::CCPoint::CCPoint(&v8, 100.0, -90.0);
cocos2d::CCPoint::operator+(&v9, &v7, &v8);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
291,
(int)v5,
&v9,
(cocos2d::CCZone *)0x3F19999A,
0,
Float,
6,
0,
(cocos2d::CCFloat *)0xBF800000,
1.0,
0,
101,
0,
2,
0);
sub_774008(v5);
sub_776584((int)v5, "CenterID:");
cocos2d::CCPoint::CCPoint(&v8, -100.0, -135.0);
cocos2d::CCPoint::operator+(&v9, &v7, &v8);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
51,
(int)v5,
&v9,
(cocos2d::CCZone *)0x3F19999A,
1,
Int,
6,
0,
nullptr,
0.0,
0,
0,
0,
2,
0);
sub_774008(v5);
sub_776584((int)v5, "P1");
cocos2d::CCPoint::CCPoint(&v8, -140.0, -170.0);
cocos2d::CCPoint::operator+(&v9, &v7, &v8);
SetupTriggerPopup::createToggleValueControl(a1, 138, (int)v5, &v9, 0, 1, 0, 1.0);
sub_774008(v5);
sub_776584((int)v5, "P2");
cocos2d::CCPoint::CCPoint(&v8, -70.0, -170.0);
cocos2d::CCPoint::operator+(&v9, &v7, &v8);
SetupTriggerPopup::createToggleValueControl(a1, 200, (int)v5, &v9, 0, 1, 0, 1.0);
sub_774008(v5);
sub_776584((int)v5, "Tint\nChannel:");
cocos2d::CCPoint::CCPoint(&v8, 100.0, -135.0);
cocos2d::CCPoint::operator+(&v9, &v7, &v8);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
71,
(int)v5,
&v9,
(cocos2d::CCZone *)0x3F19999A,
1,
Int,
6,
0,
nullptr,
0.0,
0,
0,
0,
2,
0);
sub_774008(v5);
sub_776584((int)&v8, "Relative");
cocos2d::CCPoint::CCPoint(
&v9,
(float)((float)((float)(a1->m_width * 0.5) + (float)(v6.width * 0.5)) - 72.0) - 90.0,
(float)((float)(v6.height * 0.5) - (float)(a1->m_height * 0.5)) + 20.0);
SetupTriggerPopup::createToggleValueControl(a1, 514, (int)&v8, &v9, 0, 0, 0, 1.0);
sub_774008(&v8);
cocos2d::CCPoint::CCPoint(&v8, 100.0, -165.0);
cocos2d::CCPoint::operator+(&v9, &v7, &v8);
v3.y = 0.6;
LODWORD(v3.x) = &v9;
SetupTriggerPopup::createEasingControls(a1, v3, 0.0, 0, (int)v4);
}