1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-24 06:19:55 +08:00

Renamed OnClick to OnLinkClicked to (what should be) obvious reasons

This commit is contained in:
FreezyLemon
2017-12-07 16:30:15 +01:00
Unverified
parent 334cb3dd10
commit 2ceb073b5d
2 changed files with 5 additions and 5 deletions
@@ -47,7 +47,7 @@ namespace osu.Game.Graphics.Sprites
{
url = value;
content.Action = OnClick;
content.Action = OnLinkClicked;
}
}
}
@@ -66,6 +66,6 @@ namespace osu.Game.Graphics.Sprites
set { Content.Colour = value; }
}
protected virtual void OnClick() => Process.Start(Url);
protected virtual void OnLinkClicked() => Process.Start(Url);
}
}
+3 -3
View File
@@ -42,7 +42,7 @@ namespace osu.Game.Online.Chat
protected override Container<Drawable> Content => content ?? base.Content;
protected override void OnClick()
protected override void OnLinkClicked()
{
var url = Url;
@@ -119,10 +119,10 @@ namespace osu.Game.Online.Chat
beatmapSetOverlay.ShowBeatmap(id);
}
else
base.OnClick();
base.OnLinkClicked();
}
else
base.OnClick();
base.OnLinkClicked();
}
private int getIdFromUrl(string url)