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.HoldToQuit.Action = Exit;
HudOverlay.KeyCounter.Visible.Value = RulesetContainer.HasReplayLoaded; HudOverlay.KeyCounter.Visible.BindTo(RulesetContainer.HasReplayLoaded);
if (ShowStoryboard) if (ShowStoryboard)
initializeStoryboard(false); initializeStoryboard(false);

View File

@ -1,7 +1,6 @@
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// 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.Game.Rulesets.Replays; using osu.Game.Rulesets.Replays;
namespace osu.Game.Screens.Play namespace osu.Game.Screens.Play
@ -15,12 +14,6 @@ namespace osu.Game.Screens.Play
Replay = replay; Replay = replay;
} }
[BackgroundDependencyLoader]
private void load()
{
HudOverlay.KeyCounter.Visible.Value = true;
}
protected override void LoadComplete() protected override void LoadComplete()
{ {
base.LoadComplete(); base.LoadComplete();