Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/pregame/mainmenu.js
Show First 20 Lines • Show All 236 Lines • ▼ Show 20 Lines | |||||
* Sizes right border on main menu panel to match the submenu. | * Sizes right border on main menu panel to match the submenu. | ||||
*/ | */ | ||||
function blendSubmenuIntoMain(topPosition, bottomPosition) | function blendSubmenuIntoMain(topPosition, bottomPosition) | ||||
{ | { | ||||
Engine.GetGUIObjectByName("MainMenuPanelRightBorderTop").size = "100%-2 0 100% " + (topPosition + MARGIN); | Engine.GetGUIObjectByName("MainMenuPanelRightBorderTop").size = "100%-2 0 100% " + (topPosition + MARGIN); | ||||
Engine.GetGUIObjectByName("MainMenuPanelRightBorderBottom").size = "100%-2 " + (bottomPosition) + " 100% 100%"; | Engine.GetGUIObjectByName("MainMenuPanelRightBorderBottom").size = "100%-2 " + (bottomPosition) + " 100% 100%"; | ||||
} | } | ||||
function getBuildString() | |||||
{ | |||||
return sprintf(translate("Build: %(buildDate)s (%(revision)s)"), { | |||||
"buildDate": Engine.GetBuildTimestamp(0), | |||||
"revision": Engine.GetBuildTimestamp(2) | |||||
}); | |||||
} | |||||
function exitGamePressed() | function exitGamePressed() | ||||
{ | { | ||||
closeMenu(); | closeMenu(); | ||||
messageBox( | messageBox( | ||||
400, 200, | 400, 200, | ||||
translate("Are you sure you want to quit 0 A.D.?"), | translate("Are you sure you want to quit 0 A.D.?"), | ||||
translate("Confirmation"), | translate("Confirmation"), | ||||
Show All 39 Lines |
Wildfire Games · Phabricator