1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:12:54 +08:00

Use bindable binding

This commit is contained in:
smoogipoo 2018-06-12 19:34:49 +09:00
parent c70c7a476b
commit 67aa52fb1d
2 changed files with 1 additions and 8 deletions

View File

@ -229,7 +229,7 @@ namespace osu.Game.Screens.Play
};
HudOverlay.HoldToQuit.Action = Exit;
HudOverlay.KeyCounter.Visible.Value = RulesetContainer.HasReplayLoaded;
HudOverlay.KeyCounter.Visible.BindTo(RulesetContainer.HasReplayLoaded);
if (ShowStoryboard)
initializeStoryboard(false);

View File

@ -1,7 +1,6 @@
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Allocation;
using osu.Game.Rulesets.Replays;
namespace osu.Game.Screens.Play
@ -15,12 +14,6 @@ namespace osu.Game.Screens.Play
Replay = replay;
}
[BackgroundDependencyLoader]
private void load()
{
HudOverlay.KeyCounter.Visible.Value = true;
}
protected override void LoadComplete()
{
base.LoadComplete();