// // SetupShaderEffectPopup::setupPinch from 0x68c188 to 0x68c892 (1802 bytes) // // 1 xrefs: // > SetupShaderEffectPopup::init @ 0x68de84 // // 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 // int __fastcall SetupShaderEffectPopup::setupPinch(cocos2d::CCDictionary **this) { cocos2d::CCDirector *v2; // r0 float v3; // s16 float v4; // s15 float v6; // [sp+34h] [bp-48h] BYREF float v7; // [sp+38h] [bp-44h] _BYTE v8[8]; // [sp+3Ch] [bp-40h] BYREF _BYTE v9[8]; // [sp+44h] [bp-38h] BYREF _BYTE v10[8]; // [sp+4Ch] [bp-30h] BYREF _BYTE v11[8]; // [sp+54h] [bp-28h] BYREF int v12[3]; // [sp+5Ch] [bp-20h] BYREF int v13; // [sp+68h] [bp-14h] BYREF int v14; // [sp+6Ch] [bp-10h] int v15; // [sp+70h] [bp-Ch] v13 = 0; v14 = 0; v15 = 0; std::string::__init(&v13, "Setup Pinch", 0xBu); SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)&v13); std::string::~string((int)&v13); memset(v12, 0, sizeof(v12)); std::string::__init(v12, "Help", 4u); v13 = 0; v14 = 0; v15 = 0; std::string::__init( &v13, "Pinches the screen.\n" "TargetX and TargetY is how much pinch to apply to each axis.\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" "Modifier multiplies all values.", 0x129u); SetupTriggerPopup::addHelpButton((int)this, (int)v12, (int)&v13, 1065353216); std::string::~string((int)&v13); v2 = (cocos2d::CCDirector *)std::string::~string((int)v12); cocos2d::CCDirector::sharedDirector(v2); v3 = 0.5; cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v6); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, v6 * 0.5, (float)(v7 * 0.5) + 90.0); v13 = 0; v14 = 0; v15 = 0; std::string::__init(&v13, "TargetX:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, -100.0, 0.0); cocos2d::CCPoint::operator+(v11, v8, v10); SetupTriggerPopup::createValueControl(this, 180, (int)&v13, (const cocos2d::CCPoint *)v11, 1058642330, 0, 0); std::string::~string((int)&v13); v13 = 0; v14 = 0; v15 = 0; std::string::__init(&v13, "TargetY:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, -100.0, -45.0); cocos2d::CCPoint::operator+(v11, v8, v10); SetupTriggerPopup::createValueControl(this, 189, (int)&v13, (const cocos2d::CCPoint *)v11, 1058642330, 0, 0); std::string::~string((int)&v13); v13 = 0; v14 = 0; v15 = 0; std::string::__init(&v13, "FadeTime:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, -100.0, -135.0); cocos2d::CCPoint::operator+(v11, v8, v10); SetupTriggerPopup::createValueControl(this, 10, (int)&v13, (const cocos2d::CCPoint *)v11, 1058642330, 0, 0); std::string::~string((int)&v13); v13 = 0; v14 = 0; v15 = 0; std::string::__init(&v13, "Use X", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 0.0, -10.0); cocos2d::CCPoint::operator+(v11, v8, v10); SetupTriggerPopup::createToggleValueControl((int)this, 190, (int)&v13, (const cocos2d::CCPoint *)v11, 1, 0, 0, 1.0); std::string::~string((int)&v13); v13 = 0; v14 = 0; v15 = 0; std::string::__init(&v13, "Use Y", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 0.0, -58.0); cocos2d::CCPoint::operator+(v11, v8, v10); SetupTriggerPopup::createToggleValueControl((int)this, 194, (int)&v13, (const cocos2d::CCPoint *)v11, 1, 0, 0, 1.0); std::string::~string((int)&v13); v13 = 0; v14 = 0; v15 = 0; std::string::__init(&v13, "Modifier:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 100.0, -90.0); cocos2d::CCPoint::operator+(v11, v8, v10); SetupTriggerPopup::createValueControlAdvanced( this, 179, (unsigned __int8 *)&v13, (int)v11, 1058642330, 0, 1, 6, 0, 0, 1065353216, 0, 0, 0, 3, 0); std::string::~string((int)&v13); v13 = 0; v14 = 0; v15 = 0; std::string::__init(&v13, "Radius:", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, -100.0, -90.0); cocos2d::CCPoint::operator+(v11, v8, v10); SetupTriggerPopup::createValueControlAdvanced( this, 512, (unsigned __int8 *)&v13, (int)v11, 1058642330, 0, 1, 6, 0, 0, 1065353216, 0, 0, 0, 3, 0); std::string::~string((int)&v13); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v9, (float)((float)(v6 * 0.5) - (float)(*((float *)this + 139) * 0.5)) + 20.0, (float)((float)((float)(v7 * v3) - (float)(*((float *)this + 140) * v3)) + 20.0) + 30.0); v13 = 0; v14 = 0; v15 = 0; std::string::__init(&v13, "Target", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, (const cocos2d::CCPoint *)v9); SetupTriggerPopup::createToggleValueControl((int)this, 188, (int)&v13, (const cocos2d::CCPoint *)v11, 0, 0, 0, 1.0); std::string::~string((int)&v13); v13 = 0; v14 = 0; v15 = 0; std::string::__init(&v13, "Relative", 8u); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v11, (float)((float)((float)(*((float *)this + 139) * v3) + (float)(v6 * v3)) - 72.0) - 90.0, (float)((float)(v7 * v3) - (float)(*((float *)this + 140) * v3)) + 20.0); SetupTriggerPopup::createToggleValueControl((int)this, 514, (int)&v13, (const cocos2d::CCPoint *)v11, 0, 0, 0, 1.0); std::string::~string((int)&v13); v13 = 0; v14 = 0; v15 = 0; std::string::__init(&v13, "Screen\nOffX:", 0xCu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 100.0, 0.0); cocos2d::CCPoint::operator+(v11, v8, v10); SetupTriggerPopup::createValueControlAdvanced( this, 290, (unsigned __int8 *)&v13, (int)v11, 1058642330, 0, 1, 6, 0, -1082130432, 1065353216, 0, 101, 0, 2, 0); std::string::~string((int)&v13); v13 = 0; v14 = 0; v15 = 0; std::string::__init(&v13, "Screen\nOffY:", 0xCu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 100.0, -45.0); cocos2d::CCPoint::operator+(v11, v8, v10); SetupTriggerPopup::createValueControlAdvanced( this, 291, (unsigned __int8 *)&v13, (int)v11, 1058642330, 0, 1, 6, 0, -1082130432, 1065353216, 0, 101, 0, 2, 0); std::string::~string((int)&v13); v13 = 0; v14 = 0; v15 = 0; std::string::__init(&v13, "CenterID:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 100.0, -10.0); cocos2d::CCPoint::operator+(v11, v8, v10); IDNameInput::create((int)this, (int)(this + 110), 1, 51, (int)&v13, (int)v11, 0.6, 6, 100, 0, 0); std::string::~string((int)&v13); v13 = 0; v14 = 0; v15 = 0; std::string::__init(&v13, "P1", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 60.0, -50.0); cocos2d::CCPoint::operator+(v11, v8, v10); SetupTriggerPopup::createToggleValueControl((int)this, 138, (int)&v13, (const cocos2d::CCPoint *)v11, 0, 0, 100, 1.0); std::string::~string((int)&v13); v13 = 0; v14 = 0; v15 = 0; std::string::__init(&v13, "P2", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 130.0, -50.0); cocos2d::CCPoint::operator+(v11, v8, v10); SetupTriggerPopup::createToggleValueControl((int)this, 200, (int)&v13, (const cocos2d::CCPoint *)v11, 0, 0, 100, 1.0); std::string::~string((int)&v13); v4 = COERCE_FLOAT((*((int (__fastcall **)(cocos2d::CCDictionary **, int))*this + 183))(this, 188)); (*((void (__fastcall **)(cocos2d::CCDictionary **, int, bool))*this + 169))(this, 100, v4 != 0.0); (*((void (__fastcall **)(cocos2d::CCDictionary **, int, bool))*this + 169))(this, 101, v4 == 0.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 100.0, -135.0); cocos2d::CCPoint::operator+(v11, v8, v10); return SetupTriggerPopup::createEasingControls((int)this, (int)v11, 0.8, 0, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source