mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 17:02:55 +08:00
Clean up a few remaining stragglers.
This commit is contained in:
parent
4a149c4ab8
commit
ddce3c157f
@ -54,7 +54,7 @@ namespace osu.Game.Beatmaps
|
|||||||
/// Calculates the star difficulty for this Beatmap.
|
/// Calculates the star difficulty for this Beatmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>The star difficulty.</returns>
|
/// <returns>The star difficulty.</returns>
|
||||||
public double CalculateStarDifficulty() => RulesetCollection.GetRuleset(BeatmapInfo.Mode).CreateDifficultyCalculator(this).Calculate();
|
public double CalculateStarDifficulty() => BeatmapInfo.Ruleset.CreateDifficultyCalculator(this).Calculate();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Constructs a new beatmap.
|
/// Constructs a new beatmap.
|
||||||
|
@ -45,7 +45,7 @@ namespace osu.Game.Beatmaps.Drawables
|
|||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
TextSize = Size.X,
|
TextSize = Size.X,
|
||||||
Colour = Color4.White,
|
Colour = Color4.White,
|
||||||
Icon = RulesetCollection.GetRuleset((int)beatmap.Mode).Icon
|
Icon = beatmap.Ruleset.Icon
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -100,7 +100,7 @@ namespace osu.Game.Screens.Select
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
//get statistics fromt he current ruleset.
|
//get statistics fromt he current ruleset.
|
||||||
labels.AddRange(RulesetCollection.GetRuleset(beatmap.BeatmapInfo.Mode).GetBeatmapStatistics(beatmap).Select(s => new InfoLabel(s)));
|
labels.AddRange(beatmap.BeatmapInfo.Ruleset.GetBeatmapStatistics(beatmap).Select(s => new InfoLabel(s)));
|
||||||
}
|
}
|
||||||
|
|
||||||
AlwaysPresent = true;
|
AlwaysPresent = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user