Rename radio button item to label

This commit is contained in:
Dean Herbert
2021-07-17 02:30:49 +09:00
parent eac9b1ec7e
commit 50eed26bd1
3 changed files with 8 additions and 8 deletions

View File

@ -39,9 +39,9 @@ namespace osu.Game.Screens.Edit.Components.RadioButtons
public DrawableRadioButton(RadioButton button)
{
this.Button = button;
Button = button;
Text = button.Item.ToString();
Text = button.Label;
Action = button.Select;
RelativeSizeAxes = Axes.X;

View File

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