mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09:00
Update bindings in LoadComplete()
This commit is contained in:
parent
59728ffebd
commit
f3dbddd75c
@ -75,7 +75,11 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
|
|
||||||
configEnabled = config.GetBindable<bool>(OsuSetting.FadePlayfieldWhenHealthLow);
|
configEnabled = config.GetBindable<bool>(OsuSetting.FadePlayfieldWhenHealthLow);
|
||||||
enabled.BindValueChanged(e => this.FadeTo(e.NewValue ? 1 : 0, fade_time, Easing.OutQuint), true);
|
enabled.BindValueChanged(e => this.FadeTo(e.NewValue ? 1 : 0, fade_time, Easing.OutQuint), true);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void LoadComplete()
|
||||||
|
{
|
||||||
|
base.LoadComplete();
|
||||||
updateBindings();
|
updateBindings();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -89,7 +93,7 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
|
|
||||||
private void updateBindings()
|
private void updateBindings()
|
||||||
{
|
{
|
||||||
if (configEnabled == null || healthProcessor == null)
|
if (LoadState < LoadState.Ready)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
enabled.UnbindBindings();
|
enabled.UnbindBindings();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user