1
This commit is contained in:
@@ -6,7 +6,7 @@ namespace BITKit.UX
|
||||
{
|
||||
|
||||
// An element that displays progress inside a partially filled circle
|
||||
public class DashBoardProgress : VisualElement
|
||||
public class DashBoardProgress : VisualElement,INotifyValueChanged<float>
|
||||
{
|
||||
public new class UxmlTraits : VisualElement.UxmlTraits
|
||||
{
|
||||
@@ -97,5 +97,16 @@ namespace BITKit.UX
|
||||
painter.Arc(new Vector2(width * 0.5f, height * 0.5f), width*0.5f - painter.lineWidth/2f, startAngle, endAngle);
|
||||
painter.Stroke();
|
||||
}
|
||||
|
||||
public void SetValueWithoutNotify(float newValue)
|
||||
{
|
||||
value = newValue;
|
||||
}
|
||||
|
||||
public float value
|
||||
{
|
||||
get => progress;
|
||||
set => progress = value;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user