Renamed the IHasHoverSounds interface to ICanDisableHoverSounds and made it so that if the interface is not implemented, it is just ignored (samples will always be played). If it is implemented, the ShouldPlayHoverSound bool is decisive of whether sounds are played or not

This commit is contained in:
FreezyLemon
2017-12-07 19:52:40 +01:00
parent c5a7f5b163
commit 68255095a6
3 changed files with 10 additions and 8 deletions

View File

@ -221,7 +221,7 @@ namespace osu.Game.Online.Chat
Content.Colour = urlColour;
}
private class ChatHoverContainer : OsuHoverContainer, IHasHoverSounds
private class ChatHoverContainer : OsuHoverContainer, ICanDisableHoverSounds
{
public bool ShouldPlayHoverSound => ((ChatLink)Parent).SameLinkSprites.All(sprite => !sprite.IsHovered);
}