Space Plunder
Loading...
Searching...
No Matches
PlayerCardWidget.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 "Components/ProgressBar.h"
8#include "Data/BaseData.h"
9#include "PlayerCardWidget.generated.h"
10
11class UTextBlock;
12
13UCLASS()
14class MENUSYSTEM_API UPlayerCardWidget : public UUserWidget
15{
16 GENERATED_BODY()
17
18
19public:
20
21
22
23 void SetPlayerProfile(const FUserProfile& Player);
24 UFUNCTION(BlueprintCallable, Category="Menu System")
25 const FUserProfile& GetPlayerProfile() const {return PlayerProfile;};
26
27 UFUNCTION(BlueprintCallable, Category="Menu System")
28 bool GetIsLoading() const {return bLoading;};
29 UFUNCTION(BlueprintCallable, Category="Menu System")
30 bool GetIsReady() const {return bReady;};
31 UFUNCTION(BlueprintCallable, Category="Menu System")
32 void SetIsReady(const bool bValue) {bReady = bValue;};
33
34protected:
35
36 virtual bool Initialize() override;
37
38 virtual void NativePreConstruct() override;
39 virtual void NativeConstruct() override;
40
41 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Menu System")
42 FLinearColor ReadyColor = FLinearColor::Green;
43 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Menu System")
44 FLinearColor UnReadyColor = FLinearColor::Red;
45
46
47
48 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Menu System", meta = (BindWidget))
49 UTextBlock* PlayerNameTextBlock = nullptr;
50 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Menu System", meta = (BindWidget))
51 UTextBlock* XPTextBlock = nullptr;
52 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Menu System", meta = (BindWidget))
53 UProgressBar* XPProgressBar = nullptr;
54 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Menu System", meta = (BindWidget))
55 class UBorder* ReadyBorder = nullptr;
56 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Menu System", meta = (BindWidget))
57 UTextBlock* LevelTextBlock = nullptr;
58 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Menu System", meta = (BindWidget))
59 class UImage* ProfilePictureImage = nullptr;
60 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Menu System", meta = (BindWidget))
61 UTextBlock* AchievementsTextBlock = nullptr;
62 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Menu System", meta = (BindWidget))
63 UTextBlock* KillDeathTextBlock = nullptr;
64
65
66private:
67 FUserProfile PlayerProfile;
68
69
70 void SetValues();
71 bool bLoading = true;
72 bool bReady = false;
73
74};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
Definition PlayerCardWidget.h:15
Definition BaseData.h:1239