1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 16:27:26 +08:00

Constrain difficulty icon tooltip to internal accessibility

This commit is contained in:
Salman Ahmed 2021-08-31 20:57:36 +03:00
parent 69c23a2371
commit 4a590a041c

View File

@ -14,7 +14,7 @@ using osuTK;
namespace osu.Game.Beatmaps.Drawables
{
public class DifficultyIconTooltip : VisibilityContainer, ITooltip<DifficultyIconTooltipContent>
internal class DifficultyIconTooltip : VisibilityContainer, ITooltip<DifficultyIconTooltipContent>
{
private readonly OsuSpriteText difficultyName, starRating;
private readonly Box background;
@ -107,7 +107,7 @@ namespace osu.Game.Beatmaps.Drawables
protected override void PopOut() => this.FadeOut(200, Easing.OutQuint);
}
public class DifficultyIconTooltipContent
internal class DifficultyIconTooltipContent
{
public readonly BeatmapInfo Beatmap;
public readonly IBindable<StarDifficulty> Difficulty;