Space Plunder
Loading...
Searching...
No Matches
AlertLevelWidget.h
Go to the documentation of this file.
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Blueprint/UserWidget.h"
7#include "Data/AIDataTypes.h"
8#include "AlertLevelWidget.generated.h"
9
10
11
12UCLASS()
13class AITOOLKIT_API UAlertLevelWidget : public UUserWidget
14{
15 GENERATED_BODY()
16
17public:
18 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category="Health")
19 void UpdateAlertLevel(const float CurrentAlertLevel, const float MaxAlertLevel, const EAIStateType AIStateType);
20 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category="Health")
21 void StateChanged(const EAIStateType AIStateType);
22
23
24protected:
25 virtual bool Initialize() override;
26
27 virtual void NativeConstruct() override;
28
29 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget), Category="Alert")
30 class UProgressBar* AlertLevelBar;
31 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget), Category="Alert")
32 class UImage* AlertLevelIcon;
33
34};
EAIStateType
Definition AIDataTypes.h:121
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
Definition Health.Build.cs:6
Definition AlertLevelWidget.h:14