Space Plunder
Loading...
Searching...
No Matches
ScoreboardRowWidget.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 "ScoreboardRowWidget.generated.h"
8
9UCLASS()
10class MENUSYSTEM_API UScoreboardRowWidget : public UUserWidget
11{
12 GENERATED_BODY()
13
14public:
15 virtual bool Initialize() override;
16 virtual void NativeConstruct() override;
17
18 UFUNCTION(BlueprintCallable, Category="Menu System")
19 void SetPlayerState(class APlayerState* PlayerState);
20
21 UFUNCTION(BlueprintCallable, Category="Menu System")
22 void UpdatePlayerStats();
23 UFUNCTION(BlueprintCallable, Category="Menu System")
24 void SetRowIndex(int32 Index);
25
26protected:
27 //- Not the owner Player, the player it's connected to //
28 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Player State")
29 class AMenuSystemPlayerState* AssociatedPlayerState;
30
31 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Player State")
32 int32 TeamID = 0;
33 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Player State")
34 int32 PlayerID = 0;
35 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Player State")
36 int32 ScoreboardID = 0;
37
38 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Player State")
39 bool bIsLocalPlayer = false;
40 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category="Player State")
41 float StatWidth = 128.0f;
42
43 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category="Menu System|Color")
44 FLinearColor PlayerColor = FLinearColor::Blue;
45
46 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category="Menu System|Color")
47 FLinearColor OddColor = FLinearColor::Black;
48 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category="Menu System|Color")
49 FLinearColor EvenColor = FLinearColor::White;
50
51 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta=(BindWidget), Category="Menu System")
52 class UTextBlock* PlayerNameTextBlock;
53 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta=(BindWidget), Category="Menu System")
54 class UTextBlock* XPTextBlock;
55 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta=(BindWidget), Category="Menu System")
56 class UImage* PlayerIconImage;
57 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta=(BindWidget), Category="Menu System")
58 class UImage* BackgroundImage;
59 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta=(BindWidget), Category="Menu System")
60 class UTextBlock* KillsTextBlock;
61 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta=(BindWidget), Category="Menu System")
62 class UTextBlock* AssistsTextBlock;
63 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta=(BindWidget), Category="Menu System")
64 class UTextBlock* DeathsTextBlock;
65 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta=(BindWidget), Category="Menu System")
66 class UTextBlock* KDRatioTextBlock;
67
68 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta=(BindWidget), Category="Menu System")
69 class UPingWidget* PingWidget;
70
71};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
Definition MenuSystemPlayerState.h:19
Definition PingWidget.h:11
Definition ScoreboardRowWidget.h:11