mirror of
https://github.com/ppy/osu
synced 2024-12-12 18:07:52 +00:00
Remove SelectionTool, make Select the default tool
This commit is contained in:
parent
e9cbef88f1
commit
7e34b0f08d
@ -89,11 +89,13 @@ namespace osu.Game.Rulesets.Edit
|
||||
rulesetContainer.Clock = new InterpolatingFramedClock((IAdjustableClock)osuGame.Beatmap.Value.Track ?? new StopwatchClock());
|
||||
|
||||
toolboxCollection.Items =
|
||||
new[] { new RadioButton("Select", () => setCompositionTool(new SelectionTool())) }
|
||||
new[] { new RadioButton("Select", () => setCompositionTool(null)) }
|
||||
.Concat(
|
||||
CompositionTools.Select(t => new RadioButton(t.Name, () => setCompositionTool(t)))
|
||||
)
|
||||
.ToList();
|
||||
|
||||
toolboxCollection.Items[0].Select();
|
||||
}
|
||||
|
||||
private void setCompositionTool(ICompositionTool tool)
|
||||
|
@ -1,7 +0,0 @@
|
||||
namespace osu.Game.Rulesets.Edit.Tools
|
||||
{
|
||||
public class SelectionTool : ICompositionTool
|
||||
{
|
||||
public string Name => "Select";
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user