mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-25 13:31:39 +00:00
Refactor build information getters and remove the useless code.
Reviewed By: elexis, Stan Tested By: Stan Differential Revision: https://code.wildfiregames.com/D1348 This was SVN commit r22035.
This commit is contained in:
@@ -224,3 +224,11 @@ function hideRemaining(parentName, start = 0)
|
||||
for (let i = start; i < objects.length; ++i)
|
||||
objects[i].hidden = true;
|
||||
}
|
||||
|
||||
function getBuildString()
|
||||
{
|
||||
return sprintf(translate("Build: %(buildDate)s (%(revision)s)"), {
|
||||
"buildDate": Engine.GetBuildDate(),
|
||||
"revision": Engine.GetBuildRevision()
|
||||
});
|
||||
}
|
||||
|
||||
@@ -193,14 +193,6 @@ function blendSubmenuIntoMain(topPosition, bottomPosition)
|
||||
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()
|
||||
{
|
||||
closeMenu();
|
||||
|
||||
@@ -1462,14 +1462,6 @@ function playAmbient()
|
||||
Engine.PlayAmbientSound(pickRandom(g_Ambient), true);
|
||||
}
|
||||
|
||||
function getBuildString()
|
||||
{
|
||||
return sprintf(translate("Build: %(buildDate)s (%(revision)s)"), {
|
||||
"buildDate": Engine.GetBuildTimestamp(0),
|
||||
"revision": Engine.GetBuildTimestamp(2)
|
||||
});
|
||||
}
|
||||
|
||||
function showTimeWarpMessageBox()
|
||||
{
|
||||
messageBox(
|
||||
|
||||
Reference in New Issue
Block a user