Prepare tests and general structure to support omission of pages

This commit is contained in:
Dean Herbert
2022-01-04 18:46:44 +09:00
parent e75c9519f3
commit 86f72b71b1
3 changed files with 52 additions and 64 deletions

View File

@ -17,13 +17,13 @@ namespace osu.Game.Graphics.UserInterface.PageSelector
set => selected.Value = value;
}
public int Page { get; }
public int PageNumber { get; }
private OsuSpriteText text;
public PageSelectorPageButton(int page)
public PageSelectorPageButton(int pageNumber)
{
Page = page;
PageNumber = pageNumber;
Action = () =>
{
@ -35,7 +35,7 @@ namespace osu.Game.Graphics.UserInterface.PageSelector
protected override Drawable CreateContent() => text = new OsuSpriteText
{
Font = OsuFont.GetFont(size: 12, weight: FontWeight.SemiBold),
Text = Page.ToString(),
Text = PageNumber.ToString(),
};
[BackgroundDependencyLoader]