mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 00:52:59 +08:00
Visible only in replay
This commit is contained in:
parent
e0625a9b30
commit
0867ef814c
@ -15,7 +15,7 @@ namespace osu.Game.Screens.Play.Options
|
||||
public override string Title => @"COLLECTIONS";
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuConfigManager config)
|
||||
private void load()
|
||||
{
|
||||
Add(new OsuSpriteText
|
||||
{
|
||||
|
@ -8,6 +8,21 @@ namespace osu.Game.Screens.Play.Options
|
||||
{
|
||||
public class OptionsDisplay : FillFlowContainer
|
||||
{
|
||||
private bool isVisible;
|
||||
public bool IsVisible
|
||||
{
|
||||
set
|
||||
{
|
||||
isVisible = value;
|
||||
|
||||
if (isVisible)
|
||||
Show();
|
||||
else
|
||||
Hide();
|
||||
}
|
||||
get { return isVisible; }
|
||||
}
|
||||
|
||||
public OptionsDisplay()
|
||||
{
|
||||
Direction = FillDirection.Vertical;
|
||||
|
@ -2,9 +2,7 @@
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Game.Configuration;
|
||||
using osu.Game.Graphics.UserInterface;
|
||||
using osu.Game.Overlays.Settings;
|
||||
|
||||
namespace osu.Game.Screens.Play.Options
|
||||
|
@ -167,6 +167,7 @@ namespace osu.Game.Screens.Play
|
||||
hudOverlay.Progress.Objects = HitRenderer.Objects;
|
||||
hudOverlay.Progress.AudioClock = decoupledClock;
|
||||
hudOverlay.Progress.AllowSeeking = HitRenderer.HasReplayLoaded;
|
||||
hudOverlay.OptionsDisplay.IsVisible = HitRenderer.HasReplayLoaded;
|
||||
hudOverlay.Progress.OnSeek = pos => decoupledClock.Seek(pos);
|
||||
|
||||
hudOverlay.ModDisplay.Current.BindTo(Beatmap.Mods);
|
||||
|
Loading…
Reference in New Issue
Block a user