2019-01-24 08:43:03 +00:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
2018-07-20 11:28:39 +00:00
|
|
|
|
|
2019-03-24 16:02:36 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2018-07-20 11:28:39 +00:00
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
using osu.Framework.Graphics;
|
2018-07-25 12:14:40 +00:00
|
|
|
|
using osu.Framework.Graphics.Containers;
|
2018-11-06 09:28:22 +00:00
|
|
|
|
using osu.Game.Screens.Edit.Setup.Components.LabelledComponents;
|
2018-07-20 11:28:39 +00:00
|
|
|
|
|
2019-03-24 16:02:36 +00:00
|
|
|
|
namespace osu.Game.Tests.Visual.UserInterface
|
2018-07-20 11:28:39 +00:00
|
|
|
|
{
|
|
|
|
|
[TestFixture]
|
2019-05-14 19:37:25 +00:00
|
|
|
|
public class TestSceneLabelledTextBox : OsuTestScene
|
2018-07-20 11:28:39 +00:00
|
|
|
|
{
|
|
|
|
|
public override IReadOnlyList<Type> RequiredTypes => new[]
|
|
|
|
|
{
|
|
|
|
|
typeof(LabelledTextBox),
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load()
|
|
|
|
|
{
|
2018-07-25 12:14:40 +00:00
|
|
|
|
Child = new Container
|
2018-07-20 11:28:39 +00:00
|
|
|
|
{
|
2018-07-25 12:14:40 +00:00
|
|
|
|
Anchor = Anchor.Centre,
|
|
|
|
|
Origin = Anchor.Centre,
|
|
|
|
|
RelativeSizeAxes = Axes.X,
|
|
|
|
|
Padding = new MarginPadding { Left = 150, Right = 150 },
|
|
|
|
|
Child = new LabelledTextBox
|
2018-07-20 11:28:39 +00:00
|
|
|
|
{
|
|
|
|
|
Anchor = Anchor.Centre,
|
|
|
|
|
Origin = Anchor.Centre,
|
|
|
|
|
LabelText = "Testing text",
|
2018-07-23 12:44:10 +00:00
|
|
|
|
PlaceholderText = "This is definitely working as intended",
|
2018-07-20 11:28:39 +00:00
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|