mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
TestScene improvements
This commit is contained in:
@ -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()
|
||||
|
@ -46,6 +46,7 @@ namespace osu.Game.Graphics.UserInterface.PageSelector
|
||||
{
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Direction = FillDirection.Horizontal,
|
||||
Spacing = new Vector2(3, 0),
|
||||
Children = new Drawable[]
|
||||
{
|
||||
name = new OsuSpriteText
|
||||
|
Reference in New Issue
Block a user