1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 16:07:25 +08:00
This commit is contained in:
Jorolf 2017-09-17 22:54:23 +02:00
parent f8b09df13c
commit 3e8ae93b34
3 changed files with 5 additions and 7 deletions

View File

@ -13,7 +13,6 @@ using osu.Game.Graphics.Sprites;
using osu.Framework.Graphics.Shapes;
using osu.Game.Beatmaps;
using osu.Framework.Input;
using osu.Framework.Audio;
using osu.Framework.Configuration;
namespace osu.Game.Overlays.Direct
@ -191,7 +190,7 @@ namespace osu.Game.Overlays.Direct
Margin = new MarginPadding { Top = 5, Left = 10 },
Size = new Vector2(30),
Alpha = 0,
TrackURL = "https://b.ppy.sh/preview/" + SetInfo.OnlineBeatmapSetID + ".mp3",
TrackUrl = "https://b.ppy.sh/preview/" + SetInfo.OnlineBeatmapSetID + ".mp3",
},
});

View File

@ -16,7 +16,6 @@ using osu.Framework.Graphics.Shapes;
using osu.Game.Beatmaps;
using osu.Game.Graphics.Containers;
using osu.Framework.Configuration;
using osu.Framework.Audio;
namespace osu.Game.Overlays.Direct
{
@ -74,7 +73,7 @@ namespace osu.Game.Overlays.Direct
Size = new Vector2(height / 2),
FillMode = FillMode.Fit,
Alpha = 0,
TrackURL = "https://b.ppy.sh/preview/" + SetInfo.OnlineBeatmapSetID + ".mp3",
TrackUrl = "https://b.ppy.sh/preview/" + SetInfo.OnlineBeatmapSetID + ".mp3",
},
new FillFlowContainer
{

View File

@ -17,7 +17,7 @@ namespace osu.Game.Overlays.Direct
{
public class PlayButton : Container
{
public string TrackURL;
public string TrackUrl;
public Bindable<bool> Playing;
@ -31,7 +31,7 @@ namespace osu.Game.Overlays.Direct
public PlayButton(Bindable<bool> playing)
{
Playing = playing;
Add(icon = new SpriteIcon()
Add(icon = new SpriteIcon
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
@ -75,7 +75,7 @@ namespace osu.Game.Overlays.Direct
loadTask = Task.Run(() =>
{
Track = audio.Track.Get(TrackURL);
Track = audio.Track.Get(TrackUrl);
Track.Looping = true;
if (Playing)
Track.Start();