Commit 96b8681e authored by Lucas Zaffuto's avatar Lucas Zaffuto
Browse files

correction de l'affichage du texte et augmentation de la limitede clients

parent d40b9e5f
......@@ -94,9 +94,10 @@ margin_bottom = 284.0
text = "Send"
[node name="chatlist" type="Label" parent="Chat"]
margin_top = 2.0
margin_top = -4793.0
margin_right = 1025.0
margin_bottom = 445.0
valign = 2
__meta__ = {
"_edit_use_anchors_": false
}
......
extends Node
const DEFAULT_PORT=25565
const MAX_CLIENTS=2
const MAX_CLIENTS=5
var server = null
var client = null
......
......@@ -59,6 +59,7 @@ func _player_disconnected(id) -> void:
func _on_send_pressed():
if message.text != null:
rpc("send", message.text)
chatlist.text = chatlist.text + info.name + " : " + message.text + "\n"
var msg = info.name + " : " + message.text
rpc("send", msg)
chatlist.text = chatlist.text + msg + "\n"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment