Simplify class definition
This commit is contained in:
parent
447459d982
commit
26d6f2affa
@ -5,10 +5,6 @@
|
|||||||
#include "Components/ProgressBar.h"
|
#include "Components/ProgressBar.h"
|
||||||
#include "Components/TextBlock.h"
|
#include "Components/TextBlock.h"
|
||||||
|
|
||||||
void UHUDWidget::Init()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void UHUDWidget::UpdateEXPBar(float CurrentLevelPercent)
|
void UHUDWidget::UpdateEXPBar(float CurrentLevelPercent)
|
||||||
{
|
{
|
||||||
EXPbar->SetPercent(CurrentLevelPercent);
|
EXPbar->SetPercent(CurrentLevelPercent);
|
||||||
|
@ -16,24 +16,21 @@ class VAMPIRES_API UHUDWidget : public UUserWidget
|
|||||||
{
|
{
|
||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
protected:
|
UPROPERTY(meta = (BindWidget))
|
||||||
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
|
|
||||||
UProgressBar* EXPbar;
|
UProgressBar* EXPbar;
|
||||||
|
|
||||||
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
|
UPROPERTY(meta = (BindWidget))
|
||||||
UTextBlock* LevelBlock;
|
UTextBlock* LevelBlock;
|
||||||
|
|
||||||
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
|
UPROPERTY(meta = (BindWidget))
|
||||||
UTextBlock* TimerBLock;
|
UTextBlock* TimerBLock;
|
||||||
|
|
||||||
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
|
UPROPERTY(meta = (BindWidget))
|
||||||
UTextBlock* KillBLock;
|
UTextBlock* KillBLock;
|
||||||
|
|
||||||
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
|
UPROPERTY(meta = (BindWidget))
|
||||||
UTextBlock* GoldBLock;
|
UTextBlock* GoldBLock;
|
||||||
|
|
||||||
void Init();
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UFUNCTION()
|
UFUNCTION()
|
||||||
void UpdateEXPBar(float CurrentLevelPercent);
|
void UpdateEXPBar(float CurrentLevelPercent);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user