(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:
@@ -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;
|
private int intValue;
|
||||||
public int IntValue
|
public int IntValue
|
||||||
|
|||||||
Reference in New Issue
Block a user