1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-29 22:45:34 +00:00

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

This commit is contained in:
David Cernat 2018-03-01 09:31:21 +02:00
parent 37b349c2f6
commit c18d07827d

View file

@ -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<MyGUI::ScrollBar>();
std::string valueStr;
if (getSettingValueType(current) == "Float")