Compare commits

...

3 Commits

Author SHA1 Message Date
a6f598782d AuraHUD 2025-09-01 15:43:20 -05:00
d87e2ee9dd health and mana globes 2025-09-01 13:27:11 -05:00
e84895d124 Globe Progress Bar 2025-09-01 13:17:07 -05:00
9 changed files with 39 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,13 @@
// Copyright; GhostPacket Games
#include "UI/HUD/AuraHUD.h"
#include "UI/Widgets/AuraUserWidget.h"
void AAuraHUD::BeginPlay()
{
Super::BeginPlay();
UUserWidget *Widget = CreateWidget<UUserWidget>(GetWorld(), OverlayWidgetClass);
Widget->AddToViewport ();
}

View File

@ -0,0 +1,26 @@
// Copyright; GhostPacket Games
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/HUD.h"
#include "AuraHUD.generated.h"
class UAuraUserWidget;
UCLASS()
class AURA_API AAuraHUD : public AHUD
{
GENERATED_BODY()
public:
UPROPERTY ()
TObjectPtr<UAuraUserWidget> OverlayWidget;
protected:
virtual void BeginPlay() override;
private:
UPROPERTY(EditAnywhere)
TSubclassOf<UAuraUserWidget> OverlayWidgetClass;
};