// // SetupMoveCommandPopup::init from 0x5e754c to 0x5e80e2 (2966 bytes) // // 1 xrefs: // > SetupMoveCommandPopup::create @ 0x5e82dc // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:54:21 +0000 // int __fastcall SetupMoveCommandPopup::init(SetupMoveCommandPopup *this, EffectGameObject *a2, cocos2d::CCArray *a3) { int v4; // r11 cocos2d::CCDirector *v5; // r0 cocos2d::CCArray *v6; // r8 cocos2d::CCArray *v7; // r10 cocos2d::CCArray *v8; // r8 int v9; // s15 cocos2d::CCArray *v11; // [sp+34h] [bp-48h] float v12; // [sp+3Ch] [bp-40h] BYREF float v13; // [sp+40h] [bp-3Ch] _BYTE v14[8]; // [sp+44h] [bp-38h] BYREF _BYTE v15[8]; // [sp+4Ch] [bp-30h] BYREF _BYTE v16[8]; // [sp+54h] [bp-28h] BYREF int v17[3]; // [sp+5Ch] [bp-20h] BYREF int v18; // [sp+68h] [bp-14h] BYREF int v19; // [sp+6Ch] [bp-10h] int v20; // [sp+70h] [bp-Ch] v4 = SetupTriggerPopup::init(this, a2, a3, 440.0, 310.0, 1, 0.0); if ( v4 ) { v5 = (cocos2d::CCDirector *)SetupTriggerPopup::preSetup(this); cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v12); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, v12 * 0.5, v13 * 0.5); v18 = 0; v19 = 0; v20 = 0; std::string::__init(&v18, "Setup Move Command", 0x12u); SetupTriggerPopup::addTitle(this, &v18); std::string::~string((int)&v18); v18 = 0; v19 = 0; v20 = 0; std::string::__init(&v18, "OK", 2u); SetupTriggerPopup::addCloseButton(this, &v18); std::string::~string((int)&v18); SetupTriggerPopup::createMultiTriggerItemsCorner(this); memset(v17, 0, sizeof(v17)); std::string::__init(v17, "Help", 4u); v18 = 0; v19 = 0; v20 = 0; std::string::__init( &v18, "Moves a group of objects to another position.\n" "Easing changes the method used.\n" "Target Mode moves the group to the position of another group.\n" "Direction Mode moves the group in the direction of another group. Use Dynamic Mode to update locat" "ions in real-time for the 2 previous options.\n" "Small Step changes steps to their actual number, so 1 grid space is 30 instead of 10.", 0x1A1u); SetupTriggerPopup::addHelpButton(this, v17, &v18, 1065353216); std::string::~string((int)&v18); std::string::~string((int)v17); v18 = 0; v19 = 0; v20 = 0; std::string::__init(&v18, "Move X:", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, -100.0, 100.0); cocos2d::CCPoint::operator+(v16, v14, v15); v11 = (cocos2d::CCArray *)SetupTriggerPopup::createValueControlAdvanced( this, 28, &v18, v16, 1061997773, 0, 2, 10, 0, -1027080192, 1120403456, 0, 28, 1, 0, 0); std::string::~string((int)&v18); SetupTriggerPopup::addObjectsToGroup(this, v11, 9001); v18 = 0; v19 = 0; v20 = 0; std::string::__init(&v18, "Move Y:", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 105.0, 100.0); cocos2d::CCPoint::operator+(v16, v14, v15); v6 = (cocos2d::CCArray *)SetupTriggerPopup::createValueControlAdvanced( this, 29, &v18, v16, 1061997773, 0, 2, 10, 0, -1027080192, 1120403456, 0, 29, 1, 0, 0); std::string::~string((int)&v18); SetupTriggerPopup::addObjectsToGroup(this, v6, 9001); v18 = 0; v19 = 0; v20 = 0; std::string::__init(&v18, "Mod X:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, -100.0, 100.0); cocos2d::CCPoint::operator+(v16, v14, v15); v7 = (cocos2d::CCArray *)SetupTriggerPopup::createValueControlAdvanced( this, 143, &v18, v16, 1061997773, 0, 1, 10, 0, -1082130432, 1065353216, 0, 143, 1, 3, 0); std::string::~string((int)&v18); SetupTriggerPopup::addObjectsToGroup(this, v7, 9001); v18 = 0; v19 = 0; v20 = 0; std::string::__init(&v18, "Mod Y:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 105.0, 100.0); cocos2d::CCPoint::operator+(v16, v14, v15); v8 = (cocos2d::CCArray *)((int (__fastcall *)(_DWORD, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD))SetupTriggerPopup::createValueControlAdvanced)( this, 144, &v18, v16, 1061997773, 0, 1, 10, 0, -1082130432, 1.0, 0, 144, 1, 3, 0); std::string::~string((int)&v18); SetupTriggerPopup::addObjectsToGroup(this, v8, 9001); v18 = 0; v19 = 0; v20 = 0; std::string::__init(&v18, "Lock X:", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, -120.0, 71.0); cocos2d::CCPoint::operator+(v16, v14, v15); SetupTriggerPopup::addInfoLabel(this, &v18, 1057803469, v16, 0, 9001); std::string::~string((int)&v18); v18 = 0; v19 = 0; v20 = 0; std::string::__init(&v18, "Player", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, -180.0, 45.0); cocos2d::CCPoint::operator+(v16, v14, v15); SetupTriggerPopup::createToggleValueControl((int)this, 58, (int)&v18, (int)v16, 0, 0, 9001, 1.0); std::string::~string((int)&v18); v18 = 0; v19 = 0; v20 = 0; std::string::__init(&v18, "Camera", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, -90.0, 45.0); cocos2d::CCPoint::operator+(v16, v14, v15); SetupTriggerPopup::createToggleValueControl((int)this, 141, (int)&v18, (int)v16, 0, 0, 9001, 1.0); std::string::~string((int)&v18); v18 = 0; v19 = 0; v20 = 0; std::string::__init(&v18, "Lock Y:", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 105.0, 71.0); cocos2d::CCPoint::operator+(v16, v14, v15); SetupTriggerPopup::addInfoLabel(this, &v18, 1057803469, v16, 0, 9001); std::string::~string((int)&v18); v18 = 0; v19 = 0; v20 = 0; std::string::__init(&v18, "Player", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 35.0, 45.0); cocos2d::CCPoint::operator+(v16, v14, v15); SetupTriggerPopup::createToggleValueControl((int)this, 59, (int)&v18, (int)v16, 0, 0, 9001, 1.0); std::string::~string((int)&v18); v18 = 0; v19 = 0; v20 = 0; std::string::__init(&v18, "Camera", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 125.0, 45.0); cocos2d::CCPoint::operator+(v16, v14, v15); SetupTriggerPopup::createToggleValueControl((int)this, 142, (int)&v18, (int)v16, 0, 0, 9001, 1.0); std::string::~string((int)&v18); v18 = 0; v19 = 0; v20 = 0; std::string::__init(&v18, "Center Group ID:", 0x10u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, -100.0, 90.0); cocos2d::CCPoint::operator+(v16, v14, v15); IDNameInput::create((int)this, (int)this + 440, 1, 395, (int)&v18, (int)v16, 0.8, 10, 9004, 0, 0); std::string::~string((int)&v18); v18 = 0; v19 = 0; v20 = 0; std::string::__init(&v18, "TargetPos Group ID:", 0x13u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 60.0, 90.0); cocos2d::CCPoint::operator+(v16, v14, v15); IDNameInput::create((int)this, (int)this + 440, 1, 71, (int)&v18, (int)v16, 0.8, 10, 9004, 0, 0); std::string::~string((int)&v18); v18 = 0; v19 = 0; v20 = 0; std::string::__init(&v18, "P1", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 168.0, 105.0); cocos2d::CCPoint::operator+(v16, v14, v15); SetupTriggerPopup::createToggleValueControl((int)this, 138, (int)&v18, (int)v16, 0, 0, 9004, 1.0); std::string::~string((int)&v18); v18 = 0; v19 = 0; v20 = 0; std::string::__init(&v18, "P2", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 168.0, 75.0); cocos2d::CCPoint::operator+(v16, v14, v15); SetupTriggerPopup::createToggleValueControl((int)this, 200, (int)&v18, (int)v16, 0, 0, 9004, 1.0); std::string::~string((int)&v18); v18 = 0; v19 = 0; v20 = 0; std::string::__init(&v18, "X Only", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, -70.0, 50.0); cocos2d::CCPoint::operator+(v16, v14, v15); SetupTriggerPopup::createCustomToggleValueControl(this); std::string::~string((int)&v18); v18 = 0; v19 = 0; v20 = 0; std::string::__init(&v18, "Y Only", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 30.0, 50.0); cocos2d::CCPoint::operator+(v16, v14, v15); SetupTriggerPopup::createCustomToggleValueControl(this); std::string::~string((int)&v18); v9 = (int)(*(float (__fastcall **)(SetupMoveCommandPopup *, int))(*(_DWORD *)this + 732))(this, 101); SetupTriggerPopup::updateCustomToggleTrigger(this, 1, v9 == 1); SetupTriggerPopup::updateCustomToggleTrigger(this, 2, v9 == 2); v18 = 0; v19 = 0; v20 = 0; std::string::__init(&v18, "Distance:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 0.0, 50.0); cocos2d::CCPoint::operator+(v16, v14, v15); SetupTriggerPopup::createValueControlAdvanced( this, 396, &v18, v16, 1061997773, 0, 2, 10, 0, -1027080192, 1120403456, 0, 9003, 1, 0, 0); std::string::~string((int)&v18); v18 = 0; v19 = 0; v20 = 0; std::string::__init(&v18, "Target\nMode", 0xBu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, -180.0, 5.0); cocos2d::CCPoint::operator+(v16, v14, v15); SetupTriggerPopup::createToggleValueControl((int)this, 100, (int)&v18, (int)v16, 0, 0, 0, 1.0); std::string::~string((int)&v18); v18 = 0; v19 = 0; v20 = 0; std::string::__init(&v18, "Direction\nMode", 0xEu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, -90.0, 5.0); cocos2d::CCPoint::operator+(v16, v14, v15); SetupTriggerPopup::createToggleValueControl((int)this, 394, (int)&v18, (int)v16, 0, 0, 0, 1.0); std::string::~string((int)&v18); v18 = 0; v19 = 0; v20 = 0; std::string::__init(&v18, "Small\nStep", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 35.0, 5.0); cocos2d::CCPoint::operator+(v16, v14, v15); SetupTriggerPopup::createToggleValueControl((int)this, 393, (int)&v18, (int)v16, 0, 0, 0, 1.0); std::string::~string((int)&v18); v18 = 0; v19 = 0; v20 = 0; std::string::__init(&v18, "Dynamic\nMode", 0xCu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 125.0, 5.0); cocos2d::CCPoint::operator+(v16, v14, v15); SetupTriggerPopup::createToggleValueControl((int)this, 397, (int)&v18, (int)v16, 0, 0, 0, 1.0); std::string::~string((int)&v18); v18 = 0; v19 = 0; v20 = 0; std::string::__init(&v18, "Move Time:", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, -100.0, -35.0); cocos2d::CCPoint::operator+(v16, v14, v15); SetupTriggerPopup::createValueControlAdvanced( this, 10, &v18, v16, 1061997773, 0, 1, 10, 0, 0, 1092616192, 0, 0, 0, 2, 0); std::string::~string((int)&v18); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 105.0, -30.0); cocos2d::CCPoint::operator+(v16, v14, v15); SetupTriggerPopup::createEasingControls(this, v16, 1061997773, 0, 0); v18 = 0; v19 = 0; v20 = 0; std::string::__init(&v18, "Target Group ID:", 0x10u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 125.0, -120.0); cocos2d::CCPoint::operator+(v16, v14, v15); IDNameInput::create((int)this, (int)this + 440, 1, 51, (int)&v18, (int)v16, 0.8, 10, 0, 0, 0); std::string::~string((int)&v18); v18 = 0; v19 = 0; v20 = 0; std::string::__init(&v18, "Silent", 6u); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v16, (float)((float)((float)(v12 * 0.5) - (float)(*((float *)this + 139) * 0.5)) + 20.0) + 90.0, (float)((float)((float)(v13 * 0.5) - (float)(*((float *)this + 140) * 0.5)) + 20.0) + 30.0); SetupTriggerPopup::createToggleValueControl((int)this, 544, (int)&v18, (int)v16, 0, 0, 0, 1.0); std::string::~string((int)&v18); *((_BYTE *)this + 712) = COERCE_FLOAT((*(int (__fastcall **)(SetupMoveCommandPopup *, int))(*(_DWORD *)this + 732))(this, 393)) != 0.0; SetupMoveCommandPopup::updateControlVisibility(this); SetupTriggerPopup::postSetup(this); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source