mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user