mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 04:42:58 +08:00
Renamed OnClick to OnLinkClicked to (what should be) obvious reasons
This commit is contained in:
parent
334cb3dd10
commit
2ceb073b5d
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user