(9cec8d97d) Fixed GUINumberInput buttons not becoming disabled when setting the min/max values (e.g. the minus button in the extra cargo menu was clickable even if the value was 0)

This commit is contained in:
Joonas Rikkonen
2019-06-04 16:51:31 +03:00
parent a127edca80
commit 0f38f154d9

View File

@@ -86,7 +86,25 @@ namespace Barotrauma
}
}
public int? MinValueInt, MaxValueInt;
private int? minValueInt, maxValueInt;
public int? MinValueInt
{
get { return minValueInt; }
set
{
minValueInt = value;
ClampIntValue();
}
}
public int? MaxValueInt
{
get { return maxValueInt; }
set
{
maxValueInt = value;
ClampIntValue();
}
}
private int intValue;
public int IntValue