Clean up WB_console
This commit is contained in:
Binary file not shown.
@@ -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();
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user