// // SetupAreaMoveTriggerPopup::init from 0x558d6c to 0x559534 (1992 bytes) // // 1 xrefs: // > SetupAreaMoveTriggerPopup::create @ 0x55954e // // 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 SetupAreaMoveTriggerPopup::init(SetupAreaMoveTriggerPopup *a1, EnterEffectObject *a2, cocos2d::CCArray *a3) { _BOOL4 v4; // r10 cocos2d::CCDirector *v5; // r0 cocos2d::CCObject *v6; // r0 SetupAreaMoveTriggerPopup_vtbl *v7; // r3 void (__fastcall *valueDidChange)(SetupAreaMoveTriggerPopup *__hidden, int, float); // r3 float v9; // r2 _BYTE v11[4]; // [sp+38h] [bp-2Ch] BYREF cocos2d::CCSize v12; // [sp+3Ch] [bp-28h] BYREF cocos2d::CCPoint v13; // [sp+44h] [bp-20h] BYREF cocos2d::CCPoint v14; // [sp+4Ch] [bp-18h] BYREF cocos2d::CCPoint v15; // [sp+54h] [bp-10h] BYREF v4 = SetupTriggerPopup::init(a1, a2, a3, 420.0, 280.0, 1); if ( v4 ) { a1->determineStartValues(a1); sub_776584((int)&v15, "Area Move Trigger"); SetupTriggerPopup::addTitle((int)a1); sub_774008(&v15); sub_776584((int)&v15, "OK"); SetupTriggerPopup::addCloseButton((unsigned int)a1, (ButtonSprite **)&v15); sub_774008(&v15); sub_776584((int)&v14, "Help"); sub_776584( (int)&v15, "Moves 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 move depending on how close they are to the center.\n" "DEAP: Dont Edit Area Parent.\n" "Check the other pages for more settings."); SetupTriggerPopup::addHelpButton((int)a1, (int)&v14, (int)&v15, 1065353216); sub_774008(&v15); sub_774008(&v14); SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(a1); v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v12, v5); cocos2d::CCPoint::CCPoint(&v13, v12.width * 0.5, (float)(v12.height * 0.5) + 95.0); sub_776584((int)v11, "Length"); cocos2d::CCPoint::CCPoint(&v14, -75.0, 0.0); cocos2d::CCPoint::operator+(&v15, &v13, &v14); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 222, (int)v11, &v15, (cocos2d::CCZone *)0x3F266666, 0, Int, 6, 0, nullptr, 100.0, 0, 0, 1, 2, 0); sub_774008(v11); sub_776584((int)v11, "+-"); cocos2d::CCPoint::CCPoint(&v14, 75.0, 0.0); cocos2d::CCPoint::operator+(&v15, &v13, &v14); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 223, (int)v11, &v15, (cocos2d::CCZone *)0x3F266666, 0, Int, 6, 0, nullptr, 100.0, 0, 0, 1, 2, 0); sub_774008(v11); sub_776584((int)v11, "Offset"); cocos2d::CCPoint::CCPoint(&v14, -75.0, -25.0); cocos2d::CCPoint::operator+(&v15, &v13, &v14); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 220, (int)v11, &v15, (cocos2d::CCZone *)0x3F266666, 0, Int, 6, 0, (cocos2d::CCFloat *)0xC2C80000, 100.0, 0, 0, 1, 2, 0); sub_774008(v11); sub_776584((int)v11, "+-"); cocos2d::CCPoint::CCPoint(&v14, 75.0, -25.0); cocos2d::CCPoint::operator+(&v15, &v13, &v14); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 221, (int)v11, &v15, (cocos2d::CCZone *)0x3F266666, 0, Int, 6, 0, (cocos2d::CCFloat *)0xC2C80000, 100.0, 0, 0, 1, 2, 0); sub_774008(v11); sub_776584((int)v11, "MoveDist"); cocos2d::CCPoint::CCPoint(&v14, -75.0, -50.0); cocos2d::CCPoint::operator+(&v15, &v13, &v14); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 218, (int)v11, &v15, (cocos2d::CCZone *)0x3F266666, 0, Int, 6, 0, nullptr, 100.0, 0, 1, 1, 2, 0); sub_774008(v11); sub_776584((int)v11, "+-"); cocos2d::CCPoint::CCPoint(&v14, 75.0, -50.0); cocos2d::CCPoint::operator+(&v15, &v13, &v14); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 219, (int)v11, &v15, (cocos2d::CCZone *)0x3F266666, 0, Int, 6, 0, nullptr, 100.0, 0, 1, 1, 2, 0); sub_774008(v11); sub_776584((int)v11, "MoveAngle"); cocos2d::CCPoint::CCPoint(&v14, -75.0, -75.0); cocos2d::CCPoint::operator+(&v15, &v13, &v14); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 231, (int)v11, &v15, (cocos2d::CCZone *)0x3F266666, 0, Int, 6, 0, (cocos2d::CCFloat *)0xC3340000, 180.0, 0, 1, 1, 2, 0); sub_774008(v11); sub_776584((int)v11, "+-"); cocos2d::CCPoint::CCPoint(&v14, 75.0, -75.0); cocos2d::CCPoint::operator+(&v15, &v13, &v14); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 232, (int)v11, &v15, (cocos2d::CCZone *)0x3F266666, 0, Int, 6, 0, nullptr, 360.0, 0, 1, 1, 2, 0); sub_774008(v11); sub_776584((int)&v14, "XY\nMode"); cocos2d::CCPoint::CCPoint( &v15, (float)((float)(a1->m_width * 0.5) + (float)(v12.width * 0.5)) - 58.0, (float)((float)(a1->m_height * 0.5) + (float)(v12.height * 0.5)) - 20.0); SetupTriggerPopup::createToggleValueControl(a1, 241, (int)&v14, &v15, 0, 0, 0, 1.0); sub_774008(&v14); sub_776584((int)v11, "RFade"); cocos2d::CCPoint::CCPoint(&v14, 75.0, -100.0); cocos2d::CCPoint::operator+(&v15, &v13, &v14); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 288, (int)v11, &v15, (cocos2d::CCZone *)0x3F266666, 0, Float, 6, 0, nullptr, 60.0, 0, 1, 1, 2, 0); sub_774008(v11); sub_776584((int)v11, "Relative"); cocos2d::CCPoint::CCPoint(&v14, -91.0, -110.0); cocos2d::CCPoint::operator+(&v15, &v13, &v14); SetupTriggerPopup::createToggleValueControl(a1, 287, (int)v11, &v15, 0, 0, 1, 1.0); sub_774008(v11); sub_776584((int)v11, "MoveX"); cocos2d::CCPoint::CCPoint(&v14, -75.0, -50.0); cocos2d::CCPoint::operator+(&v15, &v13, &v14); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 237, (int)v11, &v15, (cocos2d::CCZone *)0x3F266666, 0, Int, 6, 0, nullptr, 100.0, 0, 2, 1, 2, 0); sub_774008(v11); sub_776584((int)v11, "+-"); cocos2d::CCPoint::CCPoint(&v14, 75.0, -50.0); cocos2d::CCPoint::operator+(&v15, &v13, &v14); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 238, (int)v11, &v15, (cocos2d::CCZone *)0x3F266666, 0, Int, 6, 0, nullptr, 100.0, 0, 2, 1, 2, 0); sub_774008(v11); sub_776584((int)v11, "MoveY"); cocos2d::CCPoint::CCPoint(&v14, -75.0, -75.0); cocos2d::CCPoint::operator+(&v15, &v13, &v14); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 239, (int)v11, &v15, (cocos2d::CCZone *)0x3F266666, 0, Int, 6, 0, nullptr, 200.0, 0, 2, 1, 2, 0); sub_774008(v11); sub_776584((int)v11, "+-"); cocos2d::CCPoint::CCPoint(&v14, 75.0, -75.0); cocos2d::CCPoint::operator+(&v15, &v13, &v14); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 240, (int)v11, &v15, (cocos2d::CCZone *)0x3F266666, 0, Int, 6, 0, nullptr, 200.0, 0, 2, 1, 2, 0); sub_774008(v11); SetupAreaMoveTriggerPopup::addAreaDefaultControls(a1, 3006); a1->updateDefaultTriggerValues(a1); SetupTriggerPopup::createPageButtons(a1, (float)(a1->m_width * 0.5) + 15.0, 1); SetupTriggerPopup::goToPage(a1, 0, 0); v6 = cocos2d::CCDictionary::objectForKey(a1->m_triggerValues, 241); v7 = a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; if ( v6 ) { valueDidChange = v7->valueDidChange; if ( *(float *)&v6[1].__vftable == 0.0 ) v9 = 0.0; else v9 = 1.0; ((void (__fastcall *)(SetupAreaMoveTriggerPopup *, int, _DWORD))valueDidChange)(a1, 241, LODWORD(v9)); } else { v7->toggleGroup(a1, 1, 0); a1->toggleGroup(a1, 2, 0); } a1->m_disableTextDelegate = 0; } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source