mirror of
https://github.com/4sval/FModel.git
synced 2026-04-20 00:27:43 -05:00
Fortnite Funny
This commit is contained in:
parent
7eb6d8090e
commit
249757454f
|
|
@ -274,6 +274,8 @@ namespace FModel.Creator.Bases.FN
|
|||
c.DrawText(_value.ToString(), new SKPoint(width - 50, y + 10), _statPaint);
|
||||
|
||||
if (_maxValue < 1 || !float.TryParse(_value.ToString(), out var floatValue)) return;
|
||||
if (floatValue < 0)
|
||||
floatValue = 0;
|
||||
var sliderWidth = (sliderRight - height * 2) * (floatValue / _maxValue);
|
||||
c.DrawRect(new SKRect(height * 2, y, Math.Min(height * 2 + sliderWidth, sliderRight), y + 5), _statPaint);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user