mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
Rename radio button item
to label
This commit is contained in:
@ -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;
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user