1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 09:02:58 +08:00

Tidy up DifficultyIcon

This commit is contained in:
Dean Herbert 2022-06-23 16:55:22 +09:00
parent d6b073ebad
commit 3a83e5684c

View File

@ -26,8 +26,6 @@ namespace osu.Game.Beatmaps.Drawables
{
public class DifficultyIcon : CompositeDrawable, IHasCustomTooltip<DifficultyIconTooltipContent>
{
private readonly Container iconContainer;
/// <summary>
/// Size of this difficulty icon.
/// </summary>
@ -46,14 +44,19 @@ namespace osu.Game.Beatmaps.Drawables
[CanBeNull]
private readonly IReadOnlyList<Mod> mods;
[Resolved]
private IRulesetStore rulesets { get; set; }
private readonly bool shouldShowTooltip;
private readonly bool performBackgroundDifficultyLookup;
private readonly Bindable<StarDifficulty> difficultyBindable = new Bindable<StarDifficulty>();
private Drawable background;
private readonly Container iconContainer;
private readonly Bindable<StarDifficulty> difficultyBindable = new Bindable<StarDifficulty>();
/// <summary>
/// Creates a new <see cref="DifficultyIcon"/> with a given <see cref="RulesetInfo"/> and <see cref="Mod"/> combination.
/// </summary>
@ -87,9 +90,6 @@ namespace osu.Game.Beatmaps.Drawables
InternalChild = iconContainer = new Container { Size = new Vector2(20f) };
}
[Resolved]
private IRulesetStore rulesets { get; set; }
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{