1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 15:12:57 +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) if (ShowStoryboard)
initializeStoryboard(false); initializeStoryboard(false);

View File

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