mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Change RadioButton
's object
to a string
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user