diff --git a/Content/Widgets/WB_Console.uasset b/Content/Widgets/WB_Console.uasset index fb6b0e8a..d55ec523 100644 --- a/Content/Widgets/WB_Console.uasset +++ b/Content/Widgets/WB_Console.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:01689b32f2395130506cfac6d4399a7cdccd9253918dc6ba168df39af72cc45e -size 176686 +oid sha256:31714d3863887a8681b7d27f8bd7b0bc58d3631416724409af2f6cf596418c1f +size 159474 diff --git a/Source/Integration/ConsoleOutput.cpp b/Source/Integration/ConsoleOutput.cpp index 5739270f..be054906 100644 --- a/Source/Integration/ConsoleOutput.cpp +++ b/Source/Integration/ConsoleOutput.cpp @@ -46,18 +46,11 @@ bool UlxConsoleOutput::MaybeAppendText(const FString& text) { } } -void UlxConsoleOutput::Append(const FString& text) { - bool modified = MaybeAppendText(text); - if (modified) { - Dirty = true; - Truncate(); - } -} - -void UlxConsoleOutput::AppendLine(const FString& text) { - bool modified = MaybeAppendNewline(); +void UlxConsoleOutput::Append(const FString& text, bool SeparateLine) { + bool modified = false; + if (SeparateLine) modified |= MaybeAppendNewline(); modified |= MaybeAppendText(text); - modified |= MaybeAppendNewline(); + if (SeparateLine) modified |= MaybeAppendNewline(); if (modified) { Dirty = true; Truncate(); diff --git a/Source/Integration/ConsoleOutput.h b/Source/Integration/ConsoleOutput.h index a89b6706..ad346c60 100644 --- a/Source/Integration/ConsoleOutput.h +++ b/Source/Integration/ConsoleOutput.h @@ -78,13 +78,11 @@ private: public: // Append text to the console. // - UFUNCTION(BlueprintCallable) - void Append(const FString& text); - - // Append text on a line by itself. + // If SeparateLine is true, we make sure there's a + // newline before and after the text. // UFUNCTION(BlueprintCallable) - void AppendLine(const FString& text); + void Append(const FString& text, bool SeparateLine); // Get the console text as a string. //