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:
parent
c70c7a476b
commit
67aa52fb1d
@ -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);
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user