Move terminal text update to Update
This commit is contained in:
parent
8edd5a81fd
commit
2d41342790
@ -98,6 +98,10 @@ namespace NeonTea.Quakeball.Interface {
|
||||
InputField.ActivateInputField();
|
||||
InputField.readOnly = false;
|
||||
}
|
||||
if (IsOpen) {
|
||||
Text = String.Join("\n", Messages);
|
||||
TextField.text = Text;
|
||||
}
|
||||
}
|
||||
|
||||
public bool RegisterCommand(string name, Func<string[], bool> command) {
|
||||
@ -136,8 +140,6 @@ namespace NeonTea.Quakeball.Interface {
|
||||
|
||||
public int Println(string message) {
|
||||
Messages.Add(message);
|
||||
Text = String.Join("\n", Messages.ToArray());
|
||||
TextField.text = Text;
|
||||
return Messages.Count - 1;
|
||||
}
|
||||
|
||||
@ -146,8 +148,6 @@ namespace NeonTea.Quakeball.Interface {
|
||||
return;
|
||||
}
|
||||
Messages[idx] = message;
|
||||
Text = String.Join("\n", Messages.ToArray());
|
||||
TextField.text = Text;
|
||||
}
|
||||
|
||||
private void Scroll(int amount) {
|
||||
|
Loading…
Reference in New Issue
Block a user