1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Testing build

This commit is contained in:
DrabWeb 2017-02-28 17:09:31 -04:00
parent ce1798b8bc
commit d5d8352b62
2 changed files with 10 additions and 10 deletions

View File

@ -9,20 +9,20 @@ using osu.Game.Overlays.Dialog;
namespace osu.Desktop.VisualTests.Tests
{
public class TestCaseDialogOverlay : TestCase
class TestCaseDialogOverlay : TestCase
{
public override string Name => @"Dialog Overlay";
public override string Description => @"Display dialogs";
DialogOverlay overlay;
public override void Reset()
{
base.Reset();
var manager = new DialogOverlay();
Add(manager);
Add(overlay = new DialogOverlay());
AddButton("dialog #1", () => manager.Push(new PopupDialog
AddButton("dialog #1", () => overlay.Push(new PopupDialog
{
Icon = FontAwesome.fa_trash_o,
HeaderText = @"Confirm deletion of",
@ -42,7 +42,7 @@ namespace osu.Desktop.VisualTests.Tests
},
}));
AddButton("dialog #2", () => manager.Push(new PopupDialog
AddButton("dialog #2", () => overlay.Push(new PopupDialog
{
Icon = FontAwesome.fa_gear,
HeaderText = @"What do you want to do with",

View File

@ -59,8 +59,8 @@ namespace osu.Game.Screens.Select
FilterControl filter;
[BackgroundDependencyLoader(permitNulls: true)]
private void load(BeatmapDatabase beatmaps, AudioManager audio, Framework.Game game,
OsuGame osuGame, DialogOverlay dialog, OsuColour colours)
private void load(BeatmapDatabase beatmaps, AudioManager audio, /*DialogOverlay dialog,*/ Framework.Game game,
OsuGame osuGame, OsuColour colours)
{
const float carousel_width = 640;
const float filter_height = 100;
@ -144,7 +144,7 @@ namespace osu.Game.Screens.Select
database.BeatmapSetRemoved += onBeatmapSetRemoved;
trackManager = audio.Track;
dialogOverlay = dialog;
//dialogOverlay = dialog;
sampleChangeDifficulty = audio.Sample.Get(@"SongSelect/select-difficulty");
sampleChangeBeatmap = audio.Sample.Get(@"SongSelect/select-expand");
@ -388,7 +388,7 @@ namespace osu.Game.Screens.Select
if (state.Keyboard.ShiftPressed)
{
if (Beatmap != null)
dialogOverlay.Push(new BeatmapDeleteDialog(Beatmap));
dialogOverlay?.Push(new BeatmapDeleteDialog(Beatmap));
return true;
}