//
// SetupShaderEffectPopup::setupBulge from 0x68bc08 to 0x68c176 (1390 bytes)
//
// 1 xrefs:
// > SetupShaderEffectPopup::init @ 0x68de7c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:56:08 +0000
//
int __fastcall SetupShaderEffectPopup::setupBulge(cocos2d::CCDictionary **this)
{
cocos2d::CCDirector *v2; // r0
float v3; // s15
float v5; // [sp+34h] [bp-40h] BYREF
float v6; // [sp+38h] [bp-3Ch]
_BYTE v7[8]; // [sp+3Ch] [bp-38h] BYREF
_BYTE v8[8]; // [sp+44h] [bp-30h] BYREF
_BYTE v9[8]; // [sp+4Ch] [bp-28h] BYREF
int v10[3]; // [sp+54h] [bp-20h] BYREF
int v11; // [sp+60h] [bp-14h] BYREF
int v12; // [sp+64h] [bp-10h]
int v13; // [sp+68h] [bp-Ch]
v11 = 0;
v12 = 0;
v13 = 0;
std::string::__init(&v11, "Setup Bulge", 0xBu);
SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)&v11);
std::string::~string((int)&v11);
memset(v10, 0, sizeof(v10));
std::string::__init(v10, "Help", 4u);
v11 = 0;
v12 = 0;
v13 = 0;
std::string::__init(
&v11,
"Bulges the screen.\n"
"Bulge defines how strong the effect is.\n"
"Radius is how large the effect is.\n"
"Screen OffX and OffY offsets the center of the effect.\n"
"FadeTime is time until final state is reached.\n"
"Target lets you set a specific target object as the center.",
0x12Fu);
SetupTriggerPopup::addHelpButton((int)this, (int)v10, (int)&v11, 1065353216);
std::string::~string((int)&v11);
v2 = (cocos2d::CCDirector *)std::string::~string((int)v10);
cocos2d::CCDirector::sharedDirector(v2);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v5);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, v5 * 0.5, (float)(v6 * 0.5) + 85.0);
v11 = 0;
v12 = 0;
v13 = 0;
std::string::__init(&v11, "Bulge:", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, -100.0, 0.0);
cocos2d::CCPoint::operator+(v9, v7, v8);
SetupTriggerPopup::createValueControl(this, 176, (int)&v11, (const cocos2d::CCPoint *)v9, 1060320051, 0, 1065353216);
std::string::~string((int)&v11);
v11 = 0;
v12 = 0;
v13 = 0;
std::string::__init(&v11, "Radius:", 7u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, -100.0, -50.0);
cocos2d::CCPoint::operator+(v9, v7, v8);
SetupTriggerPopup::createValueControl(this, 180, (int)&v11, (const cocos2d::CCPoint *)v9, 1060320051, 0, 1065353216);
std::string::~string((int)&v11);
v11 = 0;
v12 = 0;
v13 = 0;
std::string::__init(&v11, "FadeTime:", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, -100.0, -100.0);
cocos2d::CCPoint::operator+(v9, v7, v8);
SetupTriggerPopup::createValueControl(this, 10, (int)&v11, (const cocos2d::CCPoint *)v9, 1060320051, 0, 0);
std::string::~string((int)&v11);
v11 = 0;
v12 = 0;
v13 = 0;
std::string::__init(&v11, "Relative", 8u);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v9,
(float)((float)((float)(*((float *)this + 139) * 0.5) + (float)(v5 * 0.5)) - 72.0) - 90.0,
(float)((float)(v6 * 0.5) - (float)(*((float *)this + 140) * 0.5)) + 20.0);
SetupTriggerPopup::createToggleValueControl((int)this, 514, (int)&v11, (const cocos2d::CCPoint *)v9, 0, 0, 0, 1.0);
std::string::~string((int)&v11);
v11 = 0;
v12 = 0;
v13 = 0;
std::string::__init(&v11, "Target", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, (float)(v5 * 0.5) - 140.0, (float)(v6 * 0.5) - 70.0);
SetupTriggerPopup::createToggleValueControl((int)this, 188, (int)&v11, (const cocos2d::CCPoint *)v9, 0, 0, 0, 1.0);
std::string::~string((int)&v11);
v11 = 0;
v12 = 0;
v13 = 0;
std::string::__init(&v11, "Screen\nOffX:", 0xCu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, 100.0, 0.0);
cocos2d::CCPoint::operator+(v9, v7, v8);
SetupTriggerPopup::createValueControlAdvanced(
this,
290,
(unsigned __int8 *)&v11,
(int)v9,
1060320051,
0,
1,
6,
0,
COERCE_INT(-1.0),
1065353216,
0,
101,
0,
2,
0);
std::string::~string((int)&v11);
v11 = 0;
v12 = 0;
v13 = 0;
std::string::__init(&v11, "Screen\nOffY:", 0xCu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, 100.0, -50.0);
cocos2d::CCPoint::operator+(v9, v7, v8);
SetupTriggerPopup::createValueControlAdvanced(
this,
291,
(unsigned __int8 *)&v11,
(int)v9,
1060320051,
0,
1,
6,
0,
COERCE_INT(-1.0),
1065353216,
0,
101,
0,
2,
0);
std::string::~string((int)&v11);
v11 = 0;
v12 = 0;
v13 = 0;
std::string::__init(&v11, "CenterID:", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, 100.0, 0.0);
cocos2d::CCPoint::operator+(v9, v7, v8);
IDNameInput::create((int)this, (int)(this + 110), 1, 51, (int)&v11, (int)v9, 0.7, 6, 100, 0, 0);
std::string::~string((int)&v11);
v11 = 0;
v12 = 0;
v13 = 0;
std::string::__init(&v11, "P1", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, 60.0, -40.0);
cocos2d::CCPoint::operator+(v9, v7, v8);
SetupTriggerPopup::createToggleValueControl((int)this, 138, (int)&v11, (const cocos2d::CCPoint *)v9, 0, 0, 100, 1.0);
std::string::~string((int)&v11);
v11 = 0;
v12 = 0;
v13 = 0;
std::string::__init(&v11, "P2", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, 130.0, -40.0);
cocos2d::CCPoint::operator+(v9, v7, v8);
SetupTriggerPopup::createToggleValueControl((int)this, 200, (int)&v11, (const cocos2d::CCPoint *)v9, 0, 0, 100, 1.0);
std::string::~string((int)&v11);
v3 = COERCE_FLOAT((*((int (__fastcall **)(cocos2d::CCDictionary **, int))*this + 183))(this, 188));
(*((void (__fastcall **)(cocos2d::CCDictionary **, int, bool))*this + 169))(this, 100, v3 != 0.0);
(*((void (__fastcall **)(cocos2d::CCDictionary **, int, bool))*this + 169))(this, 101, v3 == 0.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, 100.0, -100.0);
cocos2d::CCPoint::operator+(v9, v7, v8);
return SetupTriggerPopup::createEasingControls((int)this, (int)v9, 0.8, 0, 0);
}