From 6a88fec83af71ce3f468470b2f0c9cb8d799ae01 Mon Sep 17 00:00:00 2001 From: Ange-Marie MAURIN Date: Sun, 13 Jul 2025 01:18:31 +0200 Subject: [PATCH] Updated Separator On Name Computation --- Source/DTFluxUtilities/Private/FTDFluxUtils.cpp | 8 +++++--- Source/DTFluxUtilities/Public/FTDFluxUtils.h | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Source/DTFluxUtilities/Private/FTDFluxUtils.cpp b/Source/DTFluxUtilities/Private/FTDFluxUtils.cpp index 5830c17..3755425 100644 --- a/Source/DTFluxUtilities/Private/FTDFluxUtils.cpp +++ b/Source/DTFluxUtilities/Private/FTDFluxUtils.cpp @@ -5,15 +5,17 @@ #include "DTFluxCoreSubsystem.h" -FText UFTDFluxUtils::GetFormatedName(const int& Bib, const int MaxChar, const FString OverFlowChar) +FText UFTDFluxUtils::GetFormatedName(const int& Bib, const int MaxChar, const FString Separator, + const FString OverFlowChar) { UDTFluxCoreSubsystem* CoreSubsystem = GEngine->GetEngineSubsystem(); const FDTFluxParticipant OutParticipant = CoreSubsystem->GetParticipant(Bib); - return OutParticipant.GetFormattedNameText(MaxChar, OverFlowChar); + return OutParticipant.GetFormattedNameText(MaxChar, Separator, OverFlowChar); } FText UFTDFluxUtils::GetParticipantFormatedName(FDTFluxParticipant& Participant, const int MaxChar, + const FString Separator, const FString OverFlowChar) { - return Participant.GetFormattedNameText(MaxChar, OverFlowChar); + return Participant.GetFormattedNameText(MaxChar, Separator, OverFlowChar); } diff --git a/Source/DTFluxUtilities/Public/FTDFluxUtils.h b/Source/DTFluxUtilities/Public/FTDFluxUtils.h index 20ac43d..7449a76 100644 --- a/Source/DTFluxUtilities/Public/FTDFluxUtils.h +++ b/Source/DTFluxUtilities/Public/FTDFluxUtils.h @@ -17,9 +17,10 @@ class DTFLUXUTILITIES_API UFTDFluxUtils : public UBlueprintFunctionLibrary public: UFUNCTION(BlueprintCallable, Category="DTFlux|Utils", Meta=(Keywords="name, concat, participant")) - static FText GetFormatedName(const int& Bib, const int MaxChar = 10, + static FText GetFormatedName(const int& Bib, const int MaxChar = 10, const FString Separator = ".", const FString OverFlowChar = "..."); UFUNCTION(BlueprintCallable, Category="DTFlux|Utils", Meta=(Keywords="name, concat, participant")) static FText GetParticipantFormatedName(FDTFluxParticipant& Participant, const int MaxChar = 10, + const FString Separator = ".", const FString OverFlowChar = "..."); };