private void buttonGeneralDown_Click(object sender, EventArgs e) { if (SelectedGeneralMod == null) { return; } if (!SelectedGeneralMod.isActiveList) { return; } string modFolder = SelectedGeneralMod.modFolder; for (int i = 0; i < CurrentFighterActiveGeneralMods.Count; ++i) { if (!CurrentFighterActiveGeneralMods[i].FolderName.Equals(modFolder)) { continue; } CharacterGeneralMod mod = CurrentFighterActiveGeneralMods[i]; int index = _SmashProjectManager.CurrentProject.ActiveCharacterGeneralMods.IndexOf(mod); _SmashProjectManager.CurrentProject.ActiveCharacterGeneralMods.RemoveAt(index); _SmashProjectManager.CurrentProject.ActiveCharacterGeneralMods.Insert(index + 1, mod); CurrentFighterActiveGeneralMods.RemoveAt(i); CurrentFighterActiveGeneralMods.Insert(i + 1, mod); break; } RefreshGeneralModsLists(); _GridGeneral.SelectMod(modFolder); }
private void buttonGeneralLeft_Click(object sender, EventArgs e) { if (SelectedGeneralMod == null) { return; } if (SelectedGeneralMod.isActiveList) { return; } CharacterGeneralMod newActiveMod = new CharacterGeneralMod(); newActiveMod.CharacterID = _CurrentFighter.id; newActiveMod.FolderName = SelectedGeneralMod.modFolder; _SmashProjectManager.CurrentProject.ActiveCharacterGeneralMods.Add(newActiveMod); CurrentFighterActiveGeneralMods.Add(newActiveMod); RefreshGeneralModsLists(); _GridGeneral.SelectMod(newActiveMod.FolderName); }