1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 22:27:25 +08:00
osu-lazer/osu.Game.Tests/Visual/TestCaseSettings.cs

40 lines
1.1 KiB
C#
Raw Normal View History

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
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;
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()
{
settings = new MainSettings
{
State = Visibility.Visible
};
Add(dialogOverlay = new DialogOverlay
{
Depth = -1
});
2017-09-18 21:32:49 +08:00
}
[BackgroundDependencyLoader]
private void load()
2017-09-18 21:32:49 +08:00
{
dependencies.Cache(dialogOverlay);
Add(settings);
2017-09-18 21:32:49 +08:00
}
}
}