diff --git a/osu.Game/Overlays/Direct/FilterControl.cs b/osu.Game/Overlays/Direct/FilterControl.cs index 0ea1953634..6b99dbb67d 100644 --- a/osu.Game/Overlays/Direct/FilterControl.cs +++ b/osu.Game/Overlays/Direct/FilterControl.cs @@ -28,7 +28,7 @@ public class FilterControl : Container public static readonly float LOWER_HEIGHT = 21; private readonly Box tabStrip; - private readonly FillFlowContainer modeButtons; + private readonly FillFlowContainer modeButtons; private FillFlowContainer resultCounts; public readonly SearchTextBox Search; @@ -68,7 +68,7 @@ public FilterControl() { RelativeSizeAxes = Axes.X, }, - modeButtons = new FillFlowContainer + modeButtons = new FillFlowContainer { AutoSizeAxes = Axes.Both, Spacing = new Vector2(10f, 0f), @@ -126,7 +126,7 @@ private void load(OsuGame game, RulesetDatabase rulesets, OsuColour colours) foreach (var r in rulesets.AllRulesets) { - modeButtons.Add(new ModeToggleButton(game?.Ruleset ?? new Bindable(), r)); + modeButtons.Add(new RulesetToggleButton(game?.Ruleset ?? new Bindable(), r)); } } @@ -144,7 +144,7 @@ private void load(OsuColour colours) } } - private class ModeToggleButton : ClickableContainer + private class RulesetToggleButton : ClickableContainer { private TextAwesome icon; @@ -166,7 +166,7 @@ void Bindable_ValueChanged(RulesetInfo obj) icon.FadeTo((Ruleset == obj) ? 1f : 0.5f, 100); } - public ModeToggleButton(Bindable bindable, RulesetInfo ruleset) + public RulesetToggleButton(Bindable bindable, RulesetInfo ruleset) { this.bindable = bindable; AutoSizeAxes = Axes.Both;