// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. #nullable disable using System; namespace osu.Game.Graphics.UserInterface { /// /// A ternary state menu item which will always set the item to true on click, even if already true. /// public class TernaryStateRadioMenuItem : TernaryStateMenuItem { /// /// Creates a new . /// /// The text to display. /// The type of action which this performs. /// A delegate to be invoked when this is pressed. public TernaryStateRadioMenuItem(string text, MenuItemType type = MenuItemType.Standard, Action action = null) : base(text, getNextState, type, action) { } private static TernaryState getNextState(TernaryState state) => TernaryState.True; } }