From 622a9124742cdc2e50aba4fac40f3a49b28da5aa Mon Sep 17 00:00:00 2001 From: jyelon Date: Tue, 19 Nov 2024 22:13:20 -0500 Subject: [PATCH] More tweaks to Format Error Message --- Content/Tangibles/tangiblecharacter.uasset | 4 +- Source/Integration/FormatError.cpp | 5 +- Source/Integration/FormatError.h | 78 +++++++++++----------- 3 files changed, 45 insertions(+), 42 deletions(-) diff --git a/Content/Tangibles/tangiblecharacter.uasset b/Content/Tangibles/tangiblecharacter.uasset index a5e04f15..07723ee7 100644 --- a/Content/Tangibles/tangiblecharacter.uasset +++ b/Content/Tangibles/tangiblecharacter.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d007d75d8a5cbe759673a17a353f2fb5fd4f7892256aedcea40f84f8aaf91f45 -size 377808 +oid sha256:44f7aec8868369b7bae646af276bc8ef2f200462d00f80d3346268108ac34d4f +size 377693 diff --git a/Source/Integration/FormatError.cpp b/Source/Integration/FormatError.cpp index 12d04150..3e84feb5 100644 --- a/Source/Integration/FormatError.cpp +++ b/Source/Integration/FormatError.cpp @@ -671,7 +671,10 @@ void UlxFormatErrorLibrary::FormatErrorInternal(UObject *Context, ElxLogVerbosit // Output to Log // - FMsg::Logf(BlueprintNameAnsi.Get(), 0, BlueprintNameLogCategory, VerbosityValue, TEXT("%s"), *MessageString); + if (VerbosityValue <= ELogVerbosity::COMPILED_IN_MINIMUM_VERBOSITY) + { + FMsg::Logf(BlueprintNameAnsi.Get(), 0, BlueprintNameLogCategory, VerbosityValue, TEXT("%s"), *MessageString); + } } diff --git a/Source/Integration/FormatError.h b/Source/Integration/FormatError.h index 0a9bcd6a..e6bed024 100644 --- a/Source/Integration/FormatError.h +++ b/Source/Integration/FormatError.h @@ -64,64 +64,64 @@ UENUM(BlueprintType) enum class ElxDisplayDuration : uint8 { /* Do not display the message in the viewport */ - No_Display_in_Viewport = 0, + No_Show = 0, - /* Display the message in the viewport for 1 second */ - Display_1_Seconds = 1, + /* Display the message in the viewport for 1 seconds */ + Show_1_Seconds = 1, - /* Display the message in the viewport for 2 second */ - Display_2_Seconds = 2, + /* Display the message in the viewport for 2 seconds */ + Show_2_Seconds = 2, - /* Display the message in the viewport for 3 second */ - Display_3_Seconds = 3, + /* Display the message in the viewport for 3 seconds */ + Show_3_Seconds = 3, - /* Display the message in the viewport for 4 second */ - Display_4_Seconds = 4, + /* Display the message in the viewport for 4 seconds */ + Show_4_Seconds = 4, - /* Display the message in the viewport for 5 second */ - Display_5_Seconds = 5, + /* Display the message in the viewport for 5 seconds */ + Show_5_Seconds = 5, - /* Display the message in the viewport for 10 second */ - Display_10_Seconds = 10, + /* Display the message in the viewport for 10 seconds */ + Show_10_Seconds = 10, - /* Display the message in the viewport for 20 second */ - Display_20_Seconds = 20, + /* Display the message in the viewport for 20 seconds */ + Show_20_Seconds = 20, - /* Display the message in the viewport for 30 second */ - Display_30_Seconds = 30, + /* Display the message in the viewport for 30 seconds */ + Show_30_Seconds = 30, - /* Display the message in the viewport for 1 second */ - Display_40_Seconds = 40, + /* Display the message in the viewport for 40 seconds */ + Show_40_Seconds = 40, - /* Display the message in the viewport for 1 second */ - Display_50_Seconds = 50, + /* Display the message in the viewport for 50 seconds */ + Show_50_Seconds = 50, - /* Display the message in the viewport for 1 second */ - Display_60_Seconds = 60, + /* Display the message in the viewport for 60 seconds */ + Show_60_Seconds = 60, - /* Display the message in the viewport for 1 second */ - Display_70_Seconds = 70, + /* Display the message in the viewport for 70 seconds */ + Show_70_Seconds = 70, - /* Display the message in the viewport for 1 second */ - Display_80_Seconds = 80, + /* Display the message in the viewport for 80 seconds */ + Show_80_Seconds = 80, - /* Display the message in the viewport for 1 second */ - Display_90_Seconds = 90, + /* Display the message in the viewport for 90 seconds */ + Show_90_Seconds = 90, - /* Display the message in the viewport for 1 second */ - Display_1_Minute = 101, + /* Display the message in the viewport for 1 minutes */ + Show_1_Minutes = 101, - /* Display the message in the viewport for 1 second */ - Display_2_Minutes = 102, + /* Display the message in the viewport for 2 minutes */ + Show_2_Minutes = 102, - /* Display the message in the viewport for 1 second */ - Display_3_Minutes = 103, + /* Display the message in the viewport for 3 minutes */ + Show_3_Minutes = 103, - /* Display the message in the viewport for 1 second */ - Display_4_Minutes = 104, + /* Display the message in the viewport for 4 minutes */ + Show_4_Minutes = 104, - /* Display the message in the viewport for 1 second */ - Display_5_Minutes = 105, + /* Display the message in the viewport for 5 minutes */ + Show_5_Minutes = 105, }; //