// // SetupShaderEffectPopup::setupChromatic from 0x689ce8 to 0x689ff8 (784 bytes) // // 1 xrefs: // > SetupShaderEffectPopup::init @ 0x68de4c // // 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:07 +0000 // int __fastcall SetupShaderEffectPopup::setupChromatic(cocos2d::CCDictionary **this) { cocos2d::CCDirector *v2; // r0 float v4; // [sp+14h] [bp-40h] BYREF float v5; // [sp+18h] [bp-3Ch] _BYTE v6[8]; // [sp+1Ch] [bp-38h] BYREF _BYTE v7[8]; // [sp+24h] [bp-30h] BYREF _BYTE v8[8]; // [sp+2Ch] [bp-28h] BYREF int v9[3]; // [sp+34h] [bp-20h] BYREF int v10; // [sp+40h] [bp-14h] BYREF int v11; // [sp+44h] [bp-10h] int v12; // [sp+48h] [bp-Ch] v10 = 0; v11 = 0; v12 = 0; std::string::__init(&v10, "Setup Chromatic", 0xFu); SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)&v10); std::string::~string((int)&v10); memset(v9, 0, sizeof(v9)); std::string::__init(v9, "Help", 4u); v10 = 0; v11 = 0; v12 = 0; std::string::__init( &v10, "Applies chromatic aberration.\n" "Use X and Y sets which axis is affected.\n" "TargetX and TargetY define how strong the effect is.\n" "FadeTime is time until final state is reached.", 0xCAu); SetupTriggerPopup::addHelpButton((int)this, (int)v9, (int)&v10, 1065353216); std::string::~string((int)&v10); v2 = (cocos2d::CCDirector *)std::string::~string((int)v9); cocos2d::CCDirector::sharedDirector(v2); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v4); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v6, v4 * 0.5, (float)(v5 * 0.5) + 85.0); v10 = 0; v11 = 0; v12 = 0; std::string::__init(&v10, "TargetX:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, -100.0, 0.0); cocos2d::CCPoint::operator+(v8, v6, v7); SetupTriggerPopup::createValueControl(this, 180, (int)&v10, (const cocos2d::CCPoint *)v8, 1060320051, 0, 1084227584); std::string::~string((int)&v10); v10 = 0; v11 = 0; v12 = 0; std::string::__init(&v10, "TargetY:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 100.0, 0.0); cocos2d::CCPoint::operator+(v8, v6, v7); SetupTriggerPopup::createValueControl(this, 189, (int)&v10, (const cocos2d::CCPoint *)v8, 1060320051, 0, 1084227584); std::string::~string((int)&v10); v10 = 0; v11 = 0; v12 = 0; std::string::__init(&v10, "FadeTime:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, -100.0, -50.0); cocos2d::CCPoint::operator+(v8, v6, v7); SetupTriggerPopup::createValueControl(this, 10, (int)&v10, (const cocos2d::CCPoint *)v8, 1060320051, 0, 0); std::string::~string((int)&v10); v10 = 0; v11 = 0; v12 = 0; std::string::__init(&v10, "Use X", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 45.0, -55.0); cocos2d::CCPoint::operator+(v8, v6, v7); SetupTriggerPopup::createToggleValueControl((int)this, 188, (int)&v10, (const cocos2d::CCPoint *)v8, 0, 0, 0, 1.0); std::string::~string((int)&v10); v10 = 0; v11 = 0; v12 = 0; std::string::__init(&v10, "Use Y", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 130.0, -55.0); cocos2d::CCPoint::operator+(v8, v6, v7); SetupTriggerPopup::createToggleValueControl((int)this, 190, (int)&v10, (const cocos2d::CCPoint *)v8, 0, 0, 0, 1.0); std::string::~string((int)&v10); v10 = 0; v11 = 0; v12 = 0; std::string::__init(&v10, "Relative", 8u); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v8, (float)((float)((float)(*((float *)this + 139) * 0.5) + (float)(v4 * 0.5)) - 72.0) - 90.0, (float)((float)(v5 * 0.5) - (float)(*((float *)this + 140) * 0.5)) + 20.0); SetupTriggerPopup::createToggleValueControl((int)this, 514, (int)&v10, (const cocos2d::CCPoint *)v8, 0, 0, 0, 1.0); std::string::~string((int)&v10); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 0.0, -100.0); cocos2d::CCPoint::operator+(v8, v6, v7); return SetupTriggerPopup::createEasingControls((int)this, (int)v8, 1.0, 0, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source