replace with multiplayer-coop files
This commit is contained in:
111
src/scenes/main_menu.tscn
Normal file
111
src/scenes/main_menu.tscn
Normal file
@@ -0,0 +1,111 @@
|
||||
[gd_scene format=3 uid="uid://d4fgxay8kqp5u"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/game_ui.gd" id="1"]
|
||||
|
||||
[node name="GameUI" type="CanvasLayer"]
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="Control" type="Control" parent="."]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="MainMenu" type="Panel" parent="Control"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -250.0
|
||||
offset_top = -250.0
|
||||
offset_right = 250.0
|
||||
offset_bottom = 250.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="Control/MainMenu"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -200.0
|
||||
offset_top = -180.0
|
||||
offset_right = 200.0
|
||||
offset_bottom = 180.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_constants/separation = 20
|
||||
|
||||
[node name="Title" type="Label" parent="Control/MainMenu/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Multiplayer Coop RPG"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
autowrap_mode = 2
|
||||
|
||||
[node name="Spacer1" type="Control" parent="Control/MainMenu/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 20)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="LocalPlayersContainer" type="HBoxContainer" parent="Control/MainMenu/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="Control/MainMenu/VBoxContainer/LocalPlayersContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Local Players:"
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="SpinBox" type="SpinBox" parent="Control/MainMenu/VBoxContainer/LocalPlayersContainer"]
|
||||
layout_mode = 2
|
||||
min_value = 1.0
|
||||
max_value = 4.0
|
||||
value = 1.0
|
||||
|
||||
[node name="AddressContainer" type="HBoxContainer" parent="Control/MainMenu/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="Control/MainMenu/VBoxContainer/AddressContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Server Address:"
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="AddressInput" type="LineEdit" parent="Control/MainMenu/VBoxContainer/AddressContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
placeholder_text = "127.0.0.1"
|
||||
expand_to_text_length = true
|
||||
|
||||
[node name="Spacer2" type="Control" parent="Control/MainMenu/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 20)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HostButton" type="Button" parent="Control/MainMenu/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Host Game"
|
||||
|
||||
[node name="JoinButton" type="Button" parent="Control/MainMenu/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Join Game"
|
||||
|
||||
[node name="Spacer3" type="Control" parent="Control/MainMenu/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 20)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="Instructions" type="Label" parent="Control/MainMenu/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Controls:
|
||||
WASD/Arrows - Move (P1) | Gamepad (P2+)
|
||||
E/A (Tap) - Lift/Throw
|
||||
E/A (Hold) - Push/Pull"
|
||||
horizontal_alignment = 1
|
||||
autowrap_mode = 2
|
||||
|
||||
Reference in New Issue
Block a user