18 virtual void NativePreConstruct()
override;
19 virtual void NativeTick(
const FGeometry& MyGeometry,
float InDeltaTime)
override;
22 UFUNCTION(BlueprintCallable, Category =
"Progress")
23 void SetPercent(
const float InPercent);
26 UFUNCTION(BlueprintCallable, Category =
"Progress")
27 void StartProgress(
const float Start,
const float End,
const float Duration = 1.0f);
30 UFUNCTION(BlueprintCallable, Category =
"Progress")
39 return FMath::Sin((Value * PI) / 2.0);
43 UPROPERTY(meta = (BindWidget), BlueprintReadOnly)
44 class UImage* Img_CircularBar;
47 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Progress", meta = (ClampMin = "0.0", ClampMax = "1.0"))
51 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Style", meta = (ExposeOnSpawn = true))
52 FLinearColor LowColor = FLinearColor(0.9f, 0.2f, 0.2f);
55 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Style", meta = (ExposeOnSpawn = true))
56 FLinearColor MidColor = FLinearColor(1.0f, 0.8f, 0.2f);
59 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Style", meta = (ExposeOnSpawn = true))
60 FLinearColor HighColor = FLinearColor(0.2f, 0.9f, 0.3f);
64 bool bIsAnimating = false;
66 float AnimStartPercent = 0.0f;
67 float AnimTargetPercent = 0.0f;
68 float AnimElapsedTime = 0.0f;
69 float AnimDuration = 1.0f;