From c18d07827ddc9a9eca7ccbec1ecc8e4188e8dd2f Mon Sep 17 00:00:00 2001 From: David Cernat Date: Thu, 1 Mar 2018 09:31:21 +0200 Subject: [PATCH] [Client] Hide difficulty widget because it has no use in multiplayer --- apps/openmw/mwgui/settingswindow.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/apps/openmw/mwgui/settingswindow.cpp b/apps/openmw/mwgui/settingswindow.cpp index 9bf6e4385..9e67b96a9 100644 --- a/apps/openmw/mwgui/settingswindow.cpp +++ b/apps/openmw/mwgui/settingswindow.cpp @@ -120,6 +120,21 @@ namespace MWGui } if (type == sliderType) { + /* + Start of tes3mp addition + + Hide difficulty widget because it has no use in multiplayer, with + the difficulty being set by the server instead + */ + if (getSettingName(current) == "difficulty") + { + widget->setEnabled(false); + widget->setVisible(false); + } + /* + End of tes3mp addition + */ + MyGUI::ScrollBar* scroll = current->castType(); std::string valueStr; if (getSettingValueType(current) == "Float")