DRG-Femboy-Voice/Source/FSD/Public/CoolDownProgressWidget.h
2025-04-15 12:39:31 -07:00

39 lines
1.1 KiB
C++
Executable file

#pragma once
#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
#include "CoolDownProgressStyle.h"
#include "CoolDownProgressWidget.generated.h"
class UObject;
UCLASS(Abstract, Blueprintable, EditInlineNew)
class UCoolDownProgressWidget : public UUserWidget {
GENERATED_BODY()
public:
protected:
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
FCoolDownProgressStyle Style;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
TWeakObjectPtr<UObject> CoolDownObject;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
bool bIsFinished;
public:
UCoolDownProgressWidget();
protected:
UFUNCTION(BlueprintCallable)
void UpdateProgress(float Progress);
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void ReceiveUpdateProgress(float InProgress);
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void ReceiveInitWidget();
UFUNCTION(BlueprintCallable)
void Init(UObject* InCoolDownObject, const FCoolDownProgressStyle& InStyle);
};