From 488483bc15f3f18a6b238b4a23387fac5ce1ad7a Mon Sep 17 00:00:00 2001 From: elexis Date: Fri, 16 Mar 2018 14:18:09 +0000 Subject: [PATCH] Display the map difficulty in the gamedescription (gamesetup and objectives window), refs #4963 / D1189 / rP20760. Differential Revision: https://code.wildfiregames.com/D1391 Reviewed By: bb git-svn-id: https://svn.wildfiregames.com/public/ps/trunk@21563 3db68df2-c116-0410-a063-a993310a9797 --- binaries/data/mods/public/gui/common/gamedescription.js | 9 +++++++++ binaries/data/mods/public/gui/gamesetup/gamesetup.js | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/binaries/data/mods/public/gui/common/gamedescription.js b/binaries/data/mods/public/gui/common/gamedescription.js index 29f5f81726..283ca1b596 100644 --- a/binaries/data/mods/public/gui/common/gamedescription.js +++ b/binaries/data/mods/public/gui/common/gamedescription.js @@ -368,6 +368,15 @@ function getGameDescription() }); } + if (g_GameAttributes.settings.TriggerDifficulty !== undefined) + { + let difficulty = g_Settings.TriggerDifficulties.find(difficulty => difficulty.Difficulty == g_GameAttributes.settings.TriggerDifficulty); + titles.push({ + "label": difficulty.Title, + "value": difficulty.Tooltip + }); + } + titles.push({ "label": g_GameAttributes.settings.Nomad ? translate("Nomad Mode") : translate("Civic Centers"), "value": diff --git a/binaries/data/mods/public/gui/gamesetup/gamesetup.js b/binaries/data/mods/public/gui/gamesetup/gamesetup.js index cb71e2aef9..f0d0cf7d67 100644 --- a/binaries/data/mods/public/gui/gamesetup/gamesetup.js +++ b/binaries/data/mods/public/gui/gamesetup/gamesetup.js @@ -414,8 +414,8 @@ var g_SettingsTabsGUI = [ "mapSelection", "mapSize", "biome", - "nomad", "triggerDifficulty", + "nomad", "disableTreasures", "exploreMap", "revealMap" -- 2.11.4.GIT