commit 3d082e23916224df047bc7f81377110ccd230ce7 parent 512f1692942c3e8b22360a9fc6319a1e791471e3 Author: FIGBERT <figbert@figbert.com> Date: Sat, 30 Jan 2021 22:47:58 -0800 Replace client print with Label output Diffstat:
M | src/scenes/main.tscn | | | 8 | ++++++++ |
M | src/scripts/main.gd | | | 4 | ++-- |
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/scenes/main.tscn b/src/scenes/main.tscn @@ -4,3 +4,11 @@ [node name="Base" type="Node"] script = ExtResource( 1 ) + +[node name="Label" type="Label" parent="."] +margin_right = 1080.0 +margin_bottom = 2338.0 +valign = 1 +__meta__ = { +"_edit_use_anchors_": false +} diff --git a/src/scripts/main.gd b/src/scripts/main.gd @@ -38,8 +38,8 @@ func _client_left(id: int) -> void: func _connected_successfully() -> void: - print("Connection to server established.") + $Label.text += "Connection to server established." func _connection_failed() -> void: - print("Could not connect to server.") + $Label.text += "Could not connect to server."