// // SetupShaderEffectPopup::setupBulge from 0x555648 to 0x555b2e (1254 bytes) // // 1 xrefs: // > SetupShaderEffectPopup::init @ 0x557220 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void SetupShaderEffectPopup::setupBulge(SetupShaderEffectPopup *a1) { cocos2d::CCDirector *v2; // r0 float v3; // s15 cocos2d::CCPoint v4; // r1 int v5; // [sp+4h] [bp-60h] _BYTE v6[4]; // [sp+38h] [bp-2Ch] BYREF cocos2d::CCSize v7; // [sp+3Ch] [bp-28h] BYREF cocos2d::CCPoint v8; // [sp+44h] [bp-20h] BYREF cocos2d::CCPoint v9; // [sp+4Ch] [bp-18h] BYREF cocos2d::CCPoint v10; // [sp+54h] [bp-10h] BYREF sub_776584((int)&v10, "Setup Bulge"); SetupTriggerPopup::addTitle((int)a1); sub_774008(&v10); sub_776584((int)&v9, "Help"); sub_776584( (int)&v10, "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."); SetupTriggerPopup::addHelpButton((int)a1, (int)&v9, (int)&v10, 1065353216); sub_774008(&v10); sub_774008(&v9); v2 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v7, v2); cocos2d::CCPoint::CCPoint(&v8, v7.width * 0.5, (float)(v7.height * 0.5) + 85.0); sub_776584((int)v6, "Bulge:"); cocos2d::CCPoint::CCPoint(&v9, -100.0, 0.0); cocos2d::CCPoint::operator+(&v10, &v8, &v9); SetupTriggerPopup::createValueControl( (unsigned int)a1, 176, (int)v6, &v10, (cocos2d::CCZone *)0x3F333333, nullptr, 1.0); sub_774008(v6); sub_776584((int)v6, "Radius:"); cocos2d::CCPoint::CCPoint(&v9, -100.0, -50.0); cocos2d::CCPoint::operator+(&v10, &v8, &v9); SetupTriggerPopup::createValueControl( (unsigned int)a1, 180, (int)v6, &v10, (cocos2d::CCZone *)0x3F333333, nullptr, 1.0); sub_774008(v6); sub_776584((int)v6, "FadeTime:"); cocos2d::CCPoint::CCPoint(&v9, -100.0, -100.0); cocos2d::CCPoint::operator+(&v10, &v8, &v9); SetupTriggerPopup::createValueControl( (unsigned int)a1, 10, (int)v6, &v10, (cocos2d::CCZone *)0x3F333333, nullptr, 0.0); sub_774008(v6); sub_776584((int)&v9, "Relative"); cocos2d::CCPoint::CCPoint( &v10, (float)((float)((float)(a1->m_width * 0.5) + (float)(v7.width * 0.5)) - 72.0) - 90.0, (float)((float)(v7.height * 0.5) - (float)(a1->m_height * 0.5)) + 20.0); SetupTriggerPopup::createToggleValueControl(a1, 514, (int)&v9, &v10, 0, 0, 0, 1.0); sub_774008(&v9); sub_776584((int)&v9, "Target"); cocos2d::CCPoint::CCPoint(&v10, (float)(v7.width * 0.5) - 140.0, (float)(v7.height * 0.5) - 70.0); SetupTriggerPopup::createToggleValueControl(a1, 188, (int)&v9, &v10, 0, 0, 0, 1.0); sub_774008(&v9); sub_776584((int)v6, "Screen\nOffX:"); cocos2d::CCPoint::CCPoint(&v9, 100.0, 0.0); cocos2d::CCPoint::operator+(&v10, &v8, &v9); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 290, (int)v6, &v10, (cocos2d::CCZone *)0x3F333333, 0, Float, 6, 0, (cocos2d::CCFloat *)0xBF800000, 1.0, 0, 101, 0, 2, 0); sub_774008(v6); sub_776584((int)v6, "Screen\nOffY:"); cocos2d::CCPoint::CCPoint(&v9, 100.0, -50.0); cocos2d::CCPoint::operator+(&v10, &v8, &v9); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 291, (int)v6, &v10, (cocos2d::CCZone *)0x3F333333, 0, Float, 6, 0, (cocos2d::CCFloat *)0xBF800000, 1.0, 0, 101, 0, 2, 0); sub_774008(v6); sub_776584((int)v6, "CenterID:"); cocos2d::CCPoint::CCPoint(&v9, 100.0, 0.0); cocos2d::CCPoint::operator+(&v10, &v8, &v9); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 51, (int)v6, &v10, (cocos2d::CCZone *)0x3F333333, 1, Int, 6, 1, nullptr, 1.0, 0, 100, 0, 2, 0); sub_774008(v6); sub_776584((int)v6, "P1"); cocos2d::CCPoint::CCPoint(&v9, 60.0, -40.0); cocos2d::CCPoint::operator+(&v10, &v8, &v9); SetupTriggerPopup::createToggleValueControl(a1, 138, (int)v6, &v10, 0, 0, 100, 1.0); sub_774008(v6); sub_776584((int)v6, "P2"); cocos2d::CCPoint::CCPoint(&v9, 130.0, -40.0); cocos2d::CCPoint::operator+(&v10, &v8, &v9); SetupTriggerPopup::createToggleValueControl(a1, 200, (int)v6, &v10, 0, 0, 100, 1.0); sub_774008(v6); v3 = COERCE_FLOAT(((int (__fastcall *)(SetupShaderEffectPopup *, int))a1->getValue)(a1, 188)); a1->toggleGroup(a1, 100, v3 != 0.0); a1->toggleGroup(a1, 101, v3 == 0.0); cocos2d::CCPoint::CCPoint(&v9, 100.0, -100.0); cocos2d::CCPoint::operator+(&v10, &v8, &v9); v4.y = 0.8; LODWORD(v4.x) = &v10; SetupTriggerPopup::createEasingControls(a1, v4, 0.0, 0, v5); }
GD Web Decomp Icon

GD Web Decomp

Raw Source