mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
No more statics + better unregistration
This commit is contained in:
@ -161,11 +161,19 @@ namespace osu.Game.Rulesets.Mania.UI
|
||||
judgements.Scale = Scale;
|
||||
}
|
||||
|
||||
private Bindable<double> scrollTime;
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours, 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();
|
||||
|
||||
normalColumnColours = new List<Color4>
|
||||
{
|
||||
colours.RedDark,
|
||||
|
Reference in New Issue
Block a user