diff --git a/osu.Game/Graphics/UserInterface/Nub.cs b/osu.Game/Graphics/UserInterface/Nub.cs index 06e3be5c15..e150c7dc07 100644 --- a/osu.Game/Graphics/UserInterface/Nub.cs +++ b/osu.Game/Graphics/UserInterface/Nub.cs @@ -12,7 +12,7 @@ using osu.Framework.Graphics.UserInterface; namespace osu.Game.Graphics.UserInterface { - public class Nub : CircularContainer, IStateful + public class Nub : CircularContainer, IStateful { public const float COLLAPSED_SIZE = 20; public const float EXPANDED_SIZE = 40; @@ -84,9 +84,9 @@ namespace osu.Game.Graphics.UserInterface } } - private CheckBoxState state; + private CheckboxState state; - public CheckBoxState State + public CheckboxState State { get { @@ -98,10 +98,10 @@ namespace osu.Game.Graphics.UserInterface switch (state) { - case CheckBoxState.Checked: + case CheckboxState.Checked: fill.FadeIn(200, EasingTypes.OutQuint); break; - case CheckBoxState.Unchecked: + case CheckboxState.Unchecked: fill.FadeTo(0.01f, 200, EasingTypes.OutQuint); //todo: remove once we figure why containers aren't drawing at all times break; } diff --git a/osu.Game/Graphics/UserInterface/OsuCheckbox.cs b/osu.Game/Graphics/UserInterface/OsuCheckbox.cs index 2209c96689..fc44d80ea6 100644 --- a/osu.Game/Graphics/UserInterface/OsuCheckbox.cs +++ b/osu.Game/Graphics/UserInterface/OsuCheckbox.cs @@ -16,7 +16,7 @@ using OpenTK.Graphics; namespace osu.Game.Graphics.UserInterface { - public class OsuCheckbox : CheckBox + public class OsuCheckbox : Checkbox { private Bindable bindable; @@ -29,9 +29,9 @@ namespace osu.Game.Graphics.UserInterface bindable = value; if (bindable != null) { - bool state = State == CheckBoxState.Checked; + bool state = State == CheckboxState.Checked; if (state != bindable.Value) - State = bindable.Value ? CheckBoxState.Checked : CheckBoxState.Unchecked; + State = bindable.Value ? CheckboxState.Checked : CheckboxState.Unchecked; bindable.ValueChanged += bindableValueChanged; } @@ -88,7 +88,7 @@ namespace osu.Game.Graphics.UserInterface private void bindableValueChanged(object sender, EventArgs e) { - State = bindable.Value ? CheckBoxState.Checked : CheckBoxState.Unchecked; + State = bindable.Value ? CheckboxState.Checked : CheckboxState.Unchecked; } protected override void Dispose(bool isDisposing) @@ -122,7 +122,7 @@ namespace osu.Game.Graphics.UserInterface protected override void OnChecked() { sampleChecked?.Play(); - nub.State = CheckBoxState.Checked; + nub.State = CheckboxState.Checked; if (bindable != null) bindable.Value = true; @@ -131,7 +131,7 @@ namespace osu.Game.Graphics.UserInterface protected override void OnUnchecked() { sampleUnchecked?.Play(); - nub.State = CheckBoxState.Unchecked; + nub.State = CheckboxState.Unchecked; if (bindable != null) bindable.Value = false; diff --git a/osu.Game/Graphics/UserInterface/OsuSliderBar.cs b/osu.Game/Graphics/UserInterface/OsuSliderBar.cs index b7d46cd409..078c8564d7 100644 --- a/osu.Game/Graphics/UserInterface/OsuSliderBar.cs +++ b/osu.Game/Graphics/UserInterface/OsuSliderBar.cs @@ -50,7 +50,7 @@ namespace osu.Game.Graphics.UserInterface nub = new Nub { Origin = Anchor.TopCentre, - State = CheckBoxState.Unchecked, + State = CheckboxState.Unchecked, Expanded = true, } }; @@ -94,13 +94,13 @@ namespace osu.Game.Graphics.UserInterface protected override bool OnMouseDown(InputState state, MouseDownEventArgs args) { - nub.State = CheckBoxState.Checked; + nub.State = CheckboxState.Checked; return base.OnMouseDown(state, args); } protected override bool OnMouseUp(InputState state, MouseUpEventArgs args) { - nub.State = CheckBoxState.Unchecked; + nub.State = CheckboxState.Unchecked; return base.OnMouseUp(state, args); } diff --git a/osu.Game/Graphics/UserInterface/OsuTabControlCheckBox.cs b/osu.Game/Graphics/UserInterface/OsuTabControlCheckBox.cs index f9d14f3b09..5914d0ba4c 100644 --- a/osu.Game/Graphics/UserInterface/OsuTabControlCheckBox.cs +++ b/osu.Game/Graphics/UserInterface/OsuTabControlCheckBox.cs @@ -16,15 +16,15 @@ using osu.Game.Graphics.Sprites; namespace osu.Game.Graphics.UserInterface { /// - /// A checkbox styled to be placed in line with an + /// A Checkbox styled to be placed in line with an /// - public class OsuTabControlCheckBox : CheckBox + public class OsuTabControlCheckbox : Checkbox { private readonly Box box; private readonly SpriteText text; private readonly TextAwesome icon; - public event EventHandler Action; + public event EventHandler Action; private Color4? accentColour; public Color4 AccentColour @@ -34,7 +34,7 @@ namespace osu.Game.Graphics.UserInterface { accentColour = value; - if (State != CheckBoxState.Checked) + if (State != CheckboxState.Checked) { text.Colour = AccentColour; icon.Colour = AccentColour; @@ -84,7 +84,7 @@ namespace osu.Game.Graphics.UserInterface protected override void OnHoverLost(InputState state) { - if (State == CheckBoxState.Unchecked) + if (State == CheckboxState.Unchecked) fadeOut(); base.OnHoverLost(state); @@ -97,7 +97,7 @@ namespace osu.Game.Graphics.UserInterface AccentColour = colours.Blue; } - public OsuTabControlCheckBox() + public OsuTabControlCheckbox() { AutoSizeAxes = Axes.Both; diff --git a/osu.Game/Screens/Select/BeatmapDetailAreaTabControl.cs b/osu.Game/Screens/Select/BeatmapDetailAreaTabControl.cs index 9dc8de96d1..088346d91f 100644 --- a/osu.Game/Screens/Select/BeatmapDetailAreaTabControl.cs +++ b/osu.Game/Screens/Select/BeatmapDetailAreaTabControl.cs @@ -17,14 +17,14 @@ namespace osu.Game.Screens.Select public class BeatmapDetailAreaTabControl : Container { public static readonly float HEIGHT = 24; - private readonly OsuTabControlCheckBox modsCheckbox; + private readonly OsuTabControlCheckbox modsCheckbox; private readonly OsuTabControl tabs; public Action OnFilter; //passed the selected tab and if mods is checked private void invokeOnFilter() { - OnFilter?.Invoke(tabs.SelectedItem, modsCheckbox.State == CheckBoxState.Checked); + OnFilter?.Invoke(tabs.SelectedItem, modsCheckbox.State == CheckboxState.Checked); } [BackgroundDependencyLoader] @@ -53,7 +53,7 @@ namespace osu.Game.Screens.Select Origin = Anchor.BottomLeft, RelativeSizeAxes = Axes.Both, }, - modsCheckbox = new OsuTabControlCheckBox + modsCheckbox = new OsuTabControlCheckbox { Anchor = Anchor.BottomRight, Origin = Anchor.BottomRight,