mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Added DialogManager(not wired up for desktop project yet)
This commit is contained in:
@ -50,8 +50,6 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
private List<BeatmapGroup> beatmapGroups;
|
||||
|
||||
private BeatmapDeleteDialog deleteDialog;
|
||||
|
||||
private Footer footer;
|
||||
|
||||
OsuScreen player;
|
||||
@ -125,15 +123,6 @@ namespace osu.Game.Screens.Select
|
||||
})).LoadAsync(Game, l => Push(player));
|
||||
}
|
||||
},
|
||||
deleteDialog = new BeatmapDeleteDialog
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
OnDelete = (b) =>
|
||||
{
|
||||
b.Dispose();
|
||||
database.Delete(b.BeatmapSetInfo);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
footer.AddButton(@"mods", colours.Yellow, null);
|
||||
@ -291,7 +280,6 @@ namespace osu.Game.Screens.Select
|
||||
//todo: change background in selectionChanged instead; support per-difficulty backgrounds.
|
||||
changeBackground(beatmap);
|
||||
carousel.SelectBeatmap(beatmap?.BeatmapInfo);
|
||||
deleteDialog.Beatmap = beatmap;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -396,7 +384,7 @@ namespace osu.Game.Screens.Select
|
||||
case Key.Delete:
|
||||
if (state.Keyboard.ShiftPressed)
|
||||
{
|
||||
deleteDialog.Show();
|
||||
// TODO: Delete beatmap dialog here
|
||||
return true;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user