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:
parent
37b349c2f6
commit
c18d07827d
1 changed files with 15 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue