1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 20:07:29 +08:00

Add 'End replay' button

This commit is contained in:
TocoToucan 2018-04-20 12:50:19 +03:00
parent 6d3533b777
commit c34ef42f00
2 changed files with 8 additions and 0 deletions

View File

@ -218,6 +218,8 @@ namespace osu.Game.Screens.Play
}
};
hudOverlay.PlayerSettingsOverlay.PlaybackSettings.EndReplayButton.Action = Exit;
if (ShowStoryboard)
initializeStoryboard(false);

View File

@ -6,6 +6,7 @@ using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Timing;
using osu.Game.Graphics.Sprites;
using osu.Game.Overlays.Settings;
namespace osu.Game.Screens.Play.PlayerSettings
{
@ -18,6 +19,7 @@ namespace osu.Game.Screens.Play.PlayerSettings
public IAdjustableClock AdjustableClock { set; get; }
private readonly PlayerSliderBar<double> sliderbar;
public readonly SettingsButton EndReplayButton;
public PlaybackSettings()
{
@ -55,6 +57,10 @@ namespace osu.Game.Screens.Play.PlayerSettings
MaxValue = 2,
Precision = 0.1,
},
},
EndReplayButton = new SettingsButton
{
Text = "End replay"
}
};