53 lines
1.2 KiB
C++
53 lines
1.2 KiB
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Blueprint/UserWidget.h"
|
|
#include "WBP_PlayerUI.generated.h"
|
|
/**
|
|
*
|
|
*/
|
|
enum class EAmmoType: uint8;
|
|
class UUWBP_Debuf;
|
|
UCLASS()
|
|
class UWBP_PlayerUI : public UUserWidget
|
|
{
|
|
GENERATED_BODY()
|
|
public:
|
|
void SetHp(float hp,float hpMax);
|
|
|
|
void SetAmmoType(EAmmoType ammoType);
|
|
|
|
void SetAmmoNumber(int ammo);
|
|
|
|
void AddDebuf(UTexture2D* texture,float procent);
|
|
|
|
UPROPERTY(EditAnywhere, meta = (BindWidget))
|
|
class UUWBP_RoundProgressBar* HPBar;
|
|
|
|
UPROPERTY(EditAnywhere, meta = (BindWidget))
|
|
class UTextBlock* AmmoText;
|
|
|
|
UPROPERTY(EditAnywhere, meta = (BindWidget))
|
|
class UImage* AmmoImage;
|
|
|
|
UPROPERTY(EditAnywhere, meta = (BindWidget))
|
|
class UCanvasPanel* DebufPanel;
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Debuf")
|
|
float DebufRange;
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Debuf")
|
|
float DebufAngleDiff;
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Debuf")
|
|
TSubclassOf<UUserWidget> DebufClass;
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Ammo")
|
|
TMap<EAmmoType, UTexture2D*> AmmoIconMap;
|
|
|
|
private:
|
|
TArray<UUWBP_Debuf*> debufs;
|
|
};
|