Compare commits
4 Commits
0a175f7813
...
fdae0fddc8
| Author | SHA1 | Date | |
|---|---|---|---|
| fdae0fddc8 | |||
| f304685f01 | |||
| 07c83b5c8e | |||
| de5ed7f328 |
@ -150,7 +150,9 @@ int FDTFluxParticipant::GetTeammateNum() const
|
||||
|
||||
bool FDTFluxParticipant::IsTeam() const
|
||||
{
|
||||
return Teammate.Num() > 1;
|
||||
UE_LOG(logDTFluxCore, Verbose, TEXT("IsTeam() -> %s, Teamate Num %i"),
|
||||
Team.IsEmpty() ? TEXT("TRUE") : TEXT("FALSE"), Teammate.Num());
|
||||
return !Team.IsEmpty();
|
||||
}
|
||||
|
||||
const TArray<FDTFluxPerson>& FDTFluxParticipant::GetTeammate() const
|
||||
@ -165,13 +167,18 @@ FString FDTFluxParticipant::GetFormattedName(const int MaxChar, const FString& S
|
||||
{
|
||||
return TEXT("");
|
||||
}
|
||||
FString FirstName;
|
||||
FString LastName;
|
||||
|
||||
if (Teammate.Num() == 0)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
if (IsTeam())
|
||||
{
|
||||
FString FullName;
|
||||
UE_LOG(logDTFluxCore, Verbose, TEXT("Participant is a team"));
|
||||
if (!Team.IsEmpty())
|
||||
{
|
||||
LastName = Team;
|
||||
FullName = Team;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -180,24 +187,23 @@ FString FDTFluxParticipant::GetFormattedName(const int MaxChar, const FString& S
|
||||
{
|
||||
Names.Add(Person.LastName);
|
||||
}
|
||||
LastName = FString::Join(Names, TEXT("/"));
|
||||
FullName = FString::Join(Names, TEXT("/"));
|
||||
}
|
||||
}
|
||||
else if (Teammate.Num() > 0)
|
||||
FullName = FullName.ToUpper();
|
||||
if (FullName.Len() <= MaxChar)
|
||||
{
|
||||
FirstName = Teammate[0].FirstName;
|
||||
LastName = Teammate[0].LastName;
|
||||
return FullName;
|
||||
}
|
||||
else
|
||||
{
|
||||
LastName = TEXT("Unknown");
|
||||
return FullName.Left(MaxChar) + OverflowChar;
|
||||
}
|
||||
FString FirstName = Teammate[0].FirstName;
|
||||
FString LastName = Teammate[0].LastName;
|
||||
FString Initial;
|
||||
if (!FirstName.IsEmpty())
|
||||
{
|
||||
Initial = FirstName.Left(1).ToUpper() + Separator;
|
||||
}
|
||||
FString FormattedLastName = LastName.ToUpper();
|
||||
const FString FormattedLastName = LastName.ToUpper();
|
||||
FString FullName = Initial + FormattedLastName;
|
||||
if (FullName.Len() <= MaxChar)
|
||||
{
|
||||
|
||||
@ -35,13 +35,13 @@ public:
|
||||
UPROPERTY(BlueprintReadOnly, EditAnywhere)
|
||||
TMap<FString /* ContestName */, FDTFluxContest> Contests;
|
||||
|
||||
UPROPERTY(BlueprintReadOnly, VisibleAnywhere)
|
||||
UPROPERTY(BlueprintReadOnly, EditAnywhere)
|
||||
TMap<int /*ContestId*/, FDTFluxContestRankings> ContestRankings;
|
||||
|
||||
UPROPERTY(BlueprintReadOnly, VisibleAnywhere)
|
||||
UPROPERTY(BlueprintReadOnly, EditAnywhere)
|
||||
TMap<FDTFluxStageKey, FDTFluxStageRankings> StageRankings;
|
||||
|
||||
UPROPERTY(BlueprintReadOnly, VisibleAnywhere)
|
||||
UPROPERTY(BlueprintReadOnly, EditAnywhere)
|
||||
TMap<FDTFluxSplitKey, FDTFluxSplitRankings> SplitRankings;
|
||||
|
||||
UFUNCTION(BlueprintCallable, CallInEditor, Category="DTFlux|ModelAsset")
|
||||
|
||||
Reference in New Issue
Block a user