TestScene improvements

This commit is contained in:
Andrei Zavatski
2020-01-04 22:25:08 +03:00
parent 37482b2ad4
commit d3c2dc43bd
3 changed files with 27 additions and 37 deletions

View File

@ -86,19 +86,10 @@ namespace osu.Game.Graphics.UserInterface.PageSelector
for (int i = 1; i <= MaxPages.Value; i++)
addDrawablePage(i);
if (CurrentPage.Value > MaxPages.Value)
{
CurrentPage.Value = MaxPages.Value;
return;
}
if (CurrentPage.Value < 1)
{
if (CurrentPage.Value == 1)
CurrentPage.TriggerChange();
else
CurrentPage.Value = 1;
return;
}
CurrentPage.TriggerChange();
}
private void updateButtonsState()