Clean up WB_console

This commit is contained in:
2026-03-02 18:17:50 -05:00
parent bb91711a63
commit 08d9ab2823
3 changed files with 9 additions and 18 deletions

Binary file not shown.

View File

@@ -46,18 +46,11 @@ bool UlxConsoleOutput::MaybeAppendText(const FString& text) {
} }
} }
void UlxConsoleOutput::Append(const FString& text) { void UlxConsoleOutput::Append(const FString& text, bool SeparateLine) {
bool modified = MaybeAppendText(text); bool modified = false;
if (modified) { if (SeparateLine) modified |= MaybeAppendNewline();
Dirty = true;
Truncate();
}
}
void UlxConsoleOutput::AppendLine(const FString& text) {
bool modified = MaybeAppendNewline();
modified |= MaybeAppendText(text); modified |= MaybeAppendText(text);
modified |= MaybeAppendNewline(); if (SeparateLine) modified |= MaybeAppendNewline();
if (modified) { if (modified) {
Dirty = true; Dirty = true;
Truncate(); Truncate();

View File

@@ -78,13 +78,11 @@ private:
public: public:
// Append text to the console. // Append text to the console.
// //
UFUNCTION(BlueprintCallable) // If SeparateLine is true, we make sure there's a
void Append(const FString& text); // newline before and after the text.
// Append text on a line by itself.
// //
UFUNCTION(BlueprintCallable) UFUNCTION(BlueprintCallable)
void AppendLine(const FString& text); void Append(const FString& text, bool SeparateLine);
// Get the console text as a string. // Get the console text as a string.
// //