Lots more work on FormatErrorMessage

This commit is contained in:
2024-11-14 23:57:04 -05:00
parent 8e83bb4a9d
commit 26fca0fca8
3 changed files with 124 additions and 13 deletions

View File

@@ -20,6 +20,51 @@ class FString;
class UEdGraph;
class UObject;
//
// Export log verbosity to blueprints.
//
UENUM(BlueprintType)
enum class ElxLogVerbosity : uint8 {
Fatal,
Error,
Warning,
Display,
Log,
Verbose,
VeryVerbose,
};
//
// Display Duration - how long to show a message on-screen.
//
UENUM(BlueprintType)
enum class ElxDisplayDuration : uint8 {
No_Display = 0,
Display_1_Seconds = 1,
Display_2_Seconds = 2,
Display_3_Seconds = 3,
Display_4_Seconds = 4,
Display_5_Seconds = 5,
Display_10_Seconds = 10,
Display_20_Seconds = 20,
Display_30_Seconds = 30,
Display_40_Seconds = 40,
Display_50_Seconds = 50,
Display_60_Seconds = 60,
Display_70_Seconds = 70,
Display_80_Seconds = 80,
Display_90_Seconds = 90,
Display_1_Minute = 101,
Display_2_Minutes = 102,
Display_3_Minutes = 103,
Display_4_Minutes = 104,
Display_5_Minutes = 105,
};
//
// Library functions used by Format Error Message.
//
UCLASS(MinimalAPI)
class UlxFormatErrorLibrary : public UBlueprintFunctionLibrary
{
@@ -27,9 +72,13 @@ class UlxFormatErrorLibrary : public UBlueprintFunctionLibrary
public:
UFUNCTION(BlueprintCallable, meta=(BlueprintInternalUseOnly = "true"))
static void FormatErrorInternal(FText InPattern, TArray<FFormatArgumentData> InArgs);
static void FormatErrorInternal(ElxLogVerbosity Verbosity, ElxDisplayDuration DisplayDuration, FText InPattern, TArray<FFormatArgumentData> InArgs);
};
//
// Library functions used by Format Error Message, and also
// by scripters writing their own Error Message Handler classes.
//
UCLASS(MinimalAPI)
class UK2Node_FormatError : public UK2Node
{