1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 03:27:24 +08:00

Remove SelectionTool, make Select the default tool

This commit is contained in:
smoogipoo 2017-11-30 19:53:52 +09:00
parent e9cbef88f1
commit 7e34b0f08d
2 changed files with 3 additions and 8 deletions

View File

@ -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)

View File

@ -1,7 +0,0 @@
namespace osu.Game.Rulesets.Edit.Tools
{
public class SelectionTool : ICompositionTool
{
public string Name => "Select";
}
}