Space Plunder
Loading...
Searching...
No Matches
PlayerCardList.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/BaseData.h"
8#include "PlayerCardList.generated.h"
9
13UCLASS()
14class MENUSYSTEM_API UPlayerCardList : public UUserWidget
15{
16 GENERATED_BODY()
17
18public:
19
20 UPlayerCardList(const FObjectInitializer& ObjectInitializer);
21
22
23 void AddPlayer(const FUserProfile& Player);
24
25 void SetPlayers(const TArray<FUserProfile>& Players);
26
27
28 UFUNCTION(BlueprintCallable, Category="Menu System|Lobby")
29 TArray<FUserProfile> GetUserProfiles() const{return UserProfiles;}
30
31protected:
32
33 virtual bool Initialize() override;
34 virtual void NativePreConstruct() override;
35 virtual void NativeConstruct() override;
36
37 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget))
38 class UPanelWidget* PlayerList = nullptr;
39
40
41private:
42
43 TSubclassOf<UUserWidget> PlayerCardClass;
44 TArray<FUserProfile> UserProfiles;
45};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
Definition PlayerCardList.h:15
Definition BaseData.h:1239