mirror of https://github.com/ppy/osu
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 @@ 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)
|
||||
|
|
Loading…
Reference in New Issue