Fixed ui
This commit is contained in:
@@ -27,7 +27,7 @@ namespace Car_simulation.UI.Instruments
|
||||
{
|
||||
_minValue = minValue;
|
||||
_maxValue = maxValue;
|
||||
_linesPerMark = linesPerMark
|
||||
_linesPerMark = linesPerMark;
|
||||
_valuePerMark = valuePerMark;
|
||||
_font = font;
|
||||
Position = position;
|
||||
@@ -71,7 +71,6 @@ namespace Car_simulation.UI.Instruments
|
||||
{
|
||||
_value = value;
|
||||
|
||||
_minValue
|
||||
float ratio = Math.Clamp(_value / _maxValue, 0f, 1f);
|
||||
float needleAngle = -45 + (270 * ratio);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user