// // SetupMoveCommandPopup::init from 0x140280940 to 0x140281d0b (5067 bytes) // // 2 xrefs: // > SetupMoveCommandPopup::create @ 0x1402808f5 // > @ 0x1406d1418 // // 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 // // Hidden C++ exception states: #wind=3 bool SetupMoveCommandPopup::init(SetupMoveCommandPopup *a1, EffectGameObject *a2, cocos2d::CCArray *a3) { bool result; // al __int64 v5; // rcx cocos2d::CCDirector *v6; // rax _QWORD *v7; // r8 _OWORD *v8; // rcx const char *v9; // rax __int64 v10; // rdx double v11; // xmm0_8 double v12; // xmm0_8 struct cocos2d::CCArray *v13; // rbx cocos2d::CCArray *GroupContainer; // rax struct cocos2d::CCArray *v15; // rbx cocos2d::CCArray *v16; // rax struct cocos2d::CCArray *v17; // rbx cocos2d::CCArray *v18; // rax double v19; // xmm0_8 struct cocos2d::CCArray *v20; // rbx cocos2d::CCArray *v21; // rax int v22; // r8d double ToggleValueControl; // xmm0_8 int v24; // r8d int v25; // r9d int v26; // r9d int v27; // ebx CCMenuItemToggler *v28; // rax CCMenuItemToggler *v29; // rax double ValueControlAdvanced; // xmm0_8 int v31; // r9d int v32; // eax int v33; // [rsp+28h] [rbp-E0h] int v34; // [rsp+28h] [rbp-E0h] float v35; // [rsp+88h] [rbp-80h] _QWORD v36[2]; // [rsp+90h] [rbp-78h] BYREF __int128 *v37; // [rsp+A0h] [rbp-68h] __int128 v38; // [rsp+A8h] [rbp-60h] BYREF __int64 v39; // [rsp+B8h] [rbp-50h] __int64 v40; // [rsp+C0h] [rbp-48h] __int128 v41; // [rsp+C8h] [rbp-40h] BYREF __int64 v42; // [rsp+D8h] [rbp-30h] __int64 v43; // [rsp+E0h] [rbp-28h] char v44; // [rsp+1A0h] [rbp+98h] BYREF result = SetupTriggerPopup::init(a1, a2, a3, 440.0, 310.0, 1); if ( result ) { a1->m_disableTextDelegate = 1; a1->determineStartValues(a1); v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize(v6); cocos2d::CCPoint::CCPoint(310.0, v35 * 0.5); v38 = 0; *(_QWORD *)&v38 = sub_14003AA10(0x20u); v39 = 18; v40 = 31; strcpy((char *)v38, "Setup Move Command"); SetupTriggerPopup::addTitle(a1, &v38); v38 = 0; v39 = 2; v40 = 15; strcpy((char *)&v38, "OK"); SetupTriggerPopup::addCloseButton(a1, &v38); SetupTriggerPopup::createMultiTriggerItemsCorner(a1); v36[0] = &v38; v38 = 0; v39 = 0; v40 = 15; v7 = sub_14003AA10(0x1B0u); *(_QWORD *)&v38 = v7; v39 = 417; v40 = 431; v8 = v7; v9 = "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 lo" "cations 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."; v10 = 3; do { *v8 = *(_OWORD *)v9; v8[1] = *((_OWORD *)v9 + 1); v8[2] = *((_OWORD *)v9 + 2); v8[3] = *((_OWORD *)v9 + 3); v8[4] = *((_OWORD *)v9 + 4); v8[5] = *((_OWORD *)v9 + 5); v8[6] = *((_OWORD *)v9 + 6); v8 += 8; *(v8 - 1) = *((_OWORD *)v9 + 7); v9 += 128; --v10; } while ( v10 ); *v8 = *(_OWORD *)v9; v8[1] = *((_OWORD *)v9 + 1); *((_BYTE *)v8 + 32) = v9[32]; *((_BYTE *)v7 + 417) = 0; v41 = 0; v42 = 4; v43 = 15; strcpy((char *)&v41, "Help"); v11 = SetupTriggerPopup::addHelpButton(a1, &v41, &v38); v36[1] = &v38; v39 = 7; v40 = 15; v38 = 0x3A582065766F4DuLL; cocos2d::CCPoint::CCPoint(*(float *)&v11, -100.0); v12 = cocos2d::CCPoint::operator+(&v44, v36); v13 = (struct cocos2d::CCArray *)((__int64 (__fastcall *)(_DWORD, int, unsigned int, unsigned int, int, char, int, int, char, int, int, _DWORD, int, int, _DWORD, char))SetupTriggerPopup::createValueControlAdvanced)( (_DWORD)a1, 28, (unsigned int)&v38, (unsigned int)v36, 1061997773, 0, 2, 10, 0, -1027080192, 1120403456, 0, 28, 1, 0, 0); GroupContainer = SetupTriggerPopup::getGroupContainer(a1, 9001); cocos2d::CCArray::addObjectsFromArray(GroupContainer, v13); v37 = &v38; v39 = 7; v40 = 15; v38 = 0x3A592065766F4DuLL; cocos2d::CCPoint::CCPoint(*(float *)&v12, 105.0); cocos2d::CCPoint::operator+(&v44, v36); v15 = (struct cocos2d::CCArray *)((__int64 (__fastcall *)(_DWORD, int, unsigned int, unsigned int, int, char, int, int, char, int, int, _DWORD, int, int, _DWORD, char))SetupTriggerPopup::createValueControlAdvanced)( (_DWORD)a1, 29, (unsigned int)&v38, (unsigned int)v36, 1061997773, 0, 2, 10, 0, -1027080192, 1120403456, 0, 29, 1, 0, 0); v16 = SetupTriggerPopup::getGroupContainer(a1, 9001); cocos2d::CCArray::addObjectsFromArray(v16, v15); v37 = &v38; v38 = 0; v39 = 6; v40 = 15; strcpy((char *)&v38, "Mod X:"); cocos2d::CCPoint::CCPoint(0.0, -100.0); cocos2d::CCPoint::operator+(&v44, v36); v17 = (struct cocos2d::CCArray *)((__int64 (__fastcall *)(_DWORD, int, unsigned int, unsigned int, int, char, int, int, char, int, int, _DWORD, int, int, int, char))SetupTriggerPopup::createValueControlAdvanced)( (_DWORD)a1, 143, (unsigned int)&v38, (unsigned int)v36, 1061997773, 0, 1, 10, 0, -1082130432, 1065353216, 0, 143, 1, 3, 0); v18 = SetupTriggerPopup::getGroupContainer(a1, 9001); cocos2d::CCArray::addObjectsFromArray(v18, v17); v37 = &v38; v38 = 0; v39 = 6; v40 = 15; strcpy((char *)&v38, "Mod Y:"); cocos2d::CCPoint::CCPoint(0.0, 105.0); v19 = cocos2d::CCPoint::operator+(&v44, v36); v20 = (struct cocos2d::CCArray *)((__int64 (__fastcall *)(_DWORD, int, unsigned int, unsigned int, int, char, int, int, char, int, int, _DWORD, int, int, int, char))SetupTriggerPopup::createValueControlAdvanced)( (_DWORD)a1, 144, (unsigned int)&v38, (unsigned int)v36, 1061997773, 0, 1, 10, 0, -1082130432, 1065353216, 0, 144, 1, 3, 0); v21 = SetupTriggerPopup::getGroupContainer(a1, 9001); cocos2d::CCArray::addObjectsFromArray(v21, v20); v37 = &v38; v39 = 7; v40 = 15; v38 = 0x3A58206B636F4CuLL; cocos2d::CCPoint::CCPoint(*(float *)&v19, -120.0); cocos2d::CCPoint::operator+(&v44, v36); SetupTriggerPopup::addInfoLabel((_DWORD)a1, (unsigned int)&v38, v22, (unsigned int)v36, v33, 9001); v37 = &v38; v38 = 0; v39 = 6; v40 = 15; strcpy((char *)&v38, "Player"); cocos2d::CCPoint::CCPoint(0.0, -180.0); cocos2d::CCPoint::operator+(&v44, v36); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 58, (unsigned int)&v38, (unsigned int)v36, 0, 0, 9001, 1065353216); v37 = &v38; v38 = 0; v39 = 6; v40 = 15; strcpy((char *)&v38, "Camera"); cocos2d::CCPoint::CCPoint(0.0, -90.0); cocos2d::CCPoint::operator+(&v44, v36); ToggleValueControl = SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 141, (unsigned int)&v38, (unsigned int)v36, 0, 0, 9001, 1065353216); v37 = &v38; v39 = 7; v40 = 15; v38 = 0x3A59206B636F4CuLL; cocos2d::CCPoint::CCPoint(*(float *)&ToggleValueControl, 105.0); cocos2d::CCPoint::operator+(&v44, v36); SetupTriggerPopup::addInfoLabel((_DWORD)a1, (unsigned int)&v38, v24, (unsigned int)v36, v34, 9001); v37 = &v38; v38 = 0; v39 = 6; v40 = 15; strcpy((char *)&v38, "Player"); cocos2d::CCPoint::CCPoint(0.0, 35.0); cocos2d::CCPoint::operator+(&v44, v36); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 59, (unsigned int)&v38, (unsigned int)v36, 0, 0, 9001, 1065353216); v37 = &v38; v38 = 0; v39 = 6; v40 = 15; strcpy((char *)&v38, "Camera"); cocos2d::CCPoint::CCPoint(0.0, 125.0); cocos2d::CCPoint::operator+(&v44, v36); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 142, (unsigned int)&v38, (unsigned int)v36, 0, 0, 9001, 1065353216); v37 = &v38; v38 = 0; v39 = 0; v40 = 15; *(_QWORD *)&v38 = sub_14003AA10(0x20u); v39 = 16; v40 = 31; strcpy((char *)v38, "Center Group ID:"); cocos2d::CCPoint::CCPoint(7.5550567e31, -80.0); cocos2d::CCPoint::operator+(&v44, v36); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 395, (unsigned int)&v38, (unsigned int)v36, 1061997773, 1, 2, 10, 1, -1027080192, 1120403456, 0, 9004, 0, 0, 0); v37 = &v38; v38 = 0; v39 = 0; v40 = 15; *(_QWORD *)&v38 = sub_14003AA10(0x20u); v39 = 19; v40 = 31; strcpy((char *)v38, "TargetPos Group ID:"); cocos2d::CCPoint::CCPoint(1.1446081e24, 80.0); cocos2d::CCPoint::operator+(&v44, v36); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 71, (unsigned int)&v38, (unsigned int)v36, 1061997773, 1, 2, 10, 1, -1027080192, 1120403456, 0, 9004, 0, 0, 0); v37 = &v41; v41 = 0; v42 = 2; v43 = 15; strcpy((char *)&v41, "P1"); cocos2d::CCPoint::CCPoint(0.0, 168.0); cocos2d::CCPoint::operator+(&v44, v36); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 138, (unsigned int)&v41, (unsigned int)v36, 0, 0, 9004, 1065353216); v37 = &v41; v41 = 0; v42 = 2; v43 = 15; strcpy((char *)&v41, "P2"); cocos2d::CCPoint::CCPoint(0.0, 168.0); cocos2d::CCPoint::operator+(&v44, v36); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 200, (unsigned int)&v41, (unsigned int)v36, 0, 0, 9004, 1065353216); v37 = &v38; v38 = 0; v39 = 6; v40 = 15; strcpy((char *)&v38, "X Only"); cocos2d::CCPoint::CCPoint(0.0, -70.0); cocos2d::CCPoint::operator+(&v44, v36); SetupTriggerPopup::createCustomToggleValueControl((_DWORD)a1, 1, 0, v25, (__int64)&v38, (__int64)v36, 0, 0, 9002); v37 = &v38; v38 = 0; v39 = 6; v40 = 15; strcpy((char *)&v38, "Y Only"); cocos2d::CCPoint::CCPoint(0.0, 30.0); cocos2d::CCPoint::operator+(&v44, v36); SetupTriggerPopup::createCustomToggleValueControl((_DWORD)a1, 2, 0, v26, (__int64)&v38, (__int64)v36, 0, 0, 9002); v27 = (int)a1->getValue(a1, 101); v28 = (CCMenuItemToggler *)cocos2d::CCDictionary::objectForKey(a1->m_customValueToggles, 1); if ( v28 ) CCMenuItemToggler::toggle(v28, v27 == 1); v29 = (CCMenuItemToggler *)cocos2d::CCDictionary::objectForKey(a1->m_customValueToggles, 2); if ( v29 ) CCMenuItemToggler::toggle(v29, v27 == 2); v37 = &v38; *((_QWORD *)&v38 + 1) = 58; v39 = 9; v40 = 15; *(_QWORD *)&v38 = 0x65636E6174736944LL; cocos2d::CCPoint::CCPoint(7.7140086e31, 0.0); cocos2d::CCPoint::operator+(&v44, v36); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 396, (unsigned int)&v38, (unsigned int)v36, 1061997773, 0, 2, 10, 0, -1027080192, 1120403456, 0, 9003, 1, 0, 0); v37 = &v38; v39 = 11; v40 = 15; *(_QWORD *)&v38 = 0x4D0A746567726154LL; *((_QWORD *)&v38 + 1) = 6644847; cocos2d::CCPoint::CCPoint(1.1446081e24, -180.0); cocos2d::CCPoint::operator+(&v44, v36); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 100, (unsigned int)&v38, (unsigned int)v36, 0, 0, 0, 1065353216); v37 = &v38; v39 = 14; v40 = 15; strcpy((char *)&v38, "Direction\nMode"); HIBYTE(v38) = 0; cocos2d::CCPoint::CCPoint(7.1547156e22, -90.0); cocos2d::CCPoint::operator+(&v44, v36); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 394, (unsigned int)&v38, (unsigned int)v36, 0, 0, 0, 1065353216); v37 = &v38; *((_QWORD *)&v38 + 1) = 28773; v39 = 10; v40 = 15; *(_QWORD *)&v38 = 0x74530A6C6C616D53LL; cocos2d::CCPoint::CCPoint(1.0900983e27, 35.0); cocos2d::CCPoint::operator+(&v44, v36); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 393, (unsigned int)&v38, (unsigned int)v36, 0, 0, 0, 1065353216); v37 = &v38; v39 = 12; v40 = 15; strcpy((char *)&v38, "Dynamic\nMode"); BYTE13(v38) = 0; HIWORD(v38) = 0; cocos2d::CCPoint::CCPoint(2.7494145e20, 125.0); cocos2d::CCPoint::operator+(&v44, v36); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 397, (unsigned int)&v38, (unsigned int)v36, 0, 0, 0, 1065353216); v37 = &v38; *((_QWORD *)&v38 + 1) = 14949; v39 = 10; v40 = 15; *(_QWORD *)&v38 = 0x6D69542065766F4DLL; cocos2d::CCPoint::CCPoint(7.2734706e22, -100.0); cocos2d::CCPoint::operator+(&v44, v36); ValueControlAdvanced = SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 10, (unsigned int)&v38, (unsigned int)v36, 1061997773, 0, 1, 10, 0, 0, 1092616192, 0, 0, 0, 2, 0); cocos2d::CCPoint::CCPoint(*(float *)&ValueControlAdvanced, 105.0); cocos2d::CCPoint::operator+(&v44, v36); SetupTriggerPopup::createEasingControls(a1, (cocos2d::CCPoint)v36, 0.80000001, v31, 0); v37 = &v38; v38 = 0; v39 = 0; v40 = 15; *(_QWORD *)&v38 = sub_14003AA10(0x20u); v39 = 16; v40 = 31; strcpy((char *)v38, "Target Group ID:"); cocos2d::CCPoint::CCPoint(1.1446081e24, 125.0); cocos2d::CCPoint::operator+(&v44, v36); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 51, (unsigned int)&v38, (unsigned int)v36, 1061997773, 1, 2, 10, 1, 0, 1092616192, 0, 0, 0, 0, 0); v37 = &v38; v38 = 0; v39 = 6; v40 = 15; strcpy((char *)&v38, "Silent"); cocos2d::CCPoint::CCPoint( a1->m_width * 0.5, (float)((float)((float)(v35 * 0.5) - (float)(a1->m_width * 0.5)) + 20.0) + 90.0); SetupTriggerPopup::createToggleValueControl((_DWORD)a1, 544, (unsigned int)&v38, v32, 0, 0, 0, 1065353216); a1->m_smallStep = a1->getValue(a1, 393) != 0.0; SetupMoveCommandPopup::updateControlVisibility(a1); a1->updateDefaultTriggerValues(a1); a1->m_disableTextDelegate = 0; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source