#include <ScoreWidget.h>
◆ Initialize()
| bool UScoreWidget::Initialize |
( |
| ) |
|
|
overridevirtual |
10{
11 const bool Success = Super::Initialize();
15 if (!ensure(
AllyLogo !=
nullptr))
return false;
16 if (!ensure(
EnemyLogo !=
nullptr))
return false;
19 if (!ensure(
RoundText !=
nullptr))
return false;
26 return true;
27}
◆ NativeConstruct()
| void UScoreWidget::NativeConstruct |
( |
| ) |
|
|
overridevirtual |
30{
31 Super::NativeConstruct();
32}
◆ OnMultiplayerMatchStateChanged()
| void UScoreWidget::OnMultiplayerMatchStateChanged |
( |
const FMatchState | State | ) |
|
◆ OnMultiplayerModeChanged()
◆ OnRoundChanged()
| void UScoreWidget::OnRoundChanged |
( |
| ) |
|
◆ SetLogo()
| void UScoreWidget::SetLogo |
( |
const int32 | TeamID, |
|
|
class UTexture2D * | Logo ) const |
70{
71 if(TeamID == 0)
72 {
74 }
75 else
76 {
78 }
79}
◆ SetMultiplayerGameMode()
◆ SetMultiplayerMatchState()
| void UScoreWidget::SetMultiplayerMatchState |
( |
const FMatchState | State | ) |
|
◆ SetOwnerTeamID()
| void UScoreWidget::SetOwnerTeamID |
( |
const int32 | TeamID | ) |
|
|
inline |
◆ SetRound()
| void UScoreWidget::SetRound |
( |
const int32 | Num | ) |
const |
59{
60 RoundText->SetText(FText::FromString(FString::FromInt(Num)));
61}
◆ SetScore()
| void UScoreWidget::SetScore |
( |
const TArray< FTeamScoreData > & | Scores | ) |
|
36{
38 {
39
41 {
42
43 AllyScoreText->SetText(FText::FromString(FString::FromInt(Data.TeamScore)));
44 }
45 else
46 {
47 EnemyScoreText->SetText(FText::FromString(FString::FromInt(Data.TeamScore)));
48 }
49 }
50}
Definition MultiplayerData.h:37
◆ SetScoreGoal()
| void UScoreWidget::SetScoreGoal |
( |
const int32 | Goal | ) |
const |
82{
83 GoalScoreText->SetText(FText::FromString(FString::FromInt(Goal)));
84}
◆ AllyLogo
| class UImage* UScoreWidget::AllyLogo |
|
protected |
◆ AllyScoreText
| class UTextBlock* UScoreWidget::AllyScoreText |
|
protected |
◆ AllyTitleText
| class UTextBlock* UScoreWidget::AllyTitleText |
|
protected |
◆ EnemyLogo
| class UImage* UScoreWidget::EnemyLogo |
|
protected |
◆ EnemyScoreText
| class UTextBlock* UScoreWidget::EnemyScoreText |
|
protected |
◆ EnemyTitleText
| class UTextBlock* UScoreWidget::EnemyTitleText |
|
protected |
◆ GoalScoreText
| class UTextBlock* UScoreWidget::GoalScoreText |
|
protected |
◆ GoalScoreTitleText
| class UTextBlock* UScoreWidget::GoalScoreTitleText |
|
protected |
◆ MultiplayerMode
◆ OwnerTeamID
| int32 UScoreWidget::OwnerTeamID = 0 |
◆ RootOverlay
| class UOverlay* UScoreWidget::RootOverlay |
|
protected |
◆ RoundText
| class UTextBlock* UScoreWidget::RoundText |
|
protected |
◆ RoundTitleText
| class UTextBlock* UScoreWidget::RoundTitleText |
|
protected |
◆ TimerWidget
◆ TimeTitleText
| class UTextBlock* UScoreWidget::TimeTitleText |
|
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/ScoreWidget.h
- T:/Unreal/Unreal Projects/SpaceAdventure52/SpaceAdventure/Plugins/MenuSystem/Source/MenuSystem/Private/Widgets/Multiplayer/ScoreWidget.cpp