Remove ManiaPlayfield local scrollTime bindable

Now not needed due to having this databased.
This commit is contained in:
smoogipoo 2018-01-25 20:49:18 +09:00
parent 80b8780f56
commit 45e8a2b69b
1 changed files with 0 additions and 8 deletions

View File

@ -80,18 +80,10 @@ private ManiaStage getStageByColumn(int column)
return null;
}
private Bindable<double> scrollTime;
[BackgroundDependencyLoader]
private void load(ManiaConfigManager maniaConfig)
{
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)