170 lines
6.2 KiB
Plaintext
170 lines
6.2 KiB
Plaintext
|
|
[gd_scene load_steps=4 format=3]
|
||
|
|
|
||
|
|
[ext_resource type="Script" path="res://script/pausemenu.gd" id="1_0khfh"]
|
||
|
|
|
||
|
|
[sub_resource type="Gradient" id="Gradient_qajsf"]
|
||
|
|
colors = PackedColorArray(0, 0, 0, 1, 0, 0, 0, 1)
|
||
|
|
|
||
|
|
[sub_resource type="GradientTexture2D" id="GradientTexture2D_sp1j3"]
|
||
|
|
gradient = SubResource("Gradient_qajsf")
|
||
|
|
width = 32
|
||
|
|
height = 32
|
||
|
|
fill_to = Vector2(1, 1)
|
||
|
|
|
||
|
|
[node name="Mainmenu" type="Control"]
|
||
|
|
z_index = 4
|
||
|
|
layout_mode = 3
|
||
|
|
anchors_preset = 15
|
||
|
|
anchor_right = 1.0
|
||
|
|
anchor_bottom = 1.0
|
||
|
|
grow_horizontal = 2
|
||
|
|
grow_vertical = 2
|
||
|
|
script = ExtResource("1_0khfh")
|
||
|
|
|
||
|
|
[node name="Menu" type="Panel" parent="."]
|
||
|
|
process_mode = 3
|
||
|
|
layout_mode = 0
|
||
|
|
anchor_right = 1.0
|
||
|
|
anchor_bottom = 1.0
|
||
|
|
grow_horizontal = 2
|
||
|
|
grow_vertical = 2
|
||
|
|
focus_mode = 2
|
||
|
|
|
||
|
|
[node name="MarginContainer" type="MarginContainer" parent="Menu"]
|
||
|
|
layout_mode = 1
|
||
|
|
anchors_preset = 15
|
||
|
|
anchor_right = 1.0
|
||
|
|
anchor_bottom = 1.0
|
||
|
|
grow_horizontal = 2
|
||
|
|
grow_vertical = 2
|
||
|
|
theme_override_constants/margin_left = 50
|
||
|
|
theme_override_constants/margin_top = 50
|
||
|
|
theme_override_constants/margin_right = 50
|
||
|
|
theme_override_constants/margin_bottom = 50
|
||
|
|
|
||
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="Menu/MarginContainer"]
|
||
|
|
layout_mode = 2
|
||
|
|
|
||
|
|
[node name="HBoxContainer4" type="HBoxContainer" parent="Menu/MarginContainer/VBoxContainer"]
|
||
|
|
layout_mode = 2
|
||
|
|
|
||
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer4"]
|
||
|
|
custom_minimum_size = Vector2(32, 32)
|
||
|
|
layout_mode = 2
|
||
|
|
|
||
|
|
[node name="ProfileSprite" type="Sprite2D" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer4/VBoxContainer"]
|
||
|
|
unique_name_in_owner = true
|
||
|
|
texture = SubResource("GradientTexture2D_sp1j3")
|
||
|
|
centered = false
|
||
|
|
|
||
|
|
[node name="VBoxContainer2" type="VBoxContainer" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer4"]
|
||
|
|
layout_mode = 2
|
||
|
|
size_flags_horizontal = 3
|
||
|
|
|
||
|
|
[node name="NameEdit" type="LineEdit" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer4/VBoxContainer2"]
|
||
|
|
layout_mode = 2
|
||
|
|
size_flags_horizontal = 3
|
||
|
|
size_flags_stretch_ratio = 2.0
|
||
|
|
max_length = 16
|
||
|
|
editable = false
|
||
|
|
|
||
|
|
[node name="VBoxContainer3" type="VBoxContainer" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer4"]
|
||
|
|
layout_mode = 2
|
||
|
|
|
||
|
|
[node name="Start" type="Button" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer4/VBoxContainer3"]
|
||
|
|
process_mode = 3
|
||
|
|
layout_mode = 2
|
||
|
|
disabled = true
|
||
|
|
text = "Start Game"
|
||
|
|
|
||
|
|
[node name="Disconnect" type="Button" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer4/VBoxContainer3"]
|
||
|
|
process_mode = 3
|
||
|
|
visible = false
|
||
|
|
layout_mode = 2
|
||
|
|
text = "Disconnect"
|
||
|
|
|
||
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="Menu/MarginContainer/VBoxContainer"]
|
||
|
|
layout_mode = 2
|
||
|
|
size_flags_vertical = 3
|
||
|
|
|
||
|
|
[node name="VBoxMultiplayerDisabled" type="VBoxContainer" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer"]
|
||
|
|
layout_mode = 2
|
||
|
|
size_flags_horizontal = 3
|
||
|
|
|
||
|
|
[node name="Label" type="Label" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer/VBoxMultiplayerDisabled"]
|
||
|
|
layout_mode = 2
|
||
|
|
text = "Global Lobbies"
|
||
|
|
|
||
|
|
[node name="ColorRect" type="ColorRect" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer/VBoxMultiplayerDisabled"]
|
||
|
|
layout_mode = 2
|
||
|
|
size_flags_vertical = 3
|
||
|
|
color = Color(0.129412, 0.129412, 0.129412, 1)
|
||
|
|
|
||
|
|
[node name="Label" type="Label" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer/VBoxMultiplayerDisabled/ColorRect"]
|
||
|
|
layout_mode = 1
|
||
|
|
anchors_preset = 8
|
||
|
|
anchor_left = 0.5
|
||
|
|
anchor_top = 0.5
|
||
|
|
anchor_right = 0.5
|
||
|
|
anchor_bottom = 0.5
|
||
|
|
offset_left = -20.0
|
||
|
|
offset_top = -11.5
|
||
|
|
offset_right = 20.0
|
||
|
|
offset_bottom = 11.5
|
||
|
|
grow_horizontal = 2
|
||
|
|
grow_vertical = 2
|
||
|
|
text = "Please start Steam to enable multiplayer mode.
|
||
|
|
Connections via LAN and join codes are currently disable / not implemented. "
|
||
|
|
horizontal_alignment = 1
|
||
|
|
|
||
|
|
[node name="RefreshLobbies2" type="Button" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer/VBoxMultiplayerDisabled"]
|
||
|
|
layout_mode = 2
|
||
|
|
focus_mode = 0
|
||
|
|
disabled = true
|
||
|
|
text = "Refresh"
|
||
|
|
|
||
|
|
[node name="VBoxLobbylist" type="VBoxContainer" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer"]
|
||
|
|
visible = false
|
||
|
|
layout_mode = 2
|
||
|
|
size_flags_horizontal = 3
|
||
|
|
|
||
|
|
[node name="Label" type="Label" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer/VBoxLobbylist"]
|
||
|
|
layout_mode = 2
|
||
|
|
text = "Global Lobbies"
|
||
|
|
|
||
|
|
[node name="ItemList" type="ItemList" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer/VBoxLobbylist"]
|
||
|
|
layout_mode = 2
|
||
|
|
size_flags_horizontal = 3
|
||
|
|
size_flags_vertical = 3
|
||
|
|
same_column_width = true
|
||
|
|
|
||
|
|
[node name="RefreshLobbies" type="Button" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer/VBoxLobbylist"]
|
||
|
|
layout_mode = 2
|
||
|
|
text = "Refresh"
|
||
|
|
|
||
|
|
[node name="VBoxCurrentLobby" type="VBoxContainer" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer"]
|
||
|
|
layout_mode = 2
|
||
|
|
size_flags_horizontal = 3
|
||
|
|
|
||
|
|
[node name="Label" type="Label" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer/VBoxCurrentLobby"]
|
||
|
|
layout_mode = 2
|
||
|
|
text = "Current Lobby"
|
||
|
|
|
||
|
|
[node name="LobbyMemberList" type="ItemList" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer/VBoxCurrentLobby"]
|
||
|
|
layout_mode = 2
|
||
|
|
size_flags_horizontal = 3
|
||
|
|
size_flags_vertical = 3
|
||
|
|
same_column_width = true
|
||
|
|
|
||
|
|
[node name="DebugModeBtn" type="Button" parent="Menu/MarginContainer/VBoxContainer/HBoxContainer/VBoxCurrentLobby"]
|
||
|
|
layout_mode = 2
|
||
|
|
text = "Leave lobby"
|
||
|
|
|
||
|
|
[connection signal="pressed" from="Menu/MarginContainer/VBoxContainer/HBoxContainer4/VBoxContainer3/Start" to="." method="_on_start_pressed"]
|
||
|
|
[connection signal="pressed" from="Menu/MarginContainer/VBoxContainer/HBoxContainer4/VBoxContainer3/Disconnect" to="." method="_on_disconnect_pressed"]
|
||
|
|
[connection signal="pressed" from="Menu/MarginContainer/VBoxContainer/HBoxContainer/VBoxMultiplayerDisabled/RefreshLobbies2" to="." method="_on_refresh_lobbies_2_pressed"]
|
||
|
|
[connection signal="item_activated" from="Menu/MarginContainer/VBoxContainer/HBoxContainer/VBoxLobbylist/ItemList" to="." method="_on_lobby_list_item_activated"]
|
||
|
|
[connection signal="pressed" from="Menu/MarginContainer/VBoxContainer/HBoxContainer/VBoxLobbylist/RefreshLobbies" to="." method="_on_refresh_lobbies_pressed"]
|
||
|
|
[connection signal="item_activated" from="Menu/MarginContainer/VBoxContainer/HBoxContainer/VBoxCurrentLobby/LobbyMemberList" to="." method="_on_lobby_member_list_item_activated"]
|
||
|
|
[connection signal="pressed" from="Menu/MarginContainer/VBoxContainer/HBoxContainer/VBoxCurrentLobby/DebugModeBtn" to="." method="_on_debug_mode_btn_pressed"]
|