mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-17 13:53:57 -07:00
40 lines
814 B
JavaScript
40 lines
814 B
JavaScript
function messageBox(width, height, message, title, buttonCaptions)
|
|
{
|
|
return Engine.OpenChildPage(
|
|
"page_msgbox.xml",
|
|
{
|
|
"width": width,
|
|
"height": height,
|
|
"message": message,
|
|
"title": title,
|
|
"buttonCaptions": buttonCaptions
|
|
});
|
|
}
|
|
|
|
function timedConfirmation(width, height, message, timeParameter, timeout, title, buttonCaptions)
|
|
{
|
|
return Engine.OpenChildPage(
|
|
"page_timedconfirmation.xml",
|
|
{
|
|
"width": width,
|
|
"height": height,
|
|
"message": message,
|
|
"timeParameter": timeParameter,
|
|
"timeout": timeout,
|
|
"title": title,
|
|
"buttonCaptions": buttonCaptions
|
|
});
|
|
}
|
|
|
|
function openURL(url)
|
|
{
|
|
Engine.OpenURL(url);
|
|
|
|
messageBox(
|
|
600, 200,
|
|
sprintf(
|
|
translate("Opening %(url)s\n in default web browser. Please wait…"),
|
|
{ "url": url }
|
|
),
|
|
translate("Opening page"));
|
|
}
|