mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 09:42:55 +08:00
Improve text on external link warning dialog
This commit is contained in:
parent
8196c0026d
commit
87a331fdde
@ -10,6 +10,7 @@ using osu.Framework.Platform;
|
|||||||
using osu.Game.Configuration;
|
using osu.Game.Configuration;
|
||||||
using osu.Game.Overlays;
|
using osu.Game.Overlays;
|
||||||
using osu.Game.Overlays.Dialog;
|
using osu.Game.Overlays.Dialog;
|
||||||
|
using osu.Game.Resources.Localisation.Web;
|
||||||
|
|
||||||
namespace osu.Game.Online.Chat
|
namespace osu.Game.Online.Chat
|
||||||
{
|
{
|
||||||
@ -44,8 +45,8 @@ namespace osu.Game.Online.Chat
|
|||||||
{
|
{
|
||||||
public ExternalLinkDialog(string url, Action openExternalLinkAction, Action copyExternalLinkAction)
|
public ExternalLinkDialog(string url, Action openExternalLinkAction, Action copyExternalLinkAction)
|
||||||
{
|
{
|
||||||
HeaderText = "Just checking...";
|
HeaderText = "You are leaving osu!";
|
||||||
BodyText = $"You are about to leave osu! and open the following link in a web browser:\n\n{url}";
|
BodyText = $"Are you sure you want to open the following link in a web browser:\n\n{url}";
|
||||||
|
|
||||||
Icon = FontAwesome.Solid.ExclamationTriangle;
|
Icon = FontAwesome.Solid.ExclamationTriangle;
|
||||||
|
|
||||||
@ -53,17 +54,17 @@ namespace osu.Game.Online.Chat
|
|||||||
{
|
{
|
||||||
new PopupDialogOkButton
|
new PopupDialogOkButton
|
||||||
{
|
{
|
||||||
Text = @"Yes. Go for it.",
|
Text = @"Open in browser",
|
||||||
Action = openExternalLinkAction
|
Action = openExternalLinkAction
|
||||||
},
|
},
|
||||||
new PopupDialogCancelButton
|
new PopupDialogCancelButton
|
||||||
{
|
{
|
||||||
Text = @"Copy URL to the clipboard instead.",
|
Text = @"Copy URL to the clipboard",
|
||||||
Action = copyExternalLinkAction
|
Action = copyExternalLinkAction
|
||||||
},
|
},
|
||||||
new PopupDialogCancelButton
|
new PopupDialogCancelButton
|
||||||
{
|
{
|
||||||
Text = @"No! Abort mission!"
|
Text = CommonStrings.ButtonsCancel,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user