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) {
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();

View File

@@ -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.
//