aboutsummaryrefslogtreecommitdiff
path: root/client/menu/lobby/player.gd
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-07-07 18:52:49 +0200
committertpart <tpart120@proton.me>2024-07-07 18:52:54 +0200
commit44499c6e81dc5cc014f502cf6cb4db0c96081d7e (patch)
tree7cf07ee27ba517d7d4766677cc367bd1f9a16fbd /client/menu/lobby/player.gd
parenta72f4466c568dd7d7fe6f76a295fdd1162c1d312 (diff)
downloadhurrycurry-44499c6e81dc5cc014f502cf6cb4db0c96081d7e.tar
hurrycurry-44499c6e81dc5cc014f502cf6cb4db0c96081d7e.tar.bz2
hurrycurry-44499c6e81dc5cc014f502cf6cb4db0c96081d7e.tar.zst
Add lobby menu
Diffstat (limited to 'client/menu/lobby/player.gd')
-rw-r--r--client/menu/lobby/player.gd22
1 files changed, 22 insertions, 0 deletions
diff --git a/client/menu/lobby/player.gd b/client/menu/lobby/player.gd
new file mode 100644
index 00000000..c5c05eb4
--- /dev/null
+++ b/client/menu/lobby/player.gd
@@ -0,0 +1,22 @@
+# Undercooked - a game about cooking
+# Copyright 2024 tpart
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, version 3 of the License only.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <https://www.gnu.org/licenses/>.
+#
+extends PanelContainer
+class_name PlayerTag
+
+@onready var name_label = $MarginContainer/HBoxContainer/Label
+
+func setup(player_name: String):
+ name_label.text = player_name