1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-19 07:04:15 +08:00

Update FontAwesome usage.

This commit is contained in:
Huo Yaoyuan 2016-11-07 19:00:20 +08:00
parent 8037f1233f
commit 736079a60d
2 changed files with 6 additions and 6 deletions

View File

@ -98,7 +98,7 @@ namespace osu.Game.Overlays
playButton = new TextAwesome
{
TextSize = 30,
Icon = FontAwesome.play_circle_o,
Icon = FontAwesome.fa_play_circle_o,
Origin = Anchor.Centre,
Anchor = Anchor.Centre
}
@ -116,7 +116,7 @@ namespace osu.Game.Overlays
new TextAwesome
{
TextSize = 15,
Icon = FontAwesome.step_backward,
Icon = FontAwesome.fa_step_backward,
Origin = Anchor.Centre,
Anchor = Anchor.Centre
}
@ -134,7 +134,7 @@ namespace osu.Game.Overlays
new TextAwesome
{
TextSize = 15,
Icon = FontAwesome.step_forward,
Icon = FontAwesome.fa_step_forward,
Origin = Anchor.Centre,
Anchor = Anchor.Centre
}
@ -151,7 +151,7 @@ namespace osu.Game.Overlays
listButton = new TextAwesome
{
TextSize = 15,
Icon = FontAwesome.bars,
Icon = FontAwesome.fa_bars,
Origin = Anchor.Centre,
Anchor = Anchor.Centre
}
@ -199,7 +199,7 @@ namespace osu.Game.Overlays
if (current?.Track == null) return;
progress.UpdatePosition((float)(current.Track.CurrentTime / current.Track.Length));
playButton.Icon = current.Track.IsRunning ? FontAwesome.pause : FontAwesome.play_circle_o;
playButton.Icon = current.Track.IsRunning ? FontAwesome.fa_pause_circle_o : FontAwesome.fa_play_circle_o;
if (current.Track.HasCompleted && !current.Track.Looping) next();
}

View File

@ -88,7 +88,7 @@ namespace osu.Game.Overlays
{
new ToolbarButton
{
Icon = FontAwesome.music,
Icon = FontAwesome.fa_music,
Action = () => OnMusicController?.Invoke()
},
new ToolbarButton