// // SetupMoveCommandPopup::init from 0x4b8d94 to 0x4b97f0 (2652 bytes) // // 1 xrefs: // > SetupMoveCommandPopup::create @ 0x4b99ae // // 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 SetupMoveCommandPopup::init(SetupMoveCommandPopup *a1, EffectGameObject *a2, cocos2d::CCArray *a3) { cocos2d::CCDirector *v4; // r0 int v5; // s15 cocos2d::CCPoint v6; // r1 int v8; // [sp+4h] [bp-70h] int v9; // [sp+8h] [bp-6Ch] int v10; // [sp+8h] [bp-6Ch] cocos2d::CCFloat *v11; // [sp+14h] [bp-60h] cocos2d::CCFloat *v12; // [sp+14h] [bp-60h] cocos2d::CCArray *ValueControlAdvanced; // [sp+34h] [bp-40h] cocos2d::CCArray *v14; // [sp+34h] [bp-40h] cocos2d::CCArray *v15; // [sp+34h] [bp-40h] cocos2d::CCArray *v16; // [sp+34h] [bp-40h] _BOOL4 v17; // [sp+38h] [bp-3Ch] _BYTE v18[4]; // [sp+48h] [bp-2Ch] BYREF cocos2d::CCSize v19; // [sp+4Ch] [bp-28h] BYREF cocos2d::CCPoint v20; // [sp+54h] [bp-20h] BYREF cocos2d::CCPoint v21; // [sp+5Ch] [bp-18h] BYREF cocos2d::CCPoint v22; // [sp+64h] [bp-10h] BYREF cocos2d::CCPoint v23; // 0:r3.4,4:^0.4 cocos2d::CCPoint v24; // 0:r3.4,4:^0.4 v17 = SetupTriggerPopup::init(a1, a2, a3, 440.0, 310.0, 1); if ( v17 ) { SetupTriggerPopup::preSetup(a1); v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v19, v4); cocos2d::CCPoint::CCPoint(&v20, v19.width * 0.5, v19.height * 0.5); sub_776584((int)&v22, "Setup Move Command"); SetupTriggerPopup::addTitle(a1, (std::string)&v22); sub_774008(&v22); sub_776584((int)&v22, "OK"); SetupTriggerPopup::addCloseButton(a1, (std::string)&v22); sub_774008(&v22); SetupTriggerPopup::createMultiTriggerItemsCorner(a1); sub_776584((int)&v21, "Help"); sub_776584( (int)&v22, "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."); SetupTriggerPopup::addHelpButton(a1, (std::string)&v21, (std::string)&v22, 1.0); sub_774008(&v22); sub_774008(&v21); sub_776584((int)v18, "Move X:"); cocos2d::CCPoint::CCPoint(&v21, -100.0, 100.0); cocos2d::CCPoint::operator+(&v22, &v20, &v21); ValueControlAdvanced = (cocos2d::CCArray *)SetupTriggerPopup::createValueControlAdvanced( (int)a1, 28, (int)v18, (int)&v22, 0.8, 0, 2, 10, 0, (cocos2d::CCFloat *)0xC2C80000, 100.0, 0, 28, 1, 0, 0); sub_774008(v18); SetupTriggerPopup::addObjectsToGroup(a1, ValueControlAdvanced, 9001); sub_776584((int)v18, "Move Y:"); cocos2d::CCPoint::CCPoint(&v21, 105.0, 100.0); cocos2d::CCPoint::operator+(&v22, &v20, &v21); v14 = (cocos2d::CCArray *)SetupTriggerPopup::createValueControlAdvanced( (int)a1, 29, (int)v18, (int)&v22, 0.8, 0, 2, 10, 0, (cocos2d::CCFloat *)0xC2C80000, 100.0, 0, 29, 1, 0, 0); sub_774008(v18); SetupTriggerPopup::addObjectsToGroup(a1, v14, 9001); sub_776584((int)v18, "Mod X:"); cocos2d::CCPoint::CCPoint(&v21, -100.0, 100.0); cocos2d::CCPoint::operator+(&v22, &v20, &v21); v15 = (cocos2d::CCArray *)SetupTriggerPopup::createValueControlAdvanced( (int)a1, 143, (int)v18, (int)&v22, 0.8, 0, 1, 10, 0, (cocos2d::CCFloat *)0xBF800000, 1.0, 0, 143, 1, 3, 0); sub_774008(v18); SetupTriggerPopup::addObjectsToGroup(a1, v15, 9001); sub_776584((int)v18, "Mod Y:"); cocos2d::CCPoint::CCPoint(&v21, 105.0, 100.0); cocos2d::CCPoint::operator+(&v22, &v20, &v21); v16 = (cocos2d::CCArray *)SetupTriggerPopup::createValueControlAdvanced( (int)a1, 144, (int)v18, (int)&v22, 0.8, 0, 1, 10, 0, (cocos2d::CCFloat *)0xBF800000, 1.0, 0, 144, 1, 3, 0); sub_774008(v18); SetupTriggerPopup::addObjectsToGroup(a1, v16, 9001); sub_776584((int)v18, "Lock X:"); cocos2d::CCPoint::CCPoint(&v21, -120.0, 71.0); cocos2d::CCPoint::operator+(&v22, &v20, &v21); v23.y = 0.0; LODWORD(v23.x) = &v22; SetupTriggerPopup::addInfoLabel(a1, (std::string)v18, 0.55, v23, 9001, v9); sub_774008(v18); sub_776584((int)v18, "Player"); cocos2d::CCPoint::CCPoint(&v21, -180.0, 45.0); cocos2d::CCPoint::operator+(&v22, &v20, &v21); SetupTriggerPopup::createToggleValueControl((int)a1, 58, (int)v18, (int)&v22, 0, 0, 9001, 1.0); sub_774008(v18); sub_776584((int)v18, "Camera"); cocos2d::CCPoint::CCPoint(&v21, -90.0, 45.0); cocos2d::CCPoint::operator+(&v22, &v20, &v21); SetupTriggerPopup::createToggleValueControl((int)a1, 141, (int)v18, (int)&v22, 0, 0, 9001, 1.0); sub_774008(v18); sub_776584((int)v18, "Lock Y:"); cocos2d::CCPoint::CCPoint(&v21, 105.0, 71.0); cocos2d::CCPoint::operator+(&v22, &v20, &v21); v24.y = 0.0; LODWORD(v24.x) = &v22; SetupTriggerPopup::addInfoLabel(a1, (std::string)v18, 0.55, v24, 9001, v10); sub_774008(v18); sub_776584((int)v18, "Player"); cocos2d::CCPoint::CCPoint(&v21, 35.0, 45.0); cocos2d::CCPoint::operator+(&v22, &v20, &v21); SetupTriggerPopup::createToggleValueControl((int)a1, 59, (int)v18, (int)&v22, 0, 0, 9001, 1.0); sub_774008(v18); sub_776584((int)v18, "Camera"); cocos2d::CCPoint::CCPoint(&v21, 125.0, 45.0); cocos2d::CCPoint::operator+(&v22, &v20, &v21); SetupTriggerPopup::createToggleValueControl((int)a1, 142, (int)v18, (int)&v22, 0, 0, 9001, 1.0); sub_774008(v18); sub_776584((int)v18, "Center Group ID:"); cocos2d::CCPoint::CCPoint(&v21, -80.0, 90.0); cocos2d::CCPoint::operator+(&v22, &v20, &v21); SetupTriggerPopup::createValueControlAdvanced( (int)a1, 395, (int)v18, (int)&v22, 0.8, 1, 2, 10, 1, (cocos2d::CCFloat *)0xC2C80000, 100.0, 0, 9004, 0, 0, 0); sub_774008(v18); sub_776584((int)v18, "TargetPos Group ID:"); cocos2d::CCPoint::CCPoint(&v21, 80.0, 90.0); cocos2d::CCPoint::operator+(&v22, &v20, &v21); SetupTriggerPopup::createValueControlAdvanced( (int)a1, 71, (int)v18, (int)&v22, 0.8, 1, 2, 10, 1, (cocos2d::CCFloat *)0xC2C80000, 100.0, 0, 9004, 0, 0, 0); sub_774008(v18); sub_776584((int)v18, "P1"); cocos2d::CCPoint::CCPoint(&v21, 168.0, 105.0); cocos2d::CCPoint::operator+(&v22, &v20, &v21); SetupTriggerPopup::createToggleValueControl((int)a1, 138, (int)v18, (int)&v22, 0, 0, 9004, 1.0); sub_774008(v18); sub_776584((int)v18, "P2"); cocos2d::CCPoint::CCPoint(&v21, 168.0, 75.0); cocos2d::CCPoint::operator+(&v22, &v20, &v21); SetupTriggerPopup::createToggleValueControl((int)a1, 200, (int)v18, (int)&v22, 0, 0, 9004, 1.0); sub_774008(v18); sub_776584((int)v18, "X Only"); cocos2d::CCPoint::CCPoint(&v21, -70.0, 50.0); cocos2d::CCPoint::operator+(&v22, &v20, &v21); SetupTriggerPopup::createCustomToggleValueControl( a1, 1, 0, 1, (std::string)v18, (cocos2d::CCPoint)(unsigned int)&v22, 0, 9002, (int)v11); sub_774008(v18); sub_776584((int)v18, "Y Only"); cocos2d::CCPoint::CCPoint(&v21, 30.0, 50.0); cocos2d::CCPoint::operator+(&v22, &v20, &v21); SetupTriggerPopup::createCustomToggleValueControl( a1, 2, 0, 1, (std::string)v18, (cocos2d::CCPoint)(unsigned int)&v22, 0, 9002, (int)v12); sub_774008(v18); v5 = (int)a1->getValue(a1, 101); SetupTriggerPopup::updateCustomToggleTrigger(a1, 1, v5 == 1); SetupTriggerPopup::updateCustomToggleTrigger(a1, 2, v5 == 2); sub_776584((int)v18, "Distance:"); cocos2d::CCPoint::CCPoint(&v21, 0.0, 50.0); cocos2d::CCPoint::operator+(&v22, &v20, &v21); SetupTriggerPopup::createValueControlAdvanced( (int)a1, 396, (int)v18, (int)&v22, 0.8, 0, 2, 10, 0, (cocos2d::CCFloat *)0xC2C80000, 100.0, 0, 9003, 1, 0, 0); sub_774008(v18); sub_776584((int)v18, "Target\nMode"); cocos2d::CCPoint::CCPoint(&v21, -180.0, 5.0); cocos2d::CCPoint::operator+(&v22, &v20, &v21); SetupTriggerPopup::createToggleValueControl((int)a1, 100, (int)v18, (int)&v22, 0, 0, 0, 1.0); sub_774008(v18); sub_776584((int)v18, "Direction\nMode"); cocos2d::CCPoint::CCPoint(&v21, -90.0, 5.0); cocos2d::CCPoint::operator+(&v22, &v20, &v21); SetupTriggerPopup::createToggleValueControl((int)a1, 394, (int)v18, (int)&v22, 0, 0, 0, 1.0); sub_774008(v18); sub_776584((int)v18, "Small\nStep"); cocos2d::CCPoint::CCPoint(&v21, 35.0, 5.0); cocos2d::CCPoint::operator+(&v22, &v20, &v21); SetupTriggerPopup::createToggleValueControl((int)a1, 393, (int)v18, (int)&v22, 0, 0, 0, 1.0); sub_774008(v18); sub_776584((int)v18, "Dynamic\nMode"); cocos2d::CCPoint::CCPoint(&v21, 125.0, 5.0); cocos2d::CCPoint::operator+(&v22, &v20, &v21); SetupTriggerPopup::createToggleValueControl((int)a1, 397, (int)v18, (int)&v22, 0, 0, 0, 1.0); sub_774008(v18); sub_776584((int)v18, "Move Time:"); cocos2d::CCPoint::CCPoint(&v21, -100.0, -35.0); cocos2d::CCPoint::operator+(&v22, &v20, &v21); SetupTriggerPopup::createValueControlAdvanced( (int)a1, 10, (int)v18, (int)&v22, 0.8, 0, 1, 10, 0, nullptr, 10.0, 0, 0, 0, 2, 0); sub_774008(v18); cocos2d::CCPoint::CCPoint(&v21, 105.0, -30.0); cocos2d::CCPoint::operator+(&v22, &v20, &v21); LODWORD(v6.x) = &v22; v6.y = 0.8; SetupTriggerPopup::createEasingControls(a1, v6, 0.0, 0, v8); sub_776584((int)v18, "Target Group ID:"); cocos2d::CCPoint::CCPoint(&v21, 125.0, -120.0); cocos2d::CCPoint::operator+(&v22, &v20, &v21); SetupTriggerPopup::createValueControlAdvanced( (int)a1, 51, (int)v18, (int)&v22, 0.8, 1, 2, 10, 1, nullptr, 10.0, 0, 0, 0, 0, 0); sub_774008(v18); sub_776584((int)&v21, "Silent"); cocos2d::CCPoint::CCPoint( &v22, (float)((float)((float)(v19.width * 0.5) - (float)(a1->m_width * 0.5)) + 20.0) + 90.0, (float)((float)((float)(v19.height * 0.5) - (float)(a1->m_height * 0.5)) + 20.0) + 30.0); SetupTriggerPopup::createToggleValueControl((int)a1, 544, (int)&v21, (int)&v22, 0, 0, 0, 1.0); sub_774008(&v21); a1->m_smallStep = COERCE_FLOAT(((int (__fastcall *)(SetupMoveCommandPopup *, int))a1->getValue)(a1, 393)) != 0.0; SetupMoveCommandPopup::updateControlVisibility(a1); SetupTriggerPopup::postSetup(a1); } return v17; }
GD Web Decomp Icon

GD Web Decomp

Raw Source