mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:52:53 +08:00
Move PageSelector to another namespace and organize TestScene
This commit is contained in:
parent
6eebb11a92
commit
6fbbee3093
@ -3,8 +3,9 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using osu.Game.Graphics.UserInterface;
|
||||
using NUnit.Framework;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Game.Graphics.UserInterface.PageSelector;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
@ -19,12 +20,19 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
|
||||
public TestScenePageSelector()
|
||||
{
|
||||
Child = pageSelector = new PageSelector
|
||||
AddRange(new Drawable[]
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
};
|
||||
pageSelector = new PageSelector
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestPageSelectorValues()
|
||||
{
|
||||
AddStep("10 max pages", () => setMaxPages(10));
|
||||
AddStep("200 max pages, current 199", () =>
|
||||
{
|
||||
|
@ -16,7 +16,7 @@ using osu.Framework.Extensions.IEnumerableExtensions;
|
||||
using osu.Game.Graphics.Sprites;
|
||||
using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
namespace osu.Game.Graphics.UserInterface.PageSelector
|
||||
{
|
||||
public class PageSelector : CompositeDrawable
|
||||
{
|
Loading…
Reference in New Issue
Block a user