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

Bind value changed event of cursor trail appearence outside BDL

https://github.com/ppy/osu/pull/6270#discussion_r328899728
This commit is contained in:
iiSaLMaN 2019-09-27 08:46:49 +03:00
parent 12b027f2c3
commit 67bed57cbd

View File

@ -40,6 +40,11 @@ namespace osu.Game.Rulesets.Osu.UI.Cursor
private void load(OsuRulesetConfigManager config)
{
config?.BindWith(OsuRulesetSetting.ShowCursorTrail, showTrail);
}
protected override void LoadComplete()
{
base.LoadComplete();
showTrail.BindValueChanged(v => cursorTrail.FadeTo(v.NewValue ? 1 : 0, 200), true);
}