Remove OsuScore and change the way statistics are stored (dynamic dictionary).

This commit is contained in:
Dean Herbert
2017-04-20 11:02:56 +09:00
parent 3e65cab9b7
commit 6cf026e5c1
8 changed files with 23 additions and 44 deletions

View File

@ -18,6 +18,7 @@ using osu.Game.Users;
using OpenTK;
using OpenTK.Graphics;
using System;
using System.Collections.Generic;
using osu.Framework.Extensions.Color4Extensions;
using osu.Game.Beatmaps;
using osu.Game.Screens.Play;
@ -187,9 +188,9 @@ namespace osu.Game.Screens.Ranking
private class DrawableScoreStatistic : Container
{
private readonly ScoreStatistic statistic;
private readonly KeyValuePair<string, dynamic> statistic;
public DrawableScoreStatistic(ScoreStatistic statistic)
public DrawableScoreStatistic(KeyValuePair<string, dynamic> statistic)
{
this.statistic = statistic;
@ -210,7 +211,7 @@ namespace osu.Game.Screens.Ranking
Origin = Anchor.TopCentre,
},
new SpriteText {
Text = statistic.Name,
Text = statistic.Key,
Colour = colours.Gray7,
Font = @"Exo2.0-Bold",
Y = 26,