diff --git a/binaries/data/config/default.cfg b/binaries/data/config/default.cfg
index f24fa9215c..74a88e151c 100644
--- a/binaries/data/config/default.cfg
+++ b/binaries/data/config/default.cfg
@@ -401,7 +401,7 @@ toggle = "Alt+G" ; Toggle visibility of session GUI
menu.toggle = "F10" ; Toggle in-game menu
diplomacy.toggle = "Ctrl+H" ; Toggle in-game diplomacy page
barter.toggle = "Ctrl+B" ; Toggle in-game barter/trade page
-objectives.toggle = "Ctrl+O" ; Toggle in-game objectives page
+matchsettings.toggle = "Ctrl+O" ; Toggle in-game match settings page
tutorial.toggle = "Ctrl+P" ; Toggle in-game tutorial panel
[hotkey.session.savedgames]
diff --git a/binaries/data/mods/public/art/textures/ui/session/icons/objectives.png b/binaries/data/mods/public/art/textures/ui/session/icons/match-settings.png
similarity index 100%
rename from binaries/data/mods/public/art/textures/ui/session/icons/objectives.png
rename to binaries/data/mods/public/art/textures/ui/session/icons/match-settings.png
diff --git a/binaries/data/mods/public/gui/hotkeys/spec/ingamegui.json b/binaries/data/mods/public/gui/hotkeys/spec/ingamegui.json
index 10eceb552c..fc9fc9988c 100644
--- a/binaries/data/mods/public/gui/hotkeys/spec/ingamegui.json
+++ b/binaries/data/mods/public/gui/hotkeys/spec/ingamegui.json
@@ -59,9 +59,9 @@
"name": "Toggle barter",
"desc": "Toggle in-game barter/trade page."
},
- "session.gui.objectives.toggle": {
- "name": "Toggle objectives",
- "desc": "Toggle in-game objectives page."
+ "session.gui.matchsettings.toggle": {
+ "name": "Toggle match settings",
+ "desc": "Toggle in-game match settings page."
},
"session.gui.tutorial.toggle": {
"name": "Toggle tutorial",
diff --git a/binaries/data/mods/public/gui/manual/intro.txt b/binaries/data/mods/public/gui/manual/intro.txt
index 3ce89e1613..798bf7eb9d 100644
--- a/binaries/data/mods/public/gui/manual/intro.txt
+++ b/binaries/data/mods/public/gui/manual/intro.txt
@@ -93,7 +93,7 @@ You may change hotkeys in [font="sans-bold-14"]Options > Hotkeys[font="sans-14"]
hotkey.lobby – Show the multiplayer lobby in a dialog window
hotkey.session.gui.diplomacy.toggle – Toggle in-game diplomacy panel
hotkey.session.gui.barter.toggle – Toggle in-game barter and trade panel
- hotkey.session.gui.objectives.toggle – Toggle in-game objectives panel
+ hotkey.session.gui.matchsettings.toggle – Toggle in-game match settings panel
hotkey.session.gui.tutorial.toggle – Toggle in-game tutorial panel
hotkey.structree – Toggle structure tree panel
hotkey.civinfo – Toggle civilization info panel
diff --git a/binaries/data/mods/public/gui/session/TopPanel.js b/binaries/data/mods/public/gui/session/TopPanel.js
index e3909e547c..126526bd38 100644
--- a/binaries/data/mods/public/gui/session/TopPanel.js
+++ b/binaries/data/mods/public/gui/session/TopPanel.js
@@ -3,7 +3,7 @@
*/
class TopPanel
{
- constructor(playerViewControl, diplomacyDialog, tradeDialog, objectivesDialog, gameSpeedControl)
+ constructor(playerViewControl, diplomacyDialog, tradeDialog, matchSettingsDialog, gameSpeedControl)
{
this.counterManager = new CounterManager(playerViewControl);
this.civIcon = new CivIcon(playerViewControl);
@@ -13,7 +13,7 @@ class TopPanel
this.diplomacyDialogButton = new DiplomacyDialogButton(playerViewControl, diplomacyDialog);
this.gameSpeedButton = new GameSpeedButton(gameSpeedControl);
- this.objectivesDialogButton = new ObjectivesDialogButton(objectivesDialog);
+ this.matchSettingsDialogButton = new MatchSettingsDialogButton(matchSettingsDialog);
this.tradeDialogButton = new TradeDialogButton(playerViewControl, tradeDialog);
}
}
diff --git a/binaries/data/mods/public/gui/session/objectives/ObjectivesDialog.js b/binaries/data/mods/public/gui/session/match_settings/MatchSettingsDialog.js
similarity index 55%
rename from binaries/data/mods/public/gui/session/objectives/ObjectivesDialog.js
rename to binaries/data/mods/public/gui/session/match_settings/MatchSettingsDialog.js
index 45e72dbec4..cbb347e38e 100644
--- a/binaries/data/mods/public/gui/session/objectives/ObjectivesDialog.js
+++ b/binaries/data/mods/public/gui/session/match_settings/MatchSettingsDialog.js
@@ -1,17 +1,17 @@
-class ObjectivesDialog
+class MatchSettingsDialog
{
constructor(playerViewControl, mapCache)
{
this.gameDescription = Engine.GetGUIObjectByName("gameDescription");
- this.objectivesPlayerstate = Engine.GetGUIObjectByName("objectivesPlayerstate");
- this.objectivesPanel = Engine.GetGUIObjectByName("objectivesPanel");
- this.objectivesTitle = Engine.GetGUIObjectByName("objectivesTitle");
+ this.matchSettingsPlayerstate = Engine.GetGUIObjectByName("matchSettingsPlayerstate");
+ this.matchSettingsPanel = Engine.GetGUIObjectByName("matchSettingsPanel");
+ this.matchSettingsTitle = Engine.GetGUIObjectByName("matchSettingsTitle");
// TODO: atlas should support this
if (!Engine.IsAtlasRunning())
Engine.GetGUIObjectByName("gameDescriptionText").caption = getGameDescription(g_InitAttributes, mapCache);
- Engine.GetGUIObjectByName("closeObjectives").onPress = this.close.bind(this);
+ Engine.GetGUIObjectByName("matchSettingsCloseButton").onPress = this.close.bind(this);
registerPlayersInitHandler(this.rebuild.bind(this));
registerPlayersFinishedHandler(this.rebuild.bind(this));
@@ -20,17 +20,17 @@ class ObjectivesDialog
open()
{
- this.objectivesPanel.hidden = false;
+ this.matchSettingsPanel.hidden = false;
}
close()
{
- this.objectivesPanel.hidden = true;
+ this.matchSettingsPanel.hidden = true;
}
isOpen()
{
- return !this.objectivesPanel.hidden;
+ return !this.matchSettingsPanel.hidden;
}
toggle()
@@ -49,11 +49,11 @@ class ObjectivesDialog
const playerState = player && player.state;
const isActive = !playerState || playerState == "active";
- this.objectivesPlayerstate.hidden = isActive;
- this.objectivesPlayerstate.caption = g_PlayerStateMessages[playerState] || "";
+ this.matchSettingsPlayerstate.hidden = isActive;
+ this.matchSettingsPlayerstate.caption = g_PlayerStateMessages[playerState] || "";
const size = this.gameDescription.size;
- size.top = (isActive ? this.objectivesTitle : this.objectivesPlayerstate).size.bottom;
+ size.top = (isActive ? this.matchSettingsTitle : this.matchSettingsPlayerstate).size.bottom;
this.gameDescription.size = size;
}
}
diff --git a/binaries/data/mods/public/gui/session/objectives/ObjectivesDialog.xml b/binaries/data/mods/public/gui/session/match_settings/MatchSettingsDialog.xml
similarity index 70%
rename from binaries/data/mods/public/gui/session/objectives/ObjectivesDialog.xml
rename to binaries/data/mods/public/gui/session/match_settings/MatchSettingsDialog.xml
index 4f352ed730..97fbb0622c 100644
--- a/binaries/data/mods/public/gui/session/objectives/ObjectivesDialog.xml
+++ b/binaries/data/mods/public/gui/session/match_settings/MatchSettingsDialog.xml
@@ -1,22 +1,22 @@
-
+
Close
diff --git a/binaries/data/mods/public/gui/session/session.js b/binaries/data/mods/public/gui/session/session.js
index 17f4d3c6bd..7288693339 100644
--- a/binaries/data/mods/public/gui/session/session.js
+++ b/binaries/data/mods/public/gui/session/session.js
@@ -16,11 +16,11 @@ var g_DeveloperOverlay;
var g_DiplomacyColors;
var g_DiplomacyDialog;
var g_GameSpeedControl;
+var g_MatchSettingsDialog;
var g_Menu;
var g_MiniMapPanel;
var g_NetworkStatusOverlay;
var g_NetworkDelayOverlay;
-var g_ObjectivesDialog;
var g_OutOfSyncNetwork;
var g_OutOfSyncReplay;
var g_PanelEntityManager;
@@ -291,11 +291,11 @@ function init(initData, hotloadData)
g_DeveloperOverlay = new DeveloperOverlay(g_PlayerViewControl, g_Selection);
g_DiplomacyDialog = new DiplomacyDialog(g_PlayerViewControl, g_DiplomacyColors);
g_GameSpeedControl = new GameSpeedControl(g_PlayerViewControl);
+ g_MatchSettingsDialog = new MatchSettingsDialog(g_PlayerViewControl, mapCache);
g_Menu = new Menu(g_PauseControl, g_PlayerViewControl, g_Chat);
g_MiniMapPanel = new MiniMapPanel(g_PlayerViewControl, g_DiplomacyColors, g_WorkerTypes);
g_NetworkStatusOverlay = new NetworkStatusOverlay();
g_NetworkDelayOverlay = new NetworkDelayOverlay();
- g_ObjectivesDialog = new ObjectivesDialog(g_PlayerViewControl, mapCache);
g_OutOfSyncNetwork = new OutOfSyncNetwork();
g_OutOfSyncReplay = new OutOfSyncReplay();
g_PanelEntityManager = new PanelEntityManager(g_PlayerViewControl, g_Selection, g_PanelEntityOrder);
@@ -305,7 +305,7 @@ function init(initData, hotloadData)
g_RangeOverlayManager = new RangeOverlayManager(g_Selection);
g_ResearchProgress = new ResearchProgress(g_PlayerViewControl, g_Selection);
g_TradeDialog = new TradeDialog(g_PlayerViewControl);
- g_TopPanel = new TopPanel(g_PlayerViewControl, g_DiplomacyDialog, g_TradeDialog, g_ObjectivesDialog, g_GameSpeedControl);
+ g_TopPanel = new TopPanel(g_PlayerViewControl, g_DiplomacyDialog, g_TradeDialog, g_MatchSettingsDialog, g_GameSpeedControl);
g_TimeNotificationOverlay = new TimeNotificationOverlay(g_PlayerViewControl);
initBatchTrain();
@@ -515,7 +515,7 @@ function closeOpenDialogs()
g_Menu.close();
g_Chat.closePage();
g_DiplomacyDialog.close();
- g_ObjectivesDialog.close();
+ g_MatchSettingsDialog.close();
g_TradeDialog.close();
}
diff --git a/binaries/data/mods/public/gui/session/session.xml b/binaries/data/mods/public/gui/session/session.xml
index f4eb870fc9..4459cf0bee 100644
--- a/binaries/data/mods/public/gui/session/session.xml
+++ b/binaries/data/mods/public/gui/session/session.xml
@@ -13,9 +13,9 @@
+
-
@@ -55,7 +55,7 @@
-
+
diff --git a/binaries/data/mods/public/gui/session/top_panel/IconButtons/MatchSettingsDialogButton.js b/binaries/data/mods/public/gui/session/top_panel/IconButtons/MatchSettingsDialogButton.js
new file mode 100644
index 0000000000..6cbc227929
--- /dev/null
+++ b/binaries/data/mods/public/gui/session/top_panel/IconButtons/MatchSettingsDialogButton.js
@@ -0,0 +1,23 @@
+/**
+ * This class handles the button that displays the active match's settings.
+ */
+class MatchSettingsDialogButton
+{
+ constructor(matchSettingsDialog)
+ {
+ this.button = Engine.GetGUIObjectByName("matchSettingsButton");
+ this.button.enabled = !Engine.IsAtlasRunning();
+ this.button.onPress = matchSettingsDialog.toggle.bind(matchSettingsDialog);
+
+ registerHotkeyChangeHandler(this.onHotkeyChange.bind(this));
+ }
+
+ onHotkeyChange()
+ {
+ this.button.tooltip =
+ colorizeHotkey("%(hotkey)s" + " ", "session.gui.matchsettings.toggle") +
+ translate(this.Tooltip);
+ }
+}
+
+MatchSettingsDialogButton.prototype.Tooltip = markForTranslation("Match Settings");
diff --git a/binaries/data/mods/public/gui/session/top_panel/IconButtons/ObjectivesDialogButton.xml b/binaries/data/mods/public/gui/session/top_panel/IconButtons/MatchSettingsDialogButton.xml
similarity index 64%
rename from binaries/data/mods/public/gui/session/top_panel/IconButtons/ObjectivesDialogButton.xml
rename to binaries/data/mods/public/gui/session/top_panel/IconButtons/MatchSettingsDialogButton.xml
index a7746f474d..2e02b6e713 100644
--- a/binaries/data/mods/public/gui/session/top_panel/IconButtons/ObjectivesDialogButton.xml
+++ b/binaries/data/mods/public/gui/session/top_panel/IconButtons/MatchSettingsDialogButton.xml
@@ -1,16 +1,17 @@
+
diff --git a/binaries/data/mods/public/gui/session/top_panel/IconButtons/ObjectivesDialogButton.js b/binaries/data/mods/public/gui/session/top_panel/IconButtons/ObjectivesDialogButton.js
deleted file mode 100644
index b1df3ccbbf..0000000000
--- a/binaries/data/mods/public/gui/session/top_panel/IconButtons/ObjectivesDialogButton.js
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * This class handles the button that displays the games objectives.
- */
-class ObjectivesDialogButton
-{
- constructor(objectivesDialog)
- {
- this.objectivesButton = Engine.GetGUIObjectByName("objectivesButton");
- this.objectivesButton.enabled = !Engine.IsAtlasRunning();
- this.objectivesButton.onPress = objectivesDialog.toggle.bind(objectivesDialog);
-
- registerHotkeyChangeHandler(this.onHotkeyChange.bind(this));
- }
-
- onHotkeyChange()
- {
- this.objectivesButton.tooltip =
- colorizeHotkey("%(hotkey)s" + " ", "session.gui.objectives.toggle") +
- translate(this.Tooltip);
- }
-}
-
-ObjectivesDialogButton.prototype.Tooltip = markForTranslation("Objectives");