// // SetupShaderEffectPopup::setupRadialBlur from 0x554a7c to 0x554fe8 (1388 bytes) // // 1 xrefs: // > SetupShaderEffectPopup::init @ 0x557210 // // 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::setupRadialBlur(SetupShaderEffectPopup *a1) { cocos2d::CCDirector *v2; // r0 float v3; // s15 cocos2d::CCPoint v4; // r1 cocos2d::CCFloat *v5; // [sp+4h] [bp-68h] _BYTE v6[4]; // [sp+38h] [bp-34h] BYREF cocos2d::CCSize v7; // [sp+3Ch] [bp-30h] BYREF cocos2d::CCPoint v8; // [sp+44h] [bp-28h] BYREF cocos2d::CCPoint v9; // [sp+4Ch] [bp-20h] BYREF cocos2d::CCPoint v10; // [sp+54h] [bp-18h] BYREF cocos2d::CCPoint v11; // [sp+5Ch] [bp-10h] BYREF sub_776584((int)&v11, "Setup Radial Blur"); SetupTriggerPopup::addTitle((int)a1); sub_774008(&v11); sub_776584((int)&v10, "Help"); sub_776584( (int)&v11, "Applies radial blur.\n" "Size is how much blur to apply around the center.\n" "FadeTime is time until final state is reached.\n" "Intensity is opacity of the blur.\n" "RefChannel uses a color channel to reference the effect.\n" "Fade sets how much blur fades out at the edges.\n" "Screen OffX and OffY offsets the center of the effect.\n" "Target lets you set a specific target object as the center."); SetupTriggerPopup::addHelpButton((int)a1, (int)&v10, (int)&v11, 1065353216); sub_774008(&v11); sub_774008(&v10); 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)&v9, "Size:"); cocos2d::CCPoint::CCPoint(&v10, -130.0, 0.0); cocos2d::CCPoint::operator+(&v11, &v8, &v10); SetupTriggerPopup::createValueControl( (unsigned int)a1, 179, (int)&v9, &v11, (cocos2d::CCZone *)0x3F19999A, nullptr, 2.0); sub_774008(&v9); sub_776584((int)&v9, "FadeTime:"); cocos2d::CCPoint::CCPoint(&v10, 0.0, 0.0); cocos2d::CCPoint::operator+(&v11, &v8, &v10); SetupTriggerPopup::createValueControl( (unsigned int)a1, 10, (int)&v9, &v11, (cocos2d::CCZone *)0x3F19999A, nullptr, 0.0); sub_774008(&v9); sub_776584((int)&v9, "Intensity:"); cocos2d::CCPoint::CCPoint(&v10, -130.0, -50.0); cocos2d::CCPoint::operator+(&v11, &v8, &v10); SetupTriggerPopup::createValueControl( (unsigned int)a1, 176, (int)&v9, &v11, (cocos2d::CCZone *)0x3F19999A, nullptr, 5.0); sub_774008(&v9); sub_776584((int)&v9, "Ref\nChannel:"); cocos2d::CCPoint::CCPoint(&v10, 0.0, -55.0); cocos2d::CCPoint::operator+(&v11, &v8, &v10); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 71, (int)&v9, &v11, (cocos2d::CCZone *)0x3F19999A, (char)&dword_0 + 1, Int, 6, 0, nullptr, 0.0, 0, 0, 0, 2, 0); sub_774008(&v9); sub_776584((int)&v9, "Fade:"); cocos2d::CCPoint::CCPoint(&v10, -130.0, -100.0); cocos2d::CCPoint::operator+(&v11, &v8, &v10); SetupTriggerPopup::createValueControl( (unsigned int)a1, 181, (int)&v9, &v11, (cocos2d::CCZone *)0x3F19999A, COERCE_COCOS2D_CCFLOAT_(-1.0), 1.0); sub_774008(&v9); cocos2d::CCPoint::CCPoint( &v9, (float)((float)(v7.width * 0.5) - (float)(a1->m_width * 0.5)) + 20.0, (float)((float)((float)(v7.height * 0.5) - (float)(a1->m_height * 0.5)) + 20.0) + 30.0); sub_776584((int)&v10, "Target"); cocos2d::CCPoint::CCPoint(&v11, &v9); SetupTriggerPopup::createToggleValueControl(a1, 188, (int)&v10, &v11, 0, 0, 0, 1.0); sub_774008(&v10); sub_776584((int)v6, "EmptyOnly"); cocos2d::CCPoint::CCPoint(&v10, 90.0, 0.0); cocos2d::CCPoint::operator+(&v11, &v9, &v10); SetupTriggerPopup::createToggleValueControl(a1, 515, (int)v6, &v11, 0, 0, 0, 1.0); sub_774008(v6); sub_776584((int)v6, "Screen\nOffX:"); cocos2d::CCPoint::CCPoint(&v10, 130.0, 0.0); cocos2d::CCPoint::operator+(&v11, &v8, &v10); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 290, (int)v6, &v11, (cocos2d::CCZone *)0x3F19999A, 0, Float, 6, 0, COERCE_COCOS2D_CCFLOAT_(-1.0), 1.0, 0, 101, 0, 2, 0); sub_774008(v6); sub_776584((int)v6, "Screen\nOffY:"); cocos2d::CCPoint::CCPoint(&v10, 130.0, -50.0); cocos2d::CCPoint::operator+(&v11, &v8, &v10); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 291, (int)v6, &v11, (cocos2d::CCZone *)0x3F19999A, 0, Float, 6, 0, COERCE_COCOS2D_CCFLOAT_(-1.0), 1.0, 0, 101, 0, 2, 0); sub_774008(v6); sub_776584((int)v6, "CenterID:"); cocos2d::CCPoint::CCPoint(&v10, 130.0, 0.0); cocos2d::CCPoint::operator+(&v11, &v8, &v10); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 51, (int)v6, &v11, (cocos2d::CCZone *)0x3F19999A, 1, Int, 6, 1, nullptr, 1.0, 0, 100, 0, 2, 0); sub_774008(v6); sub_776584((int)v6, "P1"); cocos2d::CCPoint::CCPoint(&v10, 90.0, -40.0); cocos2d::CCPoint::operator+(&v11, &v8, &v10); SetupTriggerPopup::createToggleValueControl(a1, 138, (int)v6, &v11, 0, 0, 100, 1.0); sub_774008(v6); sub_776584((int)v6, "P2"); cocos2d::CCPoint::CCPoint(&v10, 160.0, -40.0); cocos2d::CCPoint::operator+(&v11, &v8, &v10); SetupTriggerPopup::createToggleValueControl(a1, 200, (int)v6, &v11, 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(&v10, 65.0, -100.0); cocos2d::CCPoint::operator+(&v11, &v8, &v10); v4.y = 0.8; LODWORD(v4.x) = &v11; SetupTriggerPopup::createEasingControls(a1, v4, 0.0, 0, (int)v5); }
GD Web Decomp Icon

GD Web Decomp

Raw Source