mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 10:02:59 +08:00
Made default link ID -1 (if no link is present) because linkId is currently being set to link.index which can be 0.
This commit is contained in:
parent
cf96323980
commit
fd13bacf4a
@ -14,7 +14,7 @@ namespace osu.Game.Online.Chat
|
|||||||
{
|
{
|
||||||
public class ChatLinkSpriteText : OsuLinkSpriteText
|
public class ChatLinkSpriteText : OsuLinkSpriteText
|
||||||
{
|
{
|
||||||
public int LinkId;
|
public int LinkId = -1;
|
||||||
|
|
||||||
private Color4 hoverColour;
|
private Color4 hoverColour;
|
||||||
private Color4 urlColour;
|
private Color4 urlColour;
|
||||||
@ -57,6 +57,8 @@ namespace osu.Game.Online.Chat
|
|||||||
{
|
{
|
||||||
hoverColour = colours.Yellow;
|
hoverColour = colours.Yellow;
|
||||||
urlColour = colours.Blue;
|
urlColour = colours.Blue;
|
||||||
|
if (LinkId != -1)
|
||||||
|
Content.Colour = urlColour;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user