//
// SetupShaderEffectPopup::init from 0x68dda8 to 0x68df70 (456 bytes)
//
// 1 xrefs:
// > SetupShaderEffectPopup::create @ 0x68e196
//
// 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:09 +0000
//
GameManager *__fastcall SetupShaderEffectPopup::init(
SetupShaderEffectPopup *this,
EffectGameObject *a2,
cocos2d::CCArray *a3,
int a4)
{
GameManager *v6; // r8
cocos2d::CCDirector *MultiTriggerItemsDefaultHorizontal; // r0
float v9[2]; // [sp+10h] [bp-24h] BYREF
_BYTE v10[8]; // [sp+18h] [bp-1Ch] BYREF
int v11; // [sp+20h] [bp-14h] BYREF
int v12; // [sp+24h] [bp-10h]
int v13; // [sp+28h] [bp-Ch]
v6 = SetupTriggerPopup::init(this, a2, a3, 430.0, 285.0, (_BYTE *)&dword_0 + 1, 0.0);
if ( v6 )
{
SetupTriggerPopup::preSetup(this);
v11 = 0;
v12 = 0;
v13 = 0;
std::string::__init(&v11, "OK", 2u);
SetupTriggerPopup::addCloseButton((int)this, (int)&v11);
std::string::~string((int)&v11);
MultiTriggerItemsDefaultHorizontal = (cocos2d::CCDirector *)SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(this);
*((_BYTE *)this + 652) = 1;
*((_DWORD *)this + 182) = a4;
switch ( a4 )
{
case 2904:
SetupShaderEffectPopup::setupShaderTrigger(this);
goto LABEL_23;
case 2905:
MultiTriggerItemsDefaultHorizontal = (cocos2d::CCDirector *)SetupShaderEffectPopup::setupShockWave((cocos2d::CCDictionary **)this);
goto LABEL_22;
case 2907:
MultiTriggerItemsDefaultHorizontal = (cocos2d::CCDirector *)SetupShaderEffectPopup::setupShockLine((cocos2d::CCDictionary **)this);
goto LABEL_22;
case 2909:
MultiTriggerItemsDefaultHorizontal = (cocos2d::CCDirector *)SetupShaderEffectPopup::setupGlitch((cocos2d::CCDictionary **)this);
goto LABEL_22;
case 2910:
MultiTriggerItemsDefaultHorizontal = (cocos2d::CCDirector *)SetupShaderEffectPopup::setupChromatic((cocos2d::CCDictionary **)this);
goto LABEL_22;
case 2911:
MultiTriggerItemsDefaultHorizontal = (cocos2d::CCDirector *)SetupShaderEffectPopup::setupChromaticGlitch((cocos2d::CCDictionary **)this);
goto LABEL_22;
case 2912:
MultiTriggerItemsDefaultHorizontal = (cocos2d::CCDirector *)SetupShaderEffectPopup::setupPixelate((cocos2d::CCDictionary **)this);
goto LABEL_22;
case 2913:
MultiTriggerItemsDefaultHorizontal = (cocos2d::CCDirector *)SetupShaderEffectPopup::setupLensCircle((cocos2d::CCDictionary **)this);
goto LABEL_22;
case 2914:
MultiTriggerItemsDefaultHorizontal = (cocos2d::CCDirector *)SetupShaderEffectPopup::setupRadialBlur((cocos2d::CCDictionary **)this);
goto LABEL_22;
case 2915:
MultiTriggerItemsDefaultHorizontal = (cocos2d::CCDirector *)SetupShaderEffectPopup::setupMotionBlur((cocos2d::CCDictionary **)this);
goto LABEL_22;
case 2916:
MultiTriggerItemsDefaultHorizontal = (cocos2d::CCDirector *)SetupShaderEffectPopup::setupBulge((cocos2d::CCDictionary **)this);
goto LABEL_22;
case 2917:
MultiTriggerItemsDefaultHorizontal = (cocos2d::CCDirector *)SetupShaderEffectPopup::setupPinch((cocos2d::CCDictionary **)this);
goto LABEL_22;
case 2919:
MultiTriggerItemsDefaultHorizontal = (cocos2d::CCDirector *)SetupShaderEffectPopup::setupGrayscale((cocos2d::CCDictionary **)this);
goto LABEL_22;
case 2920:
MultiTriggerItemsDefaultHorizontal = (cocos2d::CCDirector *)SetupShaderEffectPopup::setupSepia((cocos2d::CCDictionary **)this);
goto LABEL_22;
case 2921:
MultiTriggerItemsDefaultHorizontal = (cocos2d::CCDirector *)SetupShaderEffectPopup::setupInvertColor((cocos2d::CCDictionary **)this);
goto LABEL_22;
case 2922:
MultiTriggerItemsDefaultHorizontal = (cocos2d::CCDirector *)SetupShaderEffectPopup::setupHueShift((cocos2d::CCDictionary **)this);
goto LABEL_22;
case 2923:
MultiTriggerItemsDefaultHorizontal = (cocos2d::CCDirector *)SetupShaderEffectPopup::setupColorChange((cocos2d::CCDictionary **)this);
goto LABEL_22;
case 2924:
MultiTriggerItemsDefaultHorizontal = (cocos2d::CCDirector *)SetupShaderEffectPopup::setupSplitScreen((cocos2d::CCDictionary **)this);
goto LABEL_22;
default:
if ( a4 != 2904 )
{
LABEL_22:
cocos2d::CCDirector::sharedDirector(MultiTriggerItemsDefaultHorizontal);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v9);
v11 = 0;
v12 = 0;
v13 = 0;
std::string::__init(&v11, " ", 1u);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v10,
(float)((float)(*((float *)this + 139) * 0.5) + (float)(v9[0] * 0.5)) - 15.0,
(float)((float)(*((float *)this + 140) * 0.5) + (float)(v9[1] * 0.5)) - 15.0);
SetupTriggerPopup::createToggleValueControl(
(int)this,
531,
(int)&v11,
(const cocos2d::CCPoint *)v10,
0,
0,
0,
0.6);
std::string::~string((int)&v11);
}
LABEL_23:
SetupTriggerPopup::postSetup(this);
break;
}
}
return v6;
}