commit cc4271403bc0daa3728a9543140492a243d6050a parent 4371cc499979a8f7074559db71b2c00c3211485d Author: FIGBERT <figbert@figbert.com> Date: Sat, 30 Jan 2021 23:27:36 -0800 Add newlines at the end of Label additions Diffstat:
M | src/scripts/main.gd | | | 8 | ++++---- |
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/scripts/main.gd b/src/scripts/main.gd @@ -31,19 +31,19 @@ func _peer_joined(id: int) -> void: if get_tree().is_network_server(): print("%s joined successfully" % id) elif id != get_tree().get_network_unique_id(): - $Label.text += "%s has joined the lobby" % id + $Label.text += "%s has joined the lobby\n" % id func _peer_left(id: int) -> void: if get_tree().is_network_server(): print("%s disconnected from the server" % id) elif id != get_tree().get_network_unique_id(): - $Label.text += "%s has left the lobby" % id + $Label.text += "%s has left the lobby\n" % id func _connected_successfully() -> void: - $Label.text += "Connection to server established." + $Label.text += "Connection to server established.\n" func _connection_failed() -> void: - $Label.text += "Could not connect to server." + $Label.text += "Could not connect to server.\n"