Index: binaries/data/mods/public/gui/pregame/mainmenu.xml =================================================================== --- binaries/data/mods/public/gui/pregame/mainmenu.xml +++ binaries/data/mods/public/gui/pregame/mainmenu.xml @@ -241,6 +241,24 @@ size="0 64 100% 92" tooltip_style="pgToolTip" > + Replays + Playback previous games. + + closeMenu(); + Engine.SwitchGuiPage("page_replaymenu.xml", { + "replaySelectionData": { + "filters": { + "singleplayer": "Singleplayer" + }}}); + + + + Load Game Click here to load a saved game. @@ -248,7 +266,6 @@ Engine.PushGuiPage("page_loadgame.xml", { "type": "offline" }); - @@ -292,6 +309,24 @@ size="0 64 100% 92" tooltip_style="pgToolTip" > + Replays + Playback previous games. + + closeMenu(); + Engine.SwitchGuiPage("page_replaymenu.xml", { + "replaySelectionData": { + "filters": { + "singleplayer": "Multiplayer" + }}}); + + + + Game Lobby Launch the multiplayer lobby. @@ -306,10 +341,10 @@ } - + - - + - Replays - Playback previous games. - - closeMenu(); - Engine.SwitchGuiPage("page_replaymenu.xml"); - - - - - Scenario Editor - Open the Atlas Scenario Editor in a new window. You can run this more reliably by starting the game with the command-line argument "-editor". - - pressedScenarioEditorButton(); - - - - Welcome Screen @@ -389,7 +397,7 @@ Mod Selection @@ -465,7 +473,7 @@ Challenge the computer player to a single player match. closeMenu(); - openMenu("submenuSinglePlayer", (this.parent.size.top+this.size.top), (this.size.bottom-this.size.top), 3); + openMenu("submenuSinglePlayer", (this.parent.size.top+this.size.top), (this.size.bottom-this.size.top), 4); @@ -480,22 +488,36 @@ Fight against one or more human players in a multiplayer game. closeMenu(); - openMenu("submenuMultiplayer", (this.parent.size.top+this.size.top), (this.size.bottom-this.size.top), 3); + openMenu("submenuMultiplayer", (this.parent.size.top+this.size.top), (this.size.bottom-this.size.top), 4); - + - Tools & Options - Game options and scenario design tools. + Scenario Editor + Open the Atlas Scenario Editor in a new window. You can run this more reliably by starting the game with the command-line argument "-editor". + + pressedScenarioEditorButton(); + + + + + + Options + Game options. closeMenu(); - openMenu("submenuToolsAndOptions", (this.parent.size.top+this.size.top), (this.size.bottom-this.size.top), 6); + openMenu("submenuOptions", (this.parent.size.top+this.size.top), (this.size.bottom-this.size.top), 4); @@ -503,7 +525,7 @@ Exit @@ -513,7 +535,7 @@ - Index: binaries/data/mods/public/gui/replaymenu/replay_filters.js =================================================================== --- binaries/data/mods/public/gui/replaymenu/replay_filters.js +++ binaries/data/mods/public/gui/replaymenu/replay_filters.js @@ -23,19 +23,19 @@ */ function initFilters(filters) { - Engine.GetGUIObjectByName("compatibilityFilter").checked = !filters || filters.compatibility; + Engine.GetGUIObjectByName("compatibilityFilter").checked = !filters || !("compatibility" in filters) || filters.compatibility; if (filters && filters.playernames) Engine.GetGUIObjectByName("playersFilter").caption = filters.playernames; - initDateFilter(filters && filters.date); - initMapSizeFilter(filters && filters.mapSize); - initMapNameFilter(filters && filters.mapName); - initPopCapFilter(filters && filters.popCap); - initDurationFilter(filters && filters.duration); - initSingleplayerFilter(filters && filters.singleplayer); - initVictoryConditionFilter(filters && filters.victoryCondition); - initRatedGamesFilter(filters && filters.ratedGames); + initDateFilter(filters && filters.date || undefined); + initMapSizeFilter(filters && filters.mapSize || undefined); + initMapNameFilter(filters && filters.mapName || undefined); + initPopCapFilter(filters && filters.popCap || undefined); + initDurationFilter(filters && filters.duration || undefined); + initSingleplayerFilter(filters && filters.singleplayer || undefined); + initVictoryConditionFilter(filters && filters.victoryCondition || undefined); + initRatedGamesFilter(filters && filters.ratedGames || undefined); } /**