// // SetupShaderEffectPopup::setupBulge from 0xb37634 to 0xb37ddc (1960 bytes) // // 2 xrefs: // > SetupShaderEffectPopup::init @ 0xb3ac04 // > @ 0x92b78 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:01:46 +0000 // __int64 __fastcall SetupShaderEffectPopup::setupBulge(cocos2d::CCArray **this) { cocos2d::CCDirector *v2; // x0 cocos2d::CCDirector *v3; // x0 float v4; // s0 _BOOL4 v5; // w19 int v7; // [xsp+8h] [xbp-28h] __int64 v8; // [xsp+A8h] [xbp+78h] BYREF _BYTE v9[8]; // [xsp+B0h] [xbp+80h] BYREF _BYTE v10[8]; // [xsp+B8h] [xbp+88h] BYREF __int64 v11; // [xsp+C0h] [xbp+90h] BYREF cocos2d::CCDirector *v12[2]; // [xsp+C8h] [xbp+98h] BYREF void *v13; // [xsp+D8h] [xbp+A8h] __int64 v14; // [xsp+E0h] [xbp+B0h] BYREF __int64 v15; // [xsp+E8h] [xbp+B8h] void *v16; // [xsp+F0h] [xbp+C0h] v14 = 0; v15 = 0; v16 = nullptr; std::string::__init(&v14, "Setup Bulge", 0xBu); SetupTriggerPopup::addTitle((__int64)this, (__int64)&v14); if ( (v14 & 1) != 0 ) operator delete(v16); v12[0] = nullptr; v12[1] = nullptr; v13 = nullptr; std::string::__init((__int64 *)v12, "Help", 4u); v14 = 0; v15 = 0; v16 = nullptr; std::string::__init( &v14, "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((__int64)this, (char *)v12, (char *)&v14, 1.0); if ( (v14 & 1) != 0 ) operator delete(v16); v2 = (cocos2d::CCDirector *)LOBYTE(v12[0]); if ( ((__int64)v12[0] & 1) != 0 ) operator delete(v13); v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v2); cocos2d::CCDirector::getWinSize(&v8, v3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, *(float *)&v8 * 0.5, (float)(*((float *)&v8 + 1) * 0.5) + 85.0); v14 = 0; v15 = 0; v16 = nullptr; std::string::__init(&v14, "Bulge:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, -100.0, 0.0); cocos2d::CCPoint::operator+(&v11, v9); SetupTriggerPopup::createValueControl(this, 176, (char *)&v14, (cocos2d::CCPoint *)&v11, 0.7, 0.0, 1.0); if ( (v14 & 1) != 0 ) operator delete(v16); v14 = 0; v15 = 0; v16 = nullptr; std::string::__init(&v14, "Radius:", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, -100.0, -50.0); cocos2d::CCPoint::operator+(&v11, v9); SetupTriggerPopup::createValueControl(this, 180, (char *)&v14, (cocos2d::CCPoint *)&v11, 0.7, 0.0, 1.0); if ( (v14 & 1) != 0 ) operator delete(v16); v14 = 0; v15 = 0; v16 = nullptr; std::string::__init(&v14, "FadeTime:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, -100.0, -100.0); cocos2d::CCPoint::operator+(&v11, v9); SetupTriggerPopup::createValueControl(this, 10, (char *)&v14, (cocos2d::CCPoint *)&v11, 0.7, 0.0, 0.0); if ( (v14 & 1) != 0 ) operator delete(v16); v14 = 0; v15 = 0; v16 = nullptr; std::string::__init(&v14, "Relative", 8u); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v11, (float)((float)((float)(*((float *)this + 183) * 0.5) + (float)(*(float *)&v8 * 0.5)) - 72.0) - 90.0, 20.0 - (float)((float)(*((float *)this + 184) * 0.5) - (float)(*((float *)&v8 + 1) * 0.5))); SetupTriggerPopup::createToggleValueControl((__int64)this, 0x202u, &v14, (const cocos2d::CCPoint *)&v11, 0, 0, 0, 1.0); if ( (v14 & 1) != 0 ) operator delete(v16); v14 = 0; v15 = 0; v16 = nullptr; std::string::__init(&v14, "Target", 6u); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v11, (float)(*(float *)&v8 * 0.5) + -140.0, (float)(*((float *)&v8 + 1) * 0.5) + -70.0); SetupTriggerPopup::createToggleValueControl((__int64)this, 0xBCu, &v14, (const cocos2d::CCPoint *)&v11, 0, 0, 0, 1.0); if ( (v14 & 1) != 0 ) operator delete(v16); v14 = 0; v15 = 0; v16 = nullptr; std::string::__init(&v14, "Screen\nOffX:", 0xCu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 100.0, 0.0); cocos2d::CCPoint::operator+(&v11, v9); SetupTriggerPopup::createValueControlAdvanced( this, 290, (char *)&v14, (__int64)&v11, 0, 1, 6, 0, 0.7, -1.0, 1.0, 0, 101, 0, 2, 0); if ( (v14 & 1) != 0 ) operator delete(v16); v14 = 0; v15 = 0; v16 = nullptr; std::string::__init(&v14, "Screen\nOffY:", 0xCu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 100.0, -50.0); cocos2d::CCPoint::operator+(&v11, v9); SetupTriggerPopup::createValueControlAdvanced( this, 291, (char *)&v14, (__int64)&v11, 0, 1, 6, 0, 0.7, -1.0, 1.0, 0, 101, 0, 2, 0); if ( (v14 & 1) != 0 ) operator delete(v16); v14 = 0; v15 = 0; v16 = nullptr; std::string::__init(&v14, "CenterID:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 100.0, 0.0); cocos2d::CCPoint::operator+(&v11, v9); LOBYTE(v7) = 0; IDNameInput::create(this, this + 68, 1, 51, &v14, &v11, 6, 100, 0.7, 0, v7); if ( (v14 & 1) != 0 ) operator delete(v16); v14 = 0; v15 = 0; v16 = nullptr; std::string::__init(&v14, "P1", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 60.0, -40.0); cocos2d::CCPoint::operator+(&v11, v9); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x8Au, &v14, (const cocos2d::CCPoint *)&v11, 0, 0, 100, 1.0); if ( (v14 & 1) != 0 ) operator delete(v16); v14 = 0; v15 = 0; v16 = nullptr; std::string::__init(&v14, "P2", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 130.0, -40.0); cocos2d::CCPoint::operator+(&v11, v9); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0xC8u, &v14, (const cocos2d::CCPoint *)&v11, 0, 0, 100, 1.0); if ( (v14 & 1) != 0 ) operator delete(v16); v4 = (*((float (__fastcall **)(cocos2d::CCArray **, __int64))*this + 183))(this, 188); v5 = v4 != 0.0; (*((void (__fastcall **)(cocos2d::CCArray **, __int64, bool))*this + 169))(this, 100, v4 != 0.0); (*((void (__fastcall **)(cocos2d::CCArray **, __int64, bool))*this + 169))(this, 101, !v5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 100.0, -100.0); cocos2d::CCPoint::operator+(&v11, v9); SetupTriggerPopup::createEasingControls((__int64)this, (__int64)&v11, 0, 0, 0.8); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source