public static void PauseOrResume() { if (_player.Isplaying) { _player.Pause(); NotifySystem.ClearText(); } else { if (_player.Position == -1.0) { return; } _player.Resume(); NotifySystem.SetText(CurrentBeatmap.NameToString()); } }
public static void Play() { if (!CurrentSet.Detailed) { CurrentSet.GetDetail(); } if (!CurrentBeatmap.Detailed) { CurrentBeatmap.GetDetail(); } if (!File.Exists(CurrentBeatmap.Audio)) { NotifySystem.Showtip(1000, LanguageManager.Get("OSUplayer"), LanguageManager.Get("Core_Missing_MP3_Text")); return; } _player.Play(); NotifySystem.Showtip(1000, LanguageManager.Get("OSUplayer"), LanguageManager.Get("Core_Current_Playing_Text") + CurrentBeatmap.NameToString()); NotifySystem.SetText(CurrentBeatmap.NameToString()); }