#include <ScoreboardTeamWidget.h>
◆ AddPlayer()
| void UScoreboardTeamWidget::AddPlayer |
( |
class APlayerState * | PlayerState | ) |
|
◆ GetTeamID()
| int32 UScoreboardTeamWidget::GetTeamID |
( |
| ) |
const |
|
inline |
◆ Initialize()
| bool UScoreboardTeamWidget::Initialize |
( |
| ) |
|
|
overridevirtual |
9{
10 const bool Success = Super::Initialize();
12 if (!ensure(
TeamName !=
nullptr))
return false;
13 if (!ensure(
TeamIDText !=
nullptr))
return false;
14 if (!ensure(
TeamScore !=
nullptr))
return false;
15 if (!ensure(
GoalScore !=
nullptr))
return false;
16 if (!ensure(
TeamIcon !=
nullptr))
return false;
18 return true;
19}
◆ SetGoalScore()
| void UScoreboardTeamWidget::SetGoalScore |
( |
int32 | Goal | ) |
|
30{
31 GoalScore->SetText(FText::FromString(FString::FromInt(Goal)));
32}
◆ SetTeam()
| void UScoreboardTeamWidget::SetTeam |
( |
FString | Name, |
|
|
int32 | ID, |
|
|
UTexture2D * | Icon ) |
22{
23 TeamName->SetText(FText::FromString(Name));
25 TeamIDText->SetText(FText::FromString(FString::FromInt(ID)));
27}
◆ UpdateTeamScore()
| void UScoreboardTeamWidget::UpdateTeamScore |
( |
int32 | Score | ) |
|
35{
36 TeamScore->SetText(FText::FromString(FString::FromInt(Score)));
37}
◆ GoalScore
| class UTextBlock* UScoreboardTeamWidget::GoalScore |
|
protected |
◆ PlayersScrollBox
| class UScrollBox* UScoreboardTeamWidget::PlayersScrollBox |
◆ TeamIcon
| class UImage* UScoreboardTeamWidget::TeamIcon |
|
protected |
◆ TeamID
| int32 UScoreboardTeamWidget::TeamID = 0 |
|
private |
◆ TeamIDText
| class UTextBlock* UScoreboardTeamWidget::TeamIDText |
|
protected |
◆ TeamName
| class UTextBlock* UScoreboardTeamWidget::TeamName |
|
protected |
◆ TeamScore
| class UTextBlock* UScoreboardTeamWidget::TeamScore |
|
protected |
The documentation for this class was generated from the following files:
- T:/Unreal/Unreal Projects/SpaceAdventure52/SpaceAdventure/Plugins/MenuSystem/Source/MenuSystem/Public/Widgets/Multiplayer/ScoreboardTeamWidget.h
- T:/Unreal/Unreal Projects/SpaceAdventure52/SpaceAdventure/Plugins/MenuSystem/Source/MenuSystem/Private/Widgets/Multiplayer/ScoreboardTeamWidget.cpp