|
|
|
|
| #pragma once
|
|
|
| #include "Components/Widget.h"
|
| #include "GameplayTagContainer.h"
|
|
|
| #include "HitMarkerConfirmationWidget.generated.h"
|
|
|
| class SHitMarkerConfirmationWidget;
|
| class SWidget;
|
| class UObject;
|
| struct FGameplayTag;
|
|
|
| UCLASS()
|
| class UHitMarkerConfirmationWidget : public UWidget
|
| {
|
| GENERATED_BODY()
|
|
|
| public:
|
| UHitMarkerConfirmationWidget(const FObjectInitializer& ObjectInitializer);
|
|
|
|
|
| protected:
|
| virtual TSharedRef<SWidget> RebuildWidget() override;
|
|
|
|
|
|
|
| public:
|
| virtual void ReleaseSlateResources(bool bReleaseChildren) override;
|
|
|
|
|
| public:
|
|
|
| UPROPERTY(EditAnywhere, BlueprintReadOnly, Category=Appearance, meta=(ClampMin=0.0, ForceUnits=s))
|
| float HitNotifyDuration = 0.4f;
|
|
|
|
|
| UPROPERTY(EditAnywhere, BlueprintReadOnly, Category=Appearance)
|
| FSlateBrush PerHitMarkerImage;
|
|
|
|
|
| UPROPERTY(EditAnywhere, BlueprintReadOnly, Category=Appearance)
|
| TMap<FGameplayTag, FSlateBrush> PerHitMarkerZoneOverrideImages;
|
|
|
|
|
| UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Appearance)
|
| FSlateBrush AnyHitsMarkerImage;
|
|
|
| private:
|
|
|
| TSharedPtr<SHitMarkerConfirmationWidget> MyMarkerWidget;
|
| };
|
|
|