mirror of
https://github.com/ppy/osu
synced 2024-12-13 18:37:04 +00:00
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:
parent
11da045d8c
commit
136e10086a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user