[Client] Hide difficulty widget because it has no use in multiplayer

pull/394/head
David Cernat 7 years ago
parent 37b349c2f6
commit c18d07827d

@ -120,6 +120,21 @@ namespace MWGui
} }
if (type == sliderType) 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<MyGUI::ScrollBar>(); MyGUI::ScrollBar* scroll = current->castType<MyGUI::ScrollBar>();
std::string valueStr; std::string valueStr;
if (getSettingValueType(current) == "Float") if (getSettingValueType(current) == "Float")

Loading…
Cancel
Save