diff --git a/osu.Game.Tests/Visual/UserInterface/TestSceneStatefulMenuItem.cs b/osu.Game.Tests/Visual/UserInterface/TestSceneStatefulMenuItem.cs
index 00678a6ab4..d010abc862 100644
--- a/osu.Game.Tests/Visual/UserInterface/TestSceneStatefulMenuItem.cs
+++ b/osu.Game.Tests/Visual/UserInterface/TestSceneStatefulMenuItem.cs
@@ -74,9 +74,10 @@ namespace osu.Game.Tests.Visual.UserInterface
case TestStates.State3:
return FontAwesome.Solid.DiceThree;
- }
- return null;
+ default:
+ throw new ArgumentOutOfRangeException(nameof(state), state, null);
+ }
}
}
diff --git a/osu.Game/Graphics/UserInterface/StatefulMenuItem.cs b/osu.Game/Graphics/UserInterface/StatefulMenuItem.cs
index b5f9a3d635..0d7b36e51b 100644
--- a/osu.Game/Graphics/UserInterface/StatefulMenuItem.cs
+++ b/osu.Game/Graphics/UserInterface/StatefulMenuItem.cs
@@ -7,15 +7,34 @@ using osu.Framework.Graphics.Sprites;
namespace osu.Game.Graphics.UserInterface
{
+ ///
+ /// An which contains and displays a state.
+ ///
public abstract class StatefulMenuItem : OsuMenuItem
{
+ ///
+ /// The current state that should be displayed.
+ ///
public readonly Bindable