internal void SaveAs() { HideDifficultySwitch(); GameBase.MenuActive = true; SongSetup m = new SongSetup(true, false); if (m.ShowDialog(GameBase.Form) == DialogResult.OK) { BeatmapManager.Beatmaps.Sort(); //sorting by filename as it just changed. //ensure we reset the beatmap IDs. hitObjectManager.Beatmap.BeatmapId = 0; BeatmapManager.ProcessFolder(hitObjectManager.Beatmap.InOszContainer ? hitObjectManager.Beatmap.ExtractionFolder : hitObjectManager.Beatmap.ContainingFolderAbsolute); if (hitObjectManager.hitObjectsCount > 0) { DialogResult r = MessageBox.Show(LocalisationManager.GetString(OsuString.Editor_FileOperations_SaveAsDialog), @"osu!", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1); if (r == DialogResult.Yes) { hitObjectManager.Clear(); hitObjectManager.Save(false, false, false); } } } GameBase.MenuActive = false; }
internal void ShowSongSetup(bool confirmSave = true) { HideDifficultySwitch(); GameBase.MenuActive = true; SongSetup m = new SongSetup(false, confirmSave); m.ShowDialog(GameBase.Form); GameBase.MenuActive = false; if (!hitObjectManager.Beatmap.CustomColours) { SkinManager.ResetColoursToSkin(); } hitObjectManager.ComboColoursReset(); hitObjectManager.Sort(true); }