Ticket #2275: menu.js.v2.patch
File menu.js.v2.patch, 1.1 KB (added by , 10 years ago) |
---|
-
menu.js
111 111 { 112 112 closeMenu(); 113 113 closeOpenDialogs(); 114 openSettings( true);114 openSettings(); 115 115 } 116 116 117 117 function chatMenuButton() … … 180 180 Engine.PushGuiPage("page_savegame.xml", {"gameDataCallback": getSavedGameData, "closeCallback": resumeGame}); 181 181 } 182 182 183 function openSettings( pause)183 function openSettings() 184 184 { 185 185 getGUIObjectByName("settingsDialogPanel").hidden = false; 186 if (pause) 187 pauseGame(); 186 pauseGame(); 188 187 } 189 188 190 189 function closeSettings(resume) … … 523 522 524 523 function pauseGame() 525 524 { 526 getGUIObjectByName("pauseButtonText").caption = RESUME; 527 getGUIObjectByName("pauseOverlay").hidden = false; 528 setPaused(true); 525 if (!g_IsNetworked) // just pause the game in single player mode; ref #2275 526 { 527 getGUIObjectByName("pauseButtonText").caption = RESUME; 528 getGUIObjectByName("pauseOverlay").hidden = false; 529 setPaused(true); 530 } 529 531 } 530 532 531 533 function resumeGame()