diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/defaults.cpp | 1 | ||||
-rw-r--r-- | src/game.cpp | 2 | ||||
-rw-r--r-- | src/gui/setup_chat.cpp | 5 |
3 files changed, 7 insertions, 1 deletions
diff --git a/src/defaults.cpp b/src/defaults.cpp index 34bb07efb..273b37e61 100644 --- a/src/defaults.cpp +++ b/src/defaults.cpp @@ -311,6 +311,7 @@ DefaultsData* getConfigDefaults() AddDEF("gamecount", 0); AddDEF("rated", false); AddDEF("weightMsg", true); + AddDEF("enableLangTab", true); return configData; } diff --git a/src/game.cpp b/src/game.cpp index 5eed2bd38..58cc9343e 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -260,7 +260,7 @@ static void createGuiWindows() if (config.getBoolValue("showChatHistory")) localChatTab->loadFromLogFile("#General"); - if (serverVersion >= 8) + if (serverVersion >= 8 && serverConfig.getValue("enableLangTab", true)) { const std::string lang = getLangShort(); if (lang.size() == 2) diff --git a/src/gui/setup_chat.cpp b/src/gui/setup_chat.cpp index 63777a9a5..45b9e8748 100644 --- a/src/gui/setup_chat.cpp +++ b/src/gui/setup_chat.cpp @@ -41,6 +41,8 @@ #include "debug.h" +extern int serverVersion; + Setup_Chat::Setup_Chat(const Widget2 *const widget) : SetupTabScroll(widget) { @@ -119,6 +121,9 @@ Setup_Chat::Setup_Chat(const Widget2 *const widget) : new SetupItemCheckBox(_("Enable gm tab"), "", "enableGmTab", this, "enableGmTabEvent"); + new SetupItemCheckBox(_("Enable language tab"), "", + "enableLangTab", this, "enableLangTabEvent", false); + new SetupItemCheckBox(_("Enable battle tab"), "", "enableBattleTab", this, "enableBattleTabEvent"); |