mirror of
https://github.com/osukey/osukey.git
synced 2025-05-09 23:57:18 +09:00
Make TabControl test label more clear
This commit is contained in:
parent
4d84bf7350
commit
58fc0a2622
@ -1,14 +1,12 @@
|
|||||||
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
using System.Diagnostics;
|
using OpenTK;
|
||||||
using osu.Framework.Graphics;
|
|
||||||
using osu.Framework.Graphics.Containers;
|
|
||||||
using osu.Framework.Graphics.Primitives;
|
using osu.Framework.Graphics.Primitives;
|
||||||
using osu.Framework.Screens.Testing;
|
using osu.Framework.Screens.Testing;
|
||||||
using osu.Game.Graphics.Sprites;
|
using osu.Game.Graphics.Sprites;
|
||||||
using osu.Game.Screens.Select.Filter;
|
|
||||||
using osu.Game.Graphics.UserInterface;
|
using osu.Game.Graphics.UserInterface;
|
||||||
|
using osu.Game.Screens.Select.Filter;
|
||||||
|
|
||||||
namespace osu.Desktop.VisualTests.Tests
|
namespace osu.Desktop.VisualTests.Tests
|
||||||
{
|
{
|
||||||
@ -22,24 +20,16 @@ namespace osu.Desktop.VisualTests.Tests
|
|||||||
|
|
||||||
OsuSpriteText text;
|
OsuSpriteText text;
|
||||||
OsuTabControl<GroupMode> filter;
|
OsuTabControl<GroupMode> filter;
|
||||||
|
Add(filter = new OsuTabControl<GroupMode>
|
||||||
Add(new FillFlowContainer
|
|
||||||
{
|
|
||||||
Direction = FillDirection.Horizontal,
|
|
||||||
AutoSizeAxes = Axes.Both,
|
|
||||||
Children = new Drawable[]
|
|
||||||
{
|
|
||||||
filter = new OsuTabControl<GroupMode>
|
|
||||||
{
|
{
|
||||||
Width = 229,
|
Width = 229,
|
||||||
AutoSort = true
|
AutoSort = true
|
||||||
},
|
});
|
||||||
text = new OsuSpriteText
|
Add(text = new OsuSpriteText
|
||||||
{
|
{
|
||||||
Text = "None",
|
Text = "None",
|
||||||
Margin = new MarginPadding(4)
|
Margin = new MarginPadding(4),
|
||||||
}
|
Position = new Vector2(275, 5)
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
filter.PinTab(GroupMode.All);
|
filter.PinTab(GroupMode.All);
|
||||||
@ -47,8 +37,7 @@ namespace osu.Desktop.VisualTests.Tests
|
|||||||
|
|
||||||
filter.ValueChanged += (sender, mode) =>
|
filter.ValueChanged += (sender, mode) =>
|
||||||
{
|
{
|
||||||
Debug.WriteLine($"Selected {mode}");
|
text.Text = "Currently Selected: " + mode.ToString();
|
||||||
text.Text = mode.ToString();
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user