1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 20:07:29 +08:00

Expose ConfigVisibility bindable for testing purposes

This commit is contained in:
Salman Ahmed 2020-02-02 14:48:07 +03:00
parent abccf05155
commit 6a11c3a8f9

View File

@ -21,7 +21,7 @@ namespace osu.Game.Screens.Play
private const double key_fade_time = 80;
public readonly Bindable<bool> Visible = new Bindable<bool>(true);
private readonly Bindable<bool> configVisibility = new Bindable<bool>();
protected readonly Bindable<bool> ConfigVisibility = new Bindable<bool>();
public KeyCounterDisplay()
{
@ -43,7 +43,7 @@ namespace osu.Game.Screens.Play
[BackgroundDependencyLoader]
private void load(OsuConfigManager config)
{
config.BindWith(OsuSetting.KeyOverlay, configVisibility);
config.BindWith(OsuSetting.KeyOverlay, ConfigVisibility);
}
protected override void LoadComplete()
@ -51,7 +51,7 @@ namespace osu.Game.Screens.Play
base.LoadComplete();
Visible.BindValueChanged(_ => updateVisibility());
configVisibility.BindValueChanged(_ => updateVisibility(), true);
ConfigVisibility.BindValueChanged(_ => updateVisibility(), true);
}
private bool isCounting = true;