mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
remove unused usings and reset the track to the start when playing again
This commit is contained in:
@ -12,7 +12,6 @@ using osu.Game.Graphics;
|
||||
using osu.Game.Graphics.Sprites;
|
||||
using osu.Framework.Graphics.Shapes;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Framework.Configuration;
|
||||
|
||||
namespace osu.Game.Overlays.Direct
|
||||
{
|
||||
|
@ -13,8 +13,6 @@ using osu.Framework.Allocation;
|
||||
using osu.Framework.Localisation;
|
||||
using osu.Framework.Graphics.Shapes;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Framework.Configuration;
|
||||
using System;
|
||||
|
||||
namespace osu.Game.Overlays.Direct
|
||||
{
|
||||
|
@ -131,12 +131,13 @@ namespace osu.Game.Overlays.Direct
|
||||
{
|
||||
PlayButton.Loading = false;
|
||||
Preview = (d as AudioLoadWrapper)?.Preview;
|
||||
Preview.Start();
|
||||
PreviewPlaying.TriggerChange();
|
||||
},
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
Preview.Seek(0);
|
||||
Preview.Start();
|
||||
}
|
||||
}
|
||||
|
@ -3,16 +3,12 @@
|
||||
|
||||
using OpenTK.Graphics;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Audio;
|
||||
using osu.Framework.Audio.Track;
|
||||
using osu.Framework.Configuration;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Input;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Graphics;
|
||||
using osu.Game.Graphics.UserInterface;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace osu.Game.Overlays.Direct
|
||||
{
|
||||
|
Reference in New Issue
Block a user