Пример #1
0
        private void buttonLeft_Click(object sender, EventArgs e)
        {
            if (SelectedMod == null)
            {
                return;
            }
            if (SelectedMod.isActiveList)
            {
                return;
            }

            string newActiveMod = SelectedMod.modFolder;

            _SmashProjectManager.CurrentProject.ActiveGeneralMods.Add(newActiveMod);
            RefreshModsLists();
            _GridMods.SelectMod(newActiveMod);
        }
Пример #2
0
        private void buttonRight_Click(object sender, EventArgs e)
        {
            if (SelectedMod == null)
            {
                return;
            }
            if (!SelectedMod.isActiveList)
            {
                return;
            }
            string modFolder = SelectedMod.modFolder;

            for (int i = 0; i < _SmashProjectManager.CurrentProject.ActiveStageMods.Count; ++i)
            {
                if (_SmashProjectManager.CurrentProject.ActiveStageMods[i].FolderName.Equals(modFolder))
                {
                    _SmashProjectManager.CurrentProject.ActiveStageMods.RemoveAt(i);
                    break;
                }
            }
            RefreshModsLists();
            _GridModsInactive.SelectMod(modFolder);
        }
Пример #3
0
        private void buttonLeft_Click(object sender, EventArgs e)
        {
            if (SelectedMod == null)
            {
                return;
            }
            if (SelectedMod.isActiveList)
            {
                return;
            }

            StageModXML xml = Globals.Utils.OpenStageKamiModFile(SelectedMod.modFolder);

            if (xml == null)
            {
                return;
            }
            int id = xml.IntendedStage;

            for (int i = 0; i < _SmashProjectManager.CurrentProject.ActiveStageMods.Count; ++i)
            {
                if (id == _SmashProjectManager.CurrentProject.ActiveStageMods[i].StageID)
                {
                    MessageBox.Show(String.Format("Cannot activate mod. Stage mod '{0}' is already occupying that stage slot.", _SmashProjectManager.CurrentProject.ActiveStageMods[i].FolderName));
                    return;
                }
            }

            StageSlotMod newActiveMod = new StageSlotMod();

            newActiveMod.FolderName = SelectedMod.modFolder;
            newActiveMod.StageID    = id;
            _SmashProjectManager.CurrentProject.ActiveStageMods.Add(newActiveMod);
            RefreshModsLists();
            _GridMods.SelectMod(newActiveMod.FolderName);
        }
 public void SelectGeneralMod(string a_mod)
 {
     _GridGeneral.SelectMod(a_mod);
     _GridGeneralInactive.SelectMod(a_mod);
 }
 public void SelectSlotMod(string a_mod)
 {
     _GridSlots.SelectMod(a_mod);
     _GridSlotsInactive.SelectMod(a_mod);
 }