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:
parent
6d3533b777
commit
c34ef42f00
@ -218,6 +218,8 @@ namespace osu.Game.Screens.Play
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hudOverlay.PlayerSettingsOverlay.PlaybackSettings.EndReplayButton.Action = Exit;
|
||||||
|
|
||||||
if (ShowStoryboard)
|
if (ShowStoryboard)
|
||||||
initializeStoryboard(false);
|
initializeStoryboard(false);
|
||||||
|
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user