Implement proper PageSelectorItem

This commit is contained in:
Andrei Zavatski
2020-01-04 21:14:56 +03:00
parent 70387c19f3
commit 9af9da039d
5 changed files with 222 additions and 298 deletions

View File

@ -14,7 +14,9 @@ namespace osu.Game.Tests.Visual.UserInterface
public override IReadOnlyList<Type> RequiredTypes => new[]
{
typeof(PageSelector),
typeof(DrawablePage)
typeof(DrawablePage),
typeof(PageSelectorButton),
typeof(PageSelectorItem)
};
private readonly PageSelector pageSelector;
@ -42,6 +44,7 @@ namespace osu.Game.Tests.Visual.UserInterface
public void TestPageSelectorValues()
{
AddStep("10 max pages", () => setMaxPages(10));
AddStep("11 max pages", () => setMaxPages(11));
AddStep("200 max pages, current 199", () =>
{
setMaxPages(200);