Space Plunder
Loading...
Searching...
No Matches
CompanionWidget.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 "CompanionWidget.generated.h"
8
9
10UCLASS()
11class AITOOLKIT_API UCompanionWidget : public UUserWidget
12{
13 GENERATED_BODY()
14
15
16 //@ TODO Change this to A single Companion Data Widget, Displaying Small pic, Health etc.
17
18public:
19 UFUNCTION(BlueprintCallable, Category="Companion")
20 void SetCompanionName(const FName& CompanionName) const;
21 UFUNCTION(BlueprintCallable, Category="Companion")
22 void SetDisplayPicture(UTexture2D* Icon) const;
23
24 UFUNCTION(BlueprintCallable, Category="Companion")
25 void SetIsCommanding(const bool bCommanding);
26 UFUNCTION(BlueprintImplementableEvent, Category="Companion")
27 void OnCommandingChanged();
28
29protected:
30 virtual bool Initialize() override;
31
32 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Companion")
33 bool bIsCommanding = false;
34
35 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget))
36 class UTextBlock* CompanionDisplayNameTextBlock;
37 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget))
38 class UTextBlock* CurrentCommandTextBlock;
39
40 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget))
41 class UImage* DisplayPicture;
42
43private:
44
45};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
Definition CompanionWidget.h:12