1
0
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:
EVAST9919 2017-05-17 15:54:12 +03:00
parent e0625a9b30
commit 0867ef814c
4 changed files with 17 additions and 3 deletions

View File

@ -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
{

View File

@ -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;

View File

@ -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

View File

@ -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);