Move rulesets property to PaginatedProfileSubsection

This commit is contained in:
Andrei Zavatski 2020-11-21 22:49:56 +03:00
parent 036e03b180
commit 11c3ccfcaa
2 changed files with 5 additions and 6 deletions

View File

@ -12,6 +12,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading;
using osu.Game.Graphics.UserInterface;
using osu.Game.Rulesets;
namespace osu.Game.Overlays.Profile.Sections
{
@ -20,6 +21,9 @@ namespace osu.Game.Overlays.Profile.Sections
[Resolved]
private IAPIProvider api { get; set; }
[Resolved]
protected RulesetStore Rulesets { get; private set; }
protected int VisiblePages;
protected int ItemsPerPage;

View File

@ -7,7 +7,6 @@ using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
using osu.Game.Rulesets;
using osu.Game.Users;
using JetBrains.Annotations;
@ -17,8 +16,6 @@ namespace osu.Game.Overlays.Profile.Sections
{
protected readonly Bindable<User> User = new Bindable<User>();
protected RulesetStore Rulesets { get; private set; }
protected OsuSpriteText Missing { get; private set; }
private readonly string headerText;
@ -36,7 +33,7 @@ namespace osu.Game.Overlays.Profile.Sections
}
[BackgroundDependencyLoader]
private void load(RulesetStore rulesets)
private void load()
{
RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y;
@ -56,8 +53,6 @@ namespace osu.Game.Overlays.Profile.Sections
Alpha = 0,
},
};
Rulesets = rulesets;
}
protected override void LoadComplete()