2018-01-05 19:21:19 +08:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
2017-09-18 21:32:49 +08:00
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
2017-12-09 20:39:11 +08:00
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
using osu.Framework.Graphics.Containers;
|
2017-09-18 21:32:49 +08:00
|
|
|
|
using osu.Game.Overlays;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Tests.Visual
|
|
|
|
|
{
|
2017-12-20 20:47:45 +08:00
|
|
|
|
public class TestCaseSettings : OsuTestCase
|
2017-09-18 21:32:49 +08:00
|
|
|
|
{
|
|
|
|
|
private readonly SettingsOverlay settings;
|
2017-12-09 20:39:11 +08:00
|
|
|
|
private readonly DialogOverlay dialogOverlay;
|
|
|
|
|
|
|
|
|
|
private DependencyContainer dependencies;
|
|
|
|
|
|
|
|
|
|
protected override IReadOnlyDependencyContainer CreateLocalDependencies(IReadOnlyDependencyContainer parent) => dependencies = new DependencyContainer(parent);
|
2017-09-18 21:32:49 +08:00
|
|
|
|
|
|
|
|
|
public TestCaseSettings()
|
|
|
|
|
{
|
2017-12-09 20:39:11 +08:00
|
|
|
|
settings = new MainSettings
|
|
|
|
|
{
|
|
|
|
|
State = Visibility.Visible
|
|
|
|
|
};
|
|
|
|
|
Add(dialogOverlay = new DialogOverlay
|
|
|
|
|
{
|
|
|
|
|
Depth = -1
|
|
|
|
|
});
|
2017-09-18 21:32:49 +08:00
|
|
|
|
}
|
|
|
|
|
|
2017-12-09 20:39:11 +08:00
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load()
|
2017-09-18 21:32:49 +08:00
|
|
|
|
{
|
2017-12-09 20:39:11 +08:00
|
|
|
|
dependencies.Cache(dialogOverlay);
|
|
|
|
|
|
|
|
|
|
Add(settings);
|
2017-09-18 21:32:49 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|