diff options
author | tpart <tpart120@proton.me> | 2024-07-07 18:52:49 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-07-07 18:52:54 +0200 |
commit | 44499c6e81dc5cc014f502cf6cb4db0c96081d7e (patch) | |
tree | 7cf07ee27ba517d7d4766677cc367bd1f9a16fbd /client/menu/lobby.tscn | |
parent | a72f4466c568dd7d7fe6f76a295fdd1162c1d312 (diff) | |
download | hurrycurry-44499c6e81dc5cc014f502cf6cb4db0c96081d7e.tar hurrycurry-44499c6e81dc5cc014f502cf6cb4db0c96081d7e.tar.bz2 hurrycurry-44499c6e81dc5cc014f502cf6cb4db0c96081d7e.tar.zst |
Add lobby menu
Diffstat (limited to 'client/menu/lobby.tscn')
-rw-r--r-- | client/menu/lobby.tscn | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/client/menu/lobby.tscn b/client/menu/lobby.tscn new file mode 100644 index 00000000..38b2a5b9 --- /dev/null +++ b/client/menu/lobby.tscn @@ -0,0 +1,110 @@ +[gd_scene load_steps=10 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"] +[ext_resource type="StyleBox" uid="uid://de80aw86emnql" path="res://menu/theme/lobby_panel_override.tres" id="3_6iqoe"] +[ext_resource type="Texture2D" uid="uid://35rd5gamtyqm" path="res://menu/arrow.svg" id="3_jxleg"] +[ext_resource type="Texture2D" uid="uid://j75dbytlbju" path="res://menu/arrow_pressed.svg" id="4_eapmn"] +[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="Texture2D" uid="uid://bgkhnp15u1utp" path="res://menu/controller_buttons/a.svg" id="8_chn2q"] + +[node name="Lobby" type="Control" groups=["no_auto_focus"]] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme = ExtResource("1_u18ke") +script = ExtResource("2_7657i") + +[node name="VBoxContainer" type="VBoxContainer" parent="."] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="Top" type="PanelContainer" parent="VBoxContainer"] +layout_mode = 2 +theme_override_styles/panel = ExtResource("3_6iqoe") + +[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer/Top"] +layout_mode = 2 + +[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/Top/MarginContainer"] +layout_mode = 2 +theme_override_constants/separation = 24 + +[node name="Players" type="HBoxContainer" parent="VBoxContainer/Top/MarginContainer/VBoxContainer"] +layout_mode = 2 +alignment = 1 + +[node name="Spacer" type="Control" parent="VBoxContainer"] +layout_mode = 2 +size_flags_vertical = 3 +mouse_filter = 2 + +[node name="Bottom" type="PanelContainer" parent="VBoxContainer"] +layout_mode = 2 +theme_override_styles/panel = ExtResource("3_6iqoe") + +[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer/Bottom"] +layout_mode = 2 + +[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/Bottom/MarginContainer"] +layout_mode = 2 +theme_override_constants/separation = 24 + +[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/Bottom/MarginContainer/VBoxContainer"] +layout_mode = 2 +alignment = 1 + +[node name="Left" type="TextureButton" parent="VBoxContainer/Bottom/MarginContainer/VBoxContainer/HBoxContainer"] +custom_minimum_size = Vector2(19, 0) +layout_mode = 2 +focus_mode = 0 +texture_normal = ExtResource("3_jxleg") +texture_pressed = ExtResource("4_eapmn") +texture_hover = ExtResource("5_odwav") +texture_focused = ExtResource("6_tulu3") +ignore_texture_size = true +stretch_mode = 4 +flip_h = true + +[node name="MapSelection" type="Label" parent="VBoxContainer/Bottom/MarginContainer/VBoxContainer/HBoxContainer"] +custom_minimum_size = Vector2(264, 0) +layout_mode = 2 +text = "Map" +horizontal_alignment = 1 +vertical_alignment = 1 + +[node name="Right" type="TextureButton" parent="VBoxContainer/Bottom/MarginContainer/VBoxContainer/HBoxContainer"] +custom_minimum_size = Vector2(19, 0) +layout_mode = 2 +focus_mode = 0 +texture_normal = ExtResource("3_jxleg") +texture_pressed = ExtResource("4_eapmn") +texture_hover = ExtResource("5_odwav") +texture_focused = ExtResource("6_tulu3") +ignore_texture_size = true +stretch_mode = 4 + +[node name="CenterContainer" type="CenterContainer" parent="VBoxContainer/Bottom/MarginContainer/VBoxContainer"] +layout_mode = 2 + +[node name="ControllerButton" parent="VBoxContainer/Bottom/MarginContainer/VBoxContainer/CenterContainer" instance=ExtResource("7_t6mox")] +custom_minimum_size = Vector2(148, 0) +layout_mode = 2 +text = "Start Game" +icon = ExtResource("8_chn2q") +expand_icon = true +controller_texture = ExtResource("8_chn2q") +press_action = "ui_accept" + +[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/CenterContainer/ControllerButton" to="." method="_on_controller_button_pressed"] |