1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 06:22:55 +08:00

Fix osu!direct visual test initially not having a mode selected.

This commit is contained in:
DrabWeb 2017-07-11 01:30:59 -03:00
parent c449491c04
commit fc7b4ceff1

View File

@ -37,7 +37,7 @@ namespace osu.Game.Overlays.Direct
{
DisplayStyleControl.Dropdown.AccentColour = colours.BlueDark;
Ruleset.BindTo(game?.Ruleset ?? new Bindable<RulesetInfo>());
Ruleset.BindTo(game?.Ruleset ?? new Bindable<RulesetInfo>() { Value = rulesets.GetRuleset(0) });
foreach (var r in rulesets.AllRulesets)
{
modeButtons.Add(new RulesetToggleButton(Ruleset, r));