From 2ae5c4ec74d401197d84ef339322531c54f4dae6 Mon Sep 17 00:00:00 2001 From: baz Date: Wed, 13 Nov 2024 23:50:42 +0000 Subject: [PATCH] Update Widgets includes --- Source/vampires/Widgets/HUDWidget.h | 4 ++-- Source/vampires/Widgets/HealthbarWidget.cpp | 2 ++ Source/vampires/Widgets/HealthbarWidget.h | 3 +-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Source/vampires/Widgets/HUDWidget.h b/Source/vampires/Widgets/HUDWidget.h index 7cf0359..1a5b611 100644 --- a/Source/vampires/Widgets/HUDWidget.h +++ b/Source/vampires/Widgets/HUDWidget.h @@ -4,10 +4,10 @@ #include "CoreMinimal.h" #include "Blueprint/UserWidget.h" -#include "Components/ProgressBar.h" -#include "Components/TextBlock.h" #include "HUDWidget.generated.h" +class UTextBlock; +class UProgressBar; /** * */ diff --git a/Source/vampires/Widgets/HealthbarWidget.cpp b/Source/vampires/Widgets/HealthbarWidget.cpp index b066075..ec7aaf8 100644 --- a/Source/vampires/Widgets/HealthbarWidget.cpp +++ b/Source/vampires/Widgets/HealthbarWidget.cpp @@ -5,6 +5,8 @@ #include "Kismet/GameplayStatics.h" #include "vampires/PlayerCharacter.h" +#include "Components/ProgressBar.h" +#include "vampires/VampireCharacter.h" void UHealthbarWidget::NativeConstruct() { diff --git a/Source/vampires/Widgets/HealthbarWidget.h b/Source/vampires/Widgets/HealthbarWidget.h index 9ecba3e..a74edf5 100644 --- a/Source/vampires/Widgets/HealthbarWidget.h +++ b/Source/vampires/Widgets/HealthbarWidget.h @@ -4,10 +4,9 @@ #include "CoreMinimal.h" #include "Blueprint/UserWidget.h" -#include "Components/ProgressBar.h" -#include "vampires/VampireCharacter.h" #include "HealthbarWidget.generated.h" +class UProgressBar; /** * */