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) {
|
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();
|
||||||
|
|||||||
@@ -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.
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user