mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09: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";
|
public override string Title => @"COLLECTIONS";
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(OsuConfigManager config)
|
private void load()
|
||||||
{
|
{
|
||||||
Add(new OsuSpriteText
|
Add(new OsuSpriteText
|
||||||
{
|
{
|
||||||
|
@ -8,6 +8,21 @@ namespace osu.Game.Screens.Play.Options
|
|||||||
{
|
{
|
||||||
public class OptionsDisplay : FillFlowContainer
|
public class OptionsDisplay : FillFlowContainer
|
||||||
{
|
{
|
||||||
|
private bool isVisible;
|
||||||
|
public bool IsVisible
|
||||||
|
{
|
||||||
|
set
|
||||||
|
{
|
||||||
|
isVisible = value;
|
||||||
|
|
||||||
|
if (isVisible)
|
||||||
|
Show();
|
||||||
|
else
|
||||||
|
Hide();
|
||||||
|
}
|
||||||
|
get { return isVisible; }
|
||||||
|
}
|
||||||
|
|
||||||
public OptionsDisplay()
|
public OptionsDisplay()
|
||||||
{
|
{
|
||||||
Direction = FillDirection.Vertical;
|
Direction = FillDirection.Vertical;
|
||||||
|
@ -2,9 +2,7 @@
|
|||||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Graphics;
|
|
||||||
using osu.Game.Configuration;
|
using osu.Game.Configuration;
|
||||||
using osu.Game.Graphics.UserInterface;
|
|
||||||
using osu.Game.Overlays.Settings;
|
using osu.Game.Overlays.Settings;
|
||||||
|
|
||||||
namespace osu.Game.Screens.Play.Options
|
namespace osu.Game.Screens.Play.Options
|
||||||
|
@ -167,6 +167,7 @@ namespace osu.Game.Screens.Play
|
|||||||
hudOverlay.Progress.Objects = HitRenderer.Objects;
|
hudOverlay.Progress.Objects = HitRenderer.Objects;
|
||||||
hudOverlay.Progress.AudioClock = decoupledClock;
|
hudOverlay.Progress.AudioClock = decoupledClock;
|
||||||
hudOverlay.Progress.AllowSeeking = HitRenderer.HasReplayLoaded;
|
hudOverlay.Progress.AllowSeeking = HitRenderer.HasReplayLoaded;
|
||||||
|
hudOverlay.OptionsDisplay.IsVisible = HitRenderer.HasReplayLoaded;
|
||||||
hudOverlay.Progress.OnSeek = pos => decoupledClock.Seek(pos);
|
hudOverlay.Progress.OnSeek = pos => decoupledClock.Seek(pos);
|
||||||
|
|
||||||
hudOverlay.ModDisplay.Current.BindTo(Beatmap.Mods);
|
hudOverlay.ModDisplay.Current.BindTo(Beatmap.Mods);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user