Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/mod/gui/common/functions_msgbox.js
Show All 9 Lines | "page_msgbox.xml", | ||||
"buttonCaptions": mbButtonCaptions | "buttonCaptions": mbButtonCaptions | ||||
}, | }, | ||||
btnCode => { | btnCode => { | ||||
if (mbBtnCode !== undefined && mbBtnCode[btnCode]) | if (mbBtnCode !== undefined && mbBtnCode[btnCode]) | ||||
mbBtnCode[btnCode](mbCallbackArgs ? mbCallbackArgs[btnCode] : undefined); | mbBtnCode[btnCode](mbCallbackArgs ? mbCallbackArgs[btnCode] : undefined); | ||||
}); | }); | ||||
} | } | ||||
function timedConfirmation(width, height, message, timeout, title, buttonCaptions, btnCode, callbackArgs) | function timedConfirmation(width, height, message, timeParameter, timeout, title, buttonCaptions, btnCode, callbackArgs) | ||||
{ | { | ||||
Engine.PushGuiPage( | Engine.PushGuiPage( | ||||
"page_timedconfirmation.xml", | "page_timedconfirmation.xml", | ||||
{ | { | ||||
"width": width, | "width": width, | ||||
"height": height, | "height": height, | ||||
"message": message, | "message": message, | ||||
"timeParameter": timeParameter, | |||||
"timeout": timeout, | "timeout": timeout, | ||||
"title": title, | "title": title, | ||||
"buttonCaptions": buttonCaptions | "buttonCaptions": buttonCaptions | ||||
}, | }, | ||||
button => { | button => { | ||||
if (btnCode !== undefined && btnCode[button]) | if (btnCode !== undefined && btnCode[button]) | ||||
btnCode[button](callbackArgs ? callbackArgs[button] : undefined); | btnCode[button](callbackArgs ? callbackArgs[button] : undefined); | ||||
}); | }); | ||||
Show All 14 Lines |
Wildfire Games · Phabricator