aboutsummaryrefslogtreecommitdiff
path: root/client/menu/lobby.tscn
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-07-11 14:26:20 +0200
committertpart <tpart120@proton.me>2024-07-11 14:26:25 +0200
commit0aab6a06e3d548bc08c94c33f0b6f327ee5f5612 (patch)
treea254642485f19ad18135c9442ee3b5bc0cef86e5 /client/menu/lobby.tscn
parentc94bbfe317ebcec042f2e6e7a16f6dda068db9a2 (diff)
downloadhurrycurry-0aab6a06e3d548bc08c94c33f0b6f327ee5f5612.tar
hurrycurry-0aab6a06e3d548bc08c94c33f0b6f327ee5f5612.tar.bz2
hurrycurry-0aab6a06e3d548bc08c94c33f0b6f327ee5f5612.tar.zst
Add map details to lobby UI
Diffstat (limited to 'client/menu/lobby.tscn')
-rw-r--r--client/menu/lobby.tscn51
1 files changed, 41 insertions, 10 deletions
diff --git a/client/menu/lobby.tscn b/client/menu/lobby.tscn
index 8510b995..06b050d0 100644
--- a/client/menu/lobby.tscn
+++ b/client/menu/lobby.tscn
@@ -1,4 +1,4 @@
-[gd_scene load_steps=10 format=3 uid="uid://bc50la65ntifb"]
+[gd_scene load_steps=12 format=3 uid="uid://bc50la65ntifb"]
[ext_resource type="Theme" uid="uid://b0qmvo504e457" path="res://menu/theme/theme.tres" id="1_u18ke"]
[ext_resource type="Script" path="res://menu/lobby.gd" id="2_7657i"]
@@ -8,8 +8,13 @@
[ext_resource type="Texture2D" uid="uid://b33qmctbpf48g" path="res://menu/arrow_hover.svg" id="5_odwav"]
[ext_resource type="Texture2D" uid="uid://by3qsrpxnfq4w" path="res://menu/arrow_focus.svg" id="6_tulu3"]
[ext_resource type="PackedScene" uid="uid://b1f7bgn65j7b5" path="res://menu/controller_buttons/controller_button.tscn" id="7_t6mox"]
+[ext_resource type="FontFile" uid="uid://5ixo6b3bd3km" path="res://menu/theme/font-josefin-sans.woff2" id="8_cwbpa"]
[ext_resource type="Texture2D" uid="uid://bsx6fo7mv2u6a" path="res://menu/controller_buttons/x.svg" id="9_q14bw"]
+[sub_resource type="FontVariation" id="FontVariation_5xxr2"]
+base_font = ExtResource("8_cwbpa")
+variation_embolden = 1.5
+
[node name="Lobby" type="Control" groups=["no_auto_focus"]]
layout_mode = 3
anchors_preset = 15
@@ -60,12 +65,15 @@ layout_mode = 2
theme_override_constants/separation = 24
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/Bottom/MarginContainer/VBoxContainer"]
-visible = false
layout_mode = 2
alignment = 1
-[node name="Left" type="TextureButton" parent="VBoxContainer/Bottom/MarginContainer/VBoxContainer/HBoxContainer"]
-custom_minimum_size = Vector2(19, 0)
+[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/Bottom/MarginContainer/VBoxContainer/HBoxContainer"]
+layout_mode = 2
+alignment = 1
+
+[node name="Left" type="TextureButton" parent="VBoxContainer/Bottom/MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer"]
+custom_minimum_size = Vector2(19, 28)
layout_mode = 2
focus_mode = 0
texture_normal = ExtResource("3_jxleg")
@@ -76,15 +84,38 @@ ignore_texture_size = true
stretch_mode = 4
flip_h = true
-[node name="MapSelection" type="Label" parent="VBoxContainer/Bottom/MarginContainer/VBoxContainer/HBoxContainer"]
+[node name="Map" type="VBoxContainer" parent="VBoxContainer/Bottom/MarginContainer/VBoxContainer/HBoxContainer"]
+layout_mode = 2
+
+[node name="Name" type="Label" parent="VBoxContainer/Bottom/MarginContainer/VBoxContainer/HBoxContainer/Map"]
custom_minimum_size = Vector2(264, 0)
layout_mode = 2
-text = "Map"
+theme_override_fonts/font = SubResource("FontVariation_5xxr2")
+theme_override_font_sizes/font_size = 24
+text = "Map name"
horizontal_alignment = 1
vertical_alignment = 1
-[node name="Right" type="TextureButton" parent="VBoxContainer/Bottom/MarginContainer/VBoxContainer/HBoxContainer"]
-custom_minimum_size = Vector2(19, 0)
+[node name="Players" type="Label" parent="VBoxContainer/Bottom/MarginContainer/VBoxContainer/HBoxContainer/Map"]
+custom_minimum_size = Vector2(264, 0)
+layout_mode = 2
+text = "Players"
+horizontal_alignment = 1
+vertical_alignment = 1
+
+[node name="Difficulty" type="Label" parent="VBoxContainer/Bottom/MarginContainer/VBoxContainer/HBoxContainer/Map"]
+custom_minimum_size = Vector2(264, 0)
+layout_mode = 2
+text = "Difficulty"
+horizontal_alignment = 1
+vertical_alignment = 1
+
+[node name="VBoxContainer2" type="VBoxContainer" parent="VBoxContainer/Bottom/MarginContainer/VBoxContainer/HBoxContainer"]
+layout_mode = 2
+alignment = 1
+
+[node name="Right" type="TextureButton" parent="VBoxContainer/Bottom/MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer2"]
+custom_minimum_size = Vector2(19, 28)
layout_mode = 2
focus_mode = 0
texture_normal = ExtResource("3_jxleg")
@@ -105,6 +136,6 @@ expand_icon = true
controller_texture = ExtResource("9_q14bw")
press_action = "start_game"
-[connection signal="pressed" from="VBoxContainer/Bottom/MarginContainer/VBoxContainer/HBoxContainer/Left" to="." method="_on_left_pressed"]
-[connection signal="pressed" from="VBoxContainer/Bottom/MarginContainer/VBoxContainer/HBoxContainer/Right" to="." method="_on_right_pressed"]
+[connection signal="pressed" from="VBoxContainer/Bottom/MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer/Left" to="." method="_on_left_pressed"]
+[connection signal="pressed" from="VBoxContainer/Bottom/MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer2/Right" to="." method="_on_right_pressed"]
[connection signal="pressed" from="VBoxContainer/Bottom/MarginContainer/VBoxContainer/CenterContainer/ControllerButton" to="." method="_on_controller_button_pressed"]