diff --git a/osu.Game/Modes/UI/ModIcon.cs b/osu.Game/Modes/UI/ModIcon.cs index 232c12bfc6..a13aa297a4 100644 --- a/osu.Game/Modes/UI/ModIcon.cs +++ b/osu.Game/Modes/UI/ModIcon.cs @@ -25,31 +25,27 @@ namespace osu.Game.Modes.UI reapplySize(); } } - - private Color4 backgroundColour; - new public Color4 Colour + + public new Color4 Colour { get { - return backgroundColour; + return background.Colour; } set { - backgroundColour = value; background.Colour = value; } } - - private FontAwesome icon; + public FontAwesome Icon { get { - return icon; + return modIcon.Icon; } set { - icon = value; modIcon.Icon = value; } } diff --git a/osu.Game/Overlays/Mods/ModSection.cs b/osu.Game/Overlays/Mods/ModSection.cs index ee95c3ea9e..7168b029e5 100644 --- a/osu.Game/Overlays/Mods/ModSection.cs +++ b/osu.Game/Overlays/Mods/ModSection.cs @@ -29,16 +29,14 @@ namespace osu.Game.Overlays.Mods public Action Action; protected virtual Key[] ToggleKeys => new Key[] { }; - private string header; public string Header { get { - return header; + return headerLabel.Text; } set { - header = value; headerLabel.Text = value; } } @@ -137,8 +135,7 @@ namespace osu.Game.Overlays.Mods Origin = Anchor.TopLeft, Anchor = Anchor.TopLeft, Position = new Vector2(0f, 0f), - Font = @"Exo2.0-Bold", - Text = Header, + Font = @"Exo2.0-Bold" }, buttonsContainer = new AlwaysPresentFlowContainer {