forked from teamnwah/openmw-tes3coop
[Client] Hide difficulty widget because it has no use in multiplayer
This commit is contained in:
parent
37b349c2f6
commit
c18d07827d
1 changed files with 15 additions and 0 deletions
|
@ -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…
Reference in a new issue