mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 16:03:01 +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.Framework.Graphics.Shapes;
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
using osu.Framework.Input;
|
using osu.Framework.Input;
|
||||||
using osu.Framework.Audio;
|
|
||||||
using osu.Framework.Configuration;
|
using osu.Framework.Configuration;
|
||||||
|
|
||||||
namespace osu.Game.Overlays.Direct
|
namespace osu.Game.Overlays.Direct
|
||||||
@ -191,7 +190,7 @@ namespace osu.Game.Overlays.Direct
|
|||||||
Margin = new MarginPadding { Top = 5, Left = 10 },
|
Margin = new MarginPadding { Top = 5, Left = 10 },
|
||||||
Size = new Vector2(30),
|
Size = new Vector2(30),
|
||||||
Alpha = 0,
|
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.Beatmaps;
|
||||||
using osu.Game.Graphics.Containers;
|
using osu.Game.Graphics.Containers;
|
||||||
using osu.Framework.Configuration;
|
using osu.Framework.Configuration;
|
||||||
using osu.Framework.Audio;
|
|
||||||
|
|
||||||
namespace osu.Game.Overlays.Direct
|
namespace osu.Game.Overlays.Direct
|
||||||
{
|
{
|
||||||
@ -74,7 +73,7 @@ namespace osu.Game.Overlays.Direct
|
|||||||
Size = new Vector2(height / 2),
|
Size = new Vector2(height / 2),
|
||||||
FillMode = FillMode.Fit,
|
FillMode = FillMode.Fit,
|
||||||
Alpha = 0,
|
Alpha = 0,
|
||||||
TrackURL = "https://b.ppy.sh/preview/" + SetInfo.OnlineBeatmapSetID + ".mp3",
|
TrackUrl = "https://b.ppy.sh/preview/" + SetInfo.OnlineBeatmapSetID + ".mp3",
|
||||||
},
|
},
|
||||||
new FillFlowContainer
|
new FillFlowContainer
|
||||||
{
|
{
|
||||||
|
@ -17,7 +17,7 @@ namespace osu.Game.Overlays.Direct
|
|||||||
{
|
{
|
||||||
public class PlayButton : Container
|
public class PlayButton : Container
|
||||||
{
|
{
|
||||||
public string TrackURL;
|
public string TrackUrl;
|
||||||
|
|
||||||
public Bindable<bool> Playing;
|
public Bindable<bool> Playing;
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ namespace osu.Game.Overlays.Direct
|
|||||||
public PlayButton(Bindable<bool> playing)
|
public PlayButton(Bindable<bool> playing)
|
||||||
{
|
{
|
||||||
Playing = playing;
|
Playing = playing;
|
||||||
Add(icon = new SpriteIcon()
|
Add(icon = new SpriteIcon
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
@ -75,7 +75,7 @@ namespace osu.Game.Overlays.Direct
|
|||||||
|
|
||||||
loadTask = Task.Run(() =>
|
loadTask = Task.Run(() =>
|
||||||
{
|
{
|
||||||
Track = audio.Track.Get(TrackURL);
|
Track = audio.Track.Get(TrackUrl);
|
||||||
Track.Looping = true;
|
Track.Looping = true;
|
||||||
if (Playing)
|
if (Playing)
|
||||||
Track.Start();
|
Track.Start();
|
||||||
|
Loading…
Reference in New Issue
Block a user