mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 12:02:55 +08:00
appveyor
This commit is contained in:
parent
f8b09df13c
commit
3e8ae93b34
@ -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",
|
||||
},
|
||||
});
|
||||
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user