Merge branch 'master' of teascade.net:neontea/quakeball

This commit is contained in:
Sofia 2020-08-07 22:18:41 +03:00
commit 5ca75883b6

View File

@ -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) {