Refactors/renames

This commit is contained in:
Dean Herbert
2018-11-30 16:11:09 +09:00
parent 831cd3ed59
commit 3727955911
11 changed files with 77 additions and 33 deletions

View File

@ -9,6 +9,7 @@ using osu.Game.Users;
using System;
using System.Linq;
using osu.Game.Online.API.Requests.Responses;
using osu.Game.Scoring;
namespace osu.Game.Overlays.Profile.Sections.Ranks
{
@ -29,6 +30,8 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
ItemsContainer.Direction = FillDirection.Vertical;
}
private ScoreManager scoreManager;
protected override void ShowMore()
{
base.ShowMore();
@ -37,7 +40,7 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
request.Success += scores => Schedule(() =>
{
foreach (var s in scores)
s.ApplyRuleset(Rulesets.GetRuleset(s.OnlineRulesetID));
s.Ruleset = Rulesets.GetRuleset(s.RulesetID);
ShowMoreButton.FadeTo(scores.Count == ItemsPerPage ? 1 : 0);
ShowMoreLoading.Hide();