// // SetupAreaFadeTriggerPopup::init from 0x55a03c to 0x55a428 (1004 bytes) // // 1 xrefs: // > SetupAreaFadeTriggerPopup::create @ 0x55a49e // // 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 // bool SetupAreaFadeTriggerPopup::init(SetupAreaFadeTriggerPopup *a1, EnterEffectObject *a2, cocos2d::CCArray *a3) { _BOOL4 v4; // r11 cocos2d::CCDirector *v5; // r0 _BYTE v7[4]; // [sp+38h] [bp-2Ch] BYREF cocos2d::CCSize v8; // [sp+3Ch] [bp-28h] BYREF cocos2d::CCPoint v9; // [sp+44h] [bp-20h] BYREF cocos2d::CCPoint v10; // [sp+4Ch] [bp-18h] BYREF cocos2d::CCPoint v11; // [sp+54h] [bp-10h] BYREF v4 = SetupTriggerPopup::init(a1, a2, a3, 420.0, 280.0, 1); if ( v4 ) { a1->determineStartValues(a1); sub_776584((int)&v11, "Area Fade Trigger"); SetupTriggerPopup::addTitle((int)a1); sub_774008(&v11); sub_776584((int)&v11, "OK"); SetupTriggerPopup::addCloseButton((unsigned int)a1, (ButtonSprite **)&v11); sub_774008(&v11); sub_776584((int)&v10, "Help"); sub_776584( (int)&v11, "Fades objects using Target Group ID within an area around Center Group ID. The area can be specifi" "ed by the arrow buttons and Length (for size).\n" "You can specify how much the objects in the area fade depending on how close they are to the center.\n" "Check the other pages for more settings."); SetupTriggerPopup::addHelpButton((int)a1, (int)&v10, (int)&v11, 1065353216); sub_774008(&v11); sub_774008(&v10); SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(a1); v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v8, v5); cocos2d::CCPoint::CCPoint(&v9, v8.width * 0.5, (float)(v8.height * 0.5) + 95.0); sub_776584((int)v7, "Length"); cocos2d::CCPoint::CCPoint(&v10, -75.0, 0.0); cocos2d::CCPoint::operator+(&v11, &v9, &v10); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 222, (int)v7, &v11, (cocos2d::CCZone *)0x3F266666, 0, Int, 6, 0, nullptr, 100.0, 0, 0, 1, 2, 0); sub_774008(v7); sub_776584((int)v7, "+-"); cocos2d::CCPoint::CCPoint(&v10, 75.0, 0.0); cocos2d::CCPoint::operator+(&v11, &v9, &v10); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 223, (int)v7, &v11, (cocos2d::CCZone *)0x3F266666, 0, Int, 6, 0, nullptr, 100.0, 0, 0, 1, 2, 0); sub_774008(v7); sub_776584((int)v7, "Offset"); cocos2d::CCPoint::CCPoint(&v10, -75.0, -25.0); cocos2d::CCPoint::operator+(&v11, &v9, &v10); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 220, (int)v7, &v11, (cocos2d::CCZone *)0x3F266666, 0, Int, 6, 0, (cocos2d::CCFloat *)0xC2C80000, 100.0, 0, 0, 1, 2, 0); sub_774008(v7); sub_776584((int)v7, "+-"); cocos2d::CCPoint::CCPoint(&v10, 75.0, -25.0); cocos2d::CCPoint::operator+(&v11, &v9, &v10); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 221, (int)v7, &v11, (cocos2d::CCZone *)0x3F266666, 0, Int, 6, 0, (cocos2d::CCFloat *)0xC2C80000, 100.0, 0, 0, 1, 2, 0); sub_774008(v7); sub_776584((int)v7, "From Opacity"); cocos2d::CCPoint::CCPoint(&v10, -75.0, -50.0); cocos2d::CCPoint::operator+(&v11, &v9, &v10); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 286, (int)v7, &v11, (cocos2d::CCZone *)0x3F266666, 0, Float, 6, 0, nullptr, 1.0, 0, 0, 1, 2, 0); sub_774008(v7); sub_776584((int)v7, "To Opacity"); cocos2d::CCPoint::CCPoint(&v10, -75.0, -75.0); cocos2d::CCPoint::operator+(&v11, &v9, &v10); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 275, (int)v7, &v11, (cocos2d::CCZone *)0x3F266666, 0, Float, 6, 0, nullptr, 1.0, 0, 0, 1, 2, 0); sub_774008(v7); SetupAreaMoveTriggerPopup::addAreaDefaultControls(a1, 3009); a1->updateDefaultTriggerValues(a1); SetupTriggerPopup::createPageButtons(a1, (float)(a1->m_width * 0.5) + 15.0, 1); SetupTriggerPopup::goToPage(a1, 0, 0); a1->m_disableTextDelegate = 0; } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source