Use depth to arrange buttons.

This commit is contained in:
Huo Yaoyuan
2017-03-14 20:18:14 +08:00
parent 618e8e822b
commit 35a60a8f7d
6 changed files with 20 additions and 30 deletions

View File

@ -1,10 +1,7 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using OpenTK.Input;
using osu.Framework.Allocation;
using osu.Game.Beatmaps;
using osu.Game.Graphics;
using osu.Game.Screens.Edit;
namespace osu.Game.Screens.Select
@ -12,13 +9,5 @@ namespace osu.Game.Screens.Select
internal class EditSongSelect : SongSelect
{
protected override void OnSelected(WorkingBeatmap beatmap) => Push(new Editor(beatmap));
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
Footer.AddButton(@"random", colours.Green, SelectRandom, Key.F2);
Footer.AddButton(@"options", colours.Blue, BeatmapOptions.ToggleVisibility, Key.F3);
BeatmapOptions.AddButton(@"Delete", @"Beatmap", FontAwesome.fa_trash, colours.Pink, PromptDelete, Key.Number4);
}
}
}