- fixed incomplete disabling of number field menu option

https://forum.zdoom.org/viewtopic.php?t=68075
This commit is contained in:
alexey.lysiuk 2020-06-07 15:50:10 +03:00 committed by drfrag
parent c00dddea68
commit a0758d6a92

View file

@ -1134,6 +1134,10 @@ class OptionMenuFieldBase : OptionMenuItem
return false; return false;
} }
override bool Selectable()
{
return mGrayCheck == null || mGrayCheck.GetInt() != 0;
}
CVar mCVar; CVar mCVar;
CVar mGrayCheck; CVar mGrayCheck;