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 = "..."); };