Space Plunder
Loading...
Searching...
No Matches
ScoreboardTeamWidget.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 "ScoreboardTeamWidget.generated.h"
8
9UCLASS()
10class MENUSYSTEM_API UScoreboardTeamWidget : public UUserWidget
11{
12 GENERATED_BODY()
13
14public:
15 virtual bool Initialize() override;
16
17 UFUNCTION(BlueprintCallable, Category="Menu System")
18 void SetTeam(FString Name, int32 ID, UTexture2D* Icon);
19 UFUNCTION(BlueprintCallable, Category="Menu System")
20 void SetGoalScore(int32 Goal);
21 UFUNCTION(BlueprintCallable, Category="Menu System")
22 void UpdateTeamScore(int32 Score);
23 UFUNCTION(BlueprintPure, Category="Menu System")
24 int32 GetTeamID() const {return TeamID;};
25
26 UFUNCTION(BlueprintCallable, Category="Menu System")
27 void AddPlayer(class APlayerState* PlayerState);
28
29 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta=(BindWidget), Category="Menu System")
30 class UScrollBox* PlayersScrollBox;
31protected:
32 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta=(BindWidget), Category="Menu System")
33 class UTextBlock* TeamName;
34 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta=(BindWidget), Category="Menu System")
35 class UTextBlock* TeamIDText;
36 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta=(BindWidget), Category="Menu System")
37 class UImage* TeamIcon;
38 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta=(BindWidget), Category="Menu System")
39 class UTextBlock* TeamScore;
40 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta=(BindWidget), Category="Menu System")
41 class UTextBlock* GoalScore;
42
43private:
44 int32 TeamID = 0;
45};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
Definition ScoreboardTeamWidget.h:11