aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-08-15 21:48:37 +0200
committertpart <tpart120@proton.me>2024-08-15 21:48:37 +0200
commit47de730dde9adedd06a8ee6be374e55ede0bc1fb (patch)
tree9512e274f31c9e8a5a767ba67172cc1bc004b05b
parente95cbb5ce2897d99be79c34a0b75eb844ab5b26d (diff)
downloadhurrycurry-47de730dde9adedd06a8ee6be374e55ede0bc1fb.tar
hurrycurry-47de730dde9adedd06a8ee6be374e55ede0bc1fb.tar.bz2
hurrycurry-47de730dde9adedd06a8ee6be374e55ede0bc1fb.tar.zst
Move player usernaem list in lobby to more convenient location
-rw-r--r--client/menu/lobby.gd2
-rw-r--r--client/menu/lobby.tscn24
2 files changed, 21 insertions, 5 deletions
diff --git a/client/menu/lobby.gd b/client/menu/lobby.gd
index d47a76f2..5385f6d6 100644
--- a/client/menu/lobby.gd
+++ b/client/menu/lobby.gd
@@ -33,7 +33,7 @@ var bot_display_names := {
var difficulty_names = [tr("Easy"), tr("Moderate"), tr("Hard"), tr("Very hard"), tr("Unplayable")]
@onready var game: Game = $"../Game"
-@onready var player_container = $HBoxContainer/Bottom/MarginContainer/VBoxContainer/Players
+@onready var player_container = $MarginContainer/VBoxContainer/Players
@onready var map_name_label = $HBoxContainer/Bottom/MarginContainer/VBoxContainer/HBoxContainer/Map/Name
@onready var map_player_label = $HBoxContainer/Bottom/MarginContainer/VBoxContainer/HBoxContainer/Map/Players
diff --git a/client/menu/lobby.tscn b/client/menu/lobby.tscn
index 3c732627..cde4c0b4 100644
--- a/client/menu/lobby.tscn
+++ b/client/menu/lobby.tscn
@@ -119,10 +119,6 @@ script = ExtResource("10_bgene")
layout_mode = 2
size_flags_horizontal = 3
-[node name="Players" type="HBoxContainer" parent="HBoxContainer/Bottom/MarginContainer/VBoxContainer"]
-layout_mode = 2
-alignment = 1
-
[node name="Bots" type="VBoxContainer" parent="HBoxContainer/Bottom/MarginContainer/VBoxContainer"]
layout_mode = 2
@@ -162,6 +158,26 @@ expand_icon = true
controller_texture = ExtResource("9_q14bw")
press_action = "start_game"
+[node name="MarginContainer" type="MarginContainer" parent="."]
+layout_mode = 1
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+grow_horizontal = 2
+grow_vertical = 2
+mouse_filter = 2
+theme_override_constants/margin_left = 342
+theme_override_constants/margin_top = 32
+theme_override_constants/margin_right = 342
+theme_override_constants/margin_bottom = 32
+
+[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
+layout_mode = 2
+
+[node name="Players" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
+layout_mode = 2
+alignment = 1
+
[connection signal="visibility_changed" from="." to="." method="check_for_music"]
[connection signal="pressed" from="HBoxContainer/Bottom/MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer/Left" to="." method="_on_left_pressed"]
[connection signal="pressed" from="HBoxContainer/Bottom/MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer2/Right" to="." method="_on_right_pressed"]