Lua Console Overhaul in progress
This commit is contained in:
@@ -5,12 +5,12 @@
|
||||
//
|
||||
// ConsoleOutput
|
||||
//
|
||||
// Storing the text that goes in the unreal console.
|
||||
// Storing the text that goes in the command console.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
void FlxConsoleOutput::Truncate() {
|
||||
void UlxConsoleOutput::Truncate() {
|
||||
int lines = 50;
|
||||
int csize = Content.Len();
|
||||
int total = 0;
|
||||
@@ -25,7 +25,7 @@ void FlxConsoleOutput::Truncate() {
|
||||
}
|
||||
}
|
||||
|
||||
bool FlxConsoleOutput::MaybeAppendNewline() {
|
||||
bool UlxConsoleOutput::MaybeAppendNewline() {
|
||||
int csize = Content.Len();
|
||||
if ((csize > 0) && (Content[csize - 1] != '\n')) {
|
||||
Content += TEXT("\n");
|
||||
@@ -36,7 +36,7 @@ bool FlxConsoleOutput::MaybeAppendNewline() {
|
||||
}
|
||||
}
|
||||
|
||||
bool FlxConsoleOutput::MaybeAppendText(const FString& text) {
|
||||
bool UlxConsoleOutput::MaybeAppendText(const FString& text) {
|
||||
if (!text.IsEmpty()) {
|
||||
Content += text;
|
||||
return true;
|
||||
@@ -46,7 +46,7 @@ bool FlxConsoleOutput::MaybeAppendText(const FString& text) {
|
||||
}
|
||||
}
|
||||
|
||||
void FlxConsoleOutput::Append(const FString& text) {
|
||||
void UlxConsoleOutput::Append(const FString& text) {
|
||||
bool modified = MaybeAppendText(text);
|
||||
if (modified) {
|
||||
Dirty = true;
|
||||
@@ -54,7 +54,7 @@ void FlxConsoleOutput::Append(const FString& text) {
|
||||
}
|
||||
}
|
||||
|
||||
void FlxConsoleOutput::AppendLine(const FString& text) {
|
||||
void UlxConsoleOutput::AppendLine(const FString& text) {
|
||||
bool modified = MaybeAppendNewline();
|
||||
modified |= MaybeAppendText(text);
|
||||
modified |= MaybeAppendNewline();
|
||||
|
||||
Reference in New Issue
Block a user