You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
595 B
27 lines
595 B
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Trooper.h"
|
|
#include "Blueprint/UserWidget.h"
|
|
#include "HealthBar.generated.h"
|
|
|
|
/**
|
|
*
|
|
*/
|
|
UCLASS(Abstract)
|
|
class TURNBASEDTUTORIAL_API UHealthBar : public UUserWidget {
|
|
GENERATED_BODY()
|
|
public:
|
|
void SetOwnerTrooper(ATrooper *Trooper);
|
|
|
|
protected:
|
|
TWeakObjectPtr<ATrooper> OwnerTrooper;
|
|
|
|
UPROPERTY(meta=(BindWidget))
|
|
class UProgressBar *HealthBar;
|
|
|
|
virtual void NativeTick(const FGeometry &MyGeometry, float InDeltaTime) override;
|
|
};
|