mirror of
https://github.com/ppy/osu.git
synced 2024-12-28 21:52:54 +08:00
53 lines
1.5 KiB
C#
53 lines
1.5 KiB
C#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using NUnit.Framework;
|
|
using osu.Framework.Graphics;
|
|
using osu.Game.Graphics.UserInterface;
|
|
using osu.Game.Screens.Play.HUD;
|
|
using osu.Game.Screens.Play.PlayerSettings;
|
|
|
|
namespace osu.Game.Tests.Visual
|
|
{
|
|
[TestFixture]
|
|
public class TestCaseReplaySettingsOverlay : OsuTestCase
|
|
{
|
|
public TestCaseReplaySettingsOverlay()
|
|
{
|
|
ExampleContainer container;
|
|
|
|
Add(new PlayerSettingsOverlay
|
|
{
|
|
Anchor = Anchor.TopRight,
|
|
Origin = Anchor.TopRight,
|
|
});
|
|
|
|
Add(container = new ExampleContainer());
|
|
|
|
AddStep(@"Add button", () => container.Add(new TriangleButton
|
|
{
|
|
RelativeSizeAxes = Axes.X,
|
|
Text = @"Button",
|
|
}));
|
|
|
|
AddStep(@"Add checkbox", () => container.Add(new PlayerCheckbox
|
|
{
|
|
LabelText = "Checkbox",
|
|
}));
|
|
|
|
AddStep(@"Add textbox", () => container.Add(new FocusedTextBox
|
|
{
|
|
RelativeSizeAxes = Axes.X,
|
|
Height = 30,
|
|
PlaceholderText = "Textbox",
|
|
HoldFocus = false,
|
|
}));
|
|
}
|
|
|
|
private class ExampleContainer : PlayerSettingsGroup
|
|
{
|
|
protected override string Title => @"example";
|
|
}
|
|
}
|
|
}
|