feat: more multiplayer
This commit is contained in:
parent
3981646279
commit
6c6e1b3289
9 changed files with 429 additions and 104 deletions
65
main.tscn
65
main.tscn
|
|
@ -1,7 +1,8 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://c7gn46af6whf8"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://c7gn46af6whf8"]
|
||||
|
||||
[ext_resource type="Script" path="res://main.gd" id="1_e0ud3"]
|
||||
[ext_resource type="Script" path="res://server_discovery.gd" id="2_hed18"]
|
||||
[ext_resource type="PackedScene" uid="uid://l2ehohbd1xhk" path="res://demo_game.tscn" id="3_2ln6b"]
|
||||
|
||||
[node name="Main" type="Control"]
|
||||
layout_mode = 3
|
||||
|
|
@ -28,18 +29,6 @@ grow_horizontal = 2
|
|||
grow_vertical = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="HostTextEdit" type="TextEdit" parent="BeforeConnect"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
placeholder_text = "192.168.*.*"
|
||||
|
||||
[node name="RefreshButton" type="Button" parent="BeforeConnect"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(0, 64)
|
||||
layout_mode = 2
|
||||
text = "Refresh"
|
||||
|
||||
[node name="HostButton" type="Button" parent="BeforeConnect"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(0, 64)
|
||||
|
|
@ -59,54 +48,24 @@ unique_name_in_owner = true
|
|||
unique_name_in_owner = true
|
||||
script = ExtResource("2_hed18")
|
||||
|
||||
[node name="AfterConnect" type="VBoxContainer" parent="."]
|
||||
[node name="AfterConnect" type="Control" parent="."]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -187.5
|
||||
offset_top = -88.5
|
||||
offset_right = 187.5
|
||||
offset_bottom = 88.5
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="CounterLabel" type="Label" parent="AfterConnect"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_font_sizes/font_size = 64
|
||||
text = "1"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
[node name="DemoGame" parent="AfterConnect" instance=ExtResource("3_2ln6b")]
|
||||
layout_mode = 1
|
||||
|
||||
[node name="DisconnectButton" type="Button" parent="AfterConnect"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
offset_left = 966.0
|
||||
offset_right = 1152.0
|
||||
offset_bottom = 31.0
|
||||
size_flags_horizontal = 8
|
||||
text = "Disconnect"
|
||||
|
||||
[node name="Actions" type="HBoxContainer" parent="AfterConnect"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="DecrementButton" type="Button" parent="AfterConnect/Actions"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "-"
|
||||
|
||||
[node name="IncrementButton" type="Button" parent="AfterConnect/Actions"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "+"
|
||||
|
||||
[node name="StartGameButton" type="Button" parent="AfterConnect"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Start Game"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue