44 , _AngularOffset(0.0f)
45 , _FillColor(FLinearColor(0.0f, 0.5f, 1.0f, 1.0f))
48 , _CircleResolution(50)
49 , _bDrawBackground(true)
50 , _BackgroundColor(FLinearColor(0.1f, 0.1f, 0.1f, 0.6f))
51 , _BackgroundRadius(0.8f)
52 , _BackgroundThickness(4.0f)
56 SLATE_ARGUMENT(
float, Percent)
59 SLATE_ARGUMENT(
float, StartAngle)
60 SLATE_ARGUMENT(
float, EndAngle)
61 SLATE_ARGUMENT(
float, AngularOffset)
62 SLATE_ARGUMENT(FSlateBrush, Brush)
63 SLATE_ARGUMENT(FLinearColor, FillColor)
64 SLATE_ARGUMENT(
float, Radius)
65 SLATE_ARGUMENT(
float, Thickness)
66 SLATE_ARGUMENT(int32, CircleResolution)
67 SLATE_ARGUMENT(
bool, bDrawBackground)
68 SLATE_ARGUMENT(FSlateBrush, BackgroundBrush)
69 SLATE_ARGUMENT(FLinearColor, BackgroundColor)
70 SLATE_ARGUMENT(
float, BackgroundRadius)
71 SLATE_ARGUMENT(
float, BackgroundThickness)
72 SLATE_ARGUMENT(
bool, AntiAliasing)
79 void Construct(const FArguments& InArgs);
81 virtual FVector2D ComputeDesiredSize(
float LayoutScaleMultiplier) const override;
83 virtual int32 OnPaint(const FPaintArgs& Args, const FGeometry& AllottedGeometry, const FSlateRect& MyCullingRect, FSlateWindowElementList& OutDrawElements, int32 LayerId, const FWidgetStyle& InWidgetStyle,
bool bParentEnabled) const override;
86 virtual
void DrawFillScale(const FGeometry& AllottedGeometry, FSlateWindowElementList& OutDrawElements, int32 LayerId, const FWidgetStyle& InWidgetStyle) const;
88 virtual
void DrawFillMasked(const FGeometry& AllottedGeometry, FSlateWindowElementList& OutDrawElements, int32 LayerId, const FWidgetStyle& InWidgetStyle) const;
90 virtual
void DrawFillMaterial(const FGeometry& AllottedGeometry, FSlateWindowElementList& OutDrawElements, int32 LayerId, const FWidgetStyle& InWidgetStyle) const;
92 virtual
void Draw(const FGeometry& AllottedGeometry, FSlateWindowElementList& OutDrawElements, int32 LayerId, const FWidgetStyle& InWidgetStyle) const;
94 void AddSliderPointToArray(TArray<FVector2D>& SliderPoints, const
bool bIsUnique, const FVector2D& SliderPoint) const;
97 void SetPercent(const
float Value);
99 void SetMaterial(TObjectPtr<UMaterialInstanceDynamic>
Material);
151 FLinearColor FillColor;
161 uint8 bDrawBackground:1;
164 FSlateBrush BackgroundBrush;
167 FLinearColor BackgroundColor;
170 float BackgroundRadius;
173 float BackgroundThickness;
184 int32 CircleResolution;
187 uint8 bAntiAliasing:1;