Set the ruleset bindable value at the BDL for its subclasses usages

There are test scenes using current value of ruleset bindable on their BDL (example in TestSceneSliderSnaking's BDL)
This commit is contained in:
Salman Ahmed 2020-06-04 00:37:06 +03:00
parent 11da045d8c
commit 136e10086a
No known key found for this signature in database
GPG Key ID: ED81FD33FD9B58BC

View File

@ -34,6 +34,8 @@ namespace osu.Game.Tests.Visual
[BackgroundDependencyLoader]
private void load()
{
Ruleset.Value = ruleset.RulesetInfo;
Dependencies.Cache(LocalConfig = new OsuConfigManager(LocalStorage));
LocalConfig.GetBindable<double>(OsuSetting.DimLevel).Value = 1.0;
}
@ -67,7 +69,6 @@ namespace osu.Game.Tests.Visual
var beatmap = CreateBeatmap(ruleset.RulesetInfo);
Beatmap.Value = CreateWorkingBeatmap(beatmap);
Ruleset.Value = ruleset.RulesetInfo;
SelectedMods.Value = Array.Empty<Mod>();
if (!AllowFail)