GUI cleanup.
[0ad.git] / binaries / data / mods / public / gui / common / functions_utility_error.js
blob856518f3be761bb81b11209dbaf04bfb27cc2e4c
1 function cancelOnError(msg)
3         Engine.EndGame();
5         Engine.SwitchGuiPage("page_pregame.xml");
7         if (msg)
8                 Engine.PushGuiPage("page_msgbox.xml", {
9                         "width": 500,
10                         "height": 200,
11                         "message": '[font="sans-bold-18"]' + msg + '[/font]',
12                         "title": translate("Loading Aborted"),
13                         "mode": 2
14                 });
16         Engine.ResetCursor();