refactor
This commit is contained in:
58
scenes/menu/lobby.tscn
Normal file
58
scenes/menu/lobby.tscn
Normal file
@@ -0,0 +1,58 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://b0lobby0001"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/menu/lobby.gd" id="1"]
|
||||
|
||||
[node name="Lobby" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="Background" type="ColorRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
color = Color(0.08, 0.08, 0.12, 1)
|
||||
|
||||
[node name="Center" type="CenterContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
|
||||
[node name="VBox" type="VBoxContainer" parent="Center"]
|
||||
layout_mode = 2
|
||||
custom_minimum_size = Vector2(420, 0)
|
||||
|
||||
[node name="Title" type="Label" parent="Center/VBox"]
|
||||
layout_mode = 2
|
||||
text = "Lobby"
|
||||
horizontal_alignment = 1
|
||||
theme_override_font_sizes/font_size = 36
|
||||
|
||||
[node name="StatusLabel" type="Label" parent="Center/VBox"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
horizontal_alignment = 1
|
||||
text = ""
|
||||
|
||||
[node name="PlayerList" type="ItemList" parent="Center/VBox"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
custom_minimum_size = Vector2(0, 180)
|
||||
|
||||
[node name="StartButton" type="Button" parent="Center/VBox"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "Start"
|
||||
custom_minimum_size = Vector2(0, 40)
|
||||
|
||||
[node name="BackButton" type="Button" parent="Center/VBox"]
|
||||
layout_mode = 2
|
||||
text = "Back"
|
||||
custom_minimum_size = Vector2(0, 40)
|
||||
|
||||
[connection signal="pressed" from="Center/VBox/StartButton" to="." method="_on_start_pressed"]
|
||||
[connection signal="pressed" from="Center/VBox/BackButton" to="." method="_on_back_pressed"]
|
||||
Reference in New Issue
Block a user