mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Rename radio button classes to be local to editor
This commit is contained in:
@ -18,10 +18,10 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Screens.Edit.Components.RadioButtons
|
||||
{
|
||||
public class DrawableRadioButton : OsuButton, IHasTooltip
|
||||
public class EditorRadioButton : OsuButton, IHasTooltip
|
||||
{
|
||||
/// <summary>
|
||||
/// Invoked when this <see cref="DrawableRadioButton"/> has been selected.
|
||||
/// Invoked when this <see cref="EditorRadioButton"/> has been selected.
|
||||
/// </summary>
|
||||
public Action<RadioButton> Selected;
|
||||
|
||||
@ -37,7 +37,7 @@ namespace osu.Game.Screens.Edit.Components.RadioButtons
|
||||
[Resolved(canBeNull: true)]
|
||||
private EditorBeatmap editorBeatmap { get; set; }
|
||||
|
||||
public DrawableRadioButton(RadioButton button)
|
||||
public EditorRadioButton(RadioButton button)
|
||||
{
|
||||
Button = button;
|
||||
|
@ -9,7 +9,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Screens.Edit.Components.RadioButtons
|
||||
{
|
||||
public class RadioButtonCollection : CompositeDrawable
|
||||
public class EditorRadioButtonCollection : CompositeDrawable
|
||||
{
|
||||
private IReadOnlyList<RadioButton> items;
|
||||
|
||||
@ -28,13 +28,13 @@ namespace osu.Game.Screens.Edit.Components.RadioButtons
|
||||
}
|
||||
}
|
||||
|
||||
private readonly FlowContainer<DrawableRadioButton> buttonContainer;
|
||||
private readonly FlowContainer<EditorRadioButton> buttonContainer;
|
||||
|
||||
public RadioButtonCollection()
|
||||
public EditorRadioButtonCollection()
|
||||
{
|
||||
AutoSizeAxes = Axes.Y;
|
||||
|
||||
InternalChild = buttonContainer = new FillFlowContainer<DrawableRadioButton>
|
||||
InternalChild = buttonContainer = new FillFlowContainer<EditorRadioButton>
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
@ -58,7 +58,7 @@ namespace osu.Game.Screens.Edit.Components.RadioButtons
|
||||
currentlySelected = null;
|
||||
};
|
||||
|
||||
buttonContainer.Add(new DrawableRadioButton(button));
|
||||
buttonContainer.Add(new EditorRadioButton(button));
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user