Change RadioButton's object to a string

This commit is contained in:
Dean Herbert
2021-07-17 02:29:31 +09:00
parent 6a781aedb3
commit 7a671754f2

View File

@ -17,7 +17,7 @@ namespace osu.Game.Screens.Edit.Components.RadioButtons
/// <summary>
/// The item related to this button.
/// </summary>
public object Item;
public string Item;
/// <summary>
/// A function which creates a drawable icon to represent this item. If null, a sane default should be used.
@ -26,7 +26,7 @@ namespace osu.Game.Screens.Edit.Components.RadioButtons
private readonly Action action;
public RadioButton(object item, Action action, Func<Drawable> createIcon = null)
public RadioButton(string item, Action action, Func<Drawable> createIcon = null)
{
Item = item;
CreateIcon = createIcon;
@ -34,13 +34,6 @@ namespace osu.Game.Screens.Edit.Components.RadioButtons
Selected = new BindableBool();
}
public RadioButton(string item)
: this(item, null)
{
Item = item;
action = null;
}
/// <summary>
/// Selects this <see cref="RadioButton"/>.
/// </summary>