mirror of
https://github.com/ppy/osu
synced 2025-01-09 23:59:44 +00:00
Move rulesets property to PaginatedProfileSubsection
This commit is contained in:
parent
036e03b180
commit
11c3ccfcaa
@ -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;
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user