mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 23:12:56 +08:00
Remove ManiaPlayfield local scrollTime bindable
Now not needed due to having this databased.
This commit is contained in:
parent
80b8780f56
commit
45e8a2b69b
@ -80,18 +80,10 @@ namespace osu.Game.Rulesets.Mania.UI
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private Bindable<double> scrollTime;
|
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(ManiaConfigManager maniaConfig)
|
private void load(ManiaConfigManager maniaConfig)
|
||||||
{
|
{
|
||||||
maniaConfig.BindWith(ManiaSetting.ScrollTime, VisibleTimeRange);
|
maniaConfig.BindWith(ManiaSetting.ScrollTime, VisibleTimeRange);
|
||||||
|
|
||||||
// Todo: The following two lines shouldn't be required, but is an effect of not having config databased
|
|
||||||
// 1. ValueChanged is run prior to values being propagated
|
|
||||||
// 2. We want the config to be saved ASAP, in-case a new ManiaPlayfield is instantiated
|
|
||||||
scrollTime = maniaConfig.GetBindable<double>(ManiaSetting.ScrollTime);
|
|
||||||
scrollTime.ValueChanged += v => maniaConfig.Save();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
internal void OnJudgement(DrawableHitObject judgedObject, Judgement judgement)
|
internal void OnJudgement(DrawableHitObject judgedObject, Judgement judgement)
|
||||||
|
Loading…
Reference in New Issue
Block a user