tcg/main.tscn

72 lines
1.8 KiB
Text
Raw Normal View History

2025-01-25 18:47:56 +07:00
[gd_scene load_steps=4 format=3 uid="uid://c7gn46af6whf8"]
2025-01-11 10:07:37 +07:00
[ext_resource type="Script" path="res://main.gd" id="1_e0ud3"]
2025-01-25 11:45:55 +07:00
[ext_resource type="Script" path="res://server_discovery.gd" id="2_hed18"]
2025-01-25 18:47:56 +07:00
[ext_resource type="PackedScene" uid="uid://l2ehohbd1xhk" path="res://demo_game.tscn" id="3_2ln6b"]
2025-01-11 10:07:37 +07:00
[node name="Main" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_e0ud3")
[node name="BeforeConnect" type="VBoxContainer" parent="."]
unique_name_in_owner = true
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.0
offset_right = 187.5
offset_bottom = 88.0
grow_horizontal = 2
grow_vertical = 2
alignment = 1
2025-01-25 11:45:55 +07:00
[node name="HostButton" type="Button" parent="BeforeConnect"]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 64)
layout_mode = 2
text = "Host"
2025-01-11 10:07:37 +07:00
[node name="ConnectButton" type="Button" parent="BeforeConnect"]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 64)
layout_mode = 2
text = "Connect"
2025-01-25 11:45:55 +07:00
[node name="DiscoveryTimer" type="Timer" parent="BeforeConnect"]
unique_name_in_owner = true
[node name="ServerDiscovery" type="Node" parent="BeforeConnect"]
unique_name_in_owner = true
script = ExtResource("2_hed18")
2025-01-25 18:47:56 +07:00
[node name="AfterConnect" type="Control" parent="."]
2025-01-11 10:07:37 +07:00
unique_name_in_owner = true
visible = false
layout_mode = 1
2025-01-25 18:47:56 +07:00
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
2025-01-11 10:07:37 +07:00
grow_horizontal = 2
grow_vertical = 2
2025-01-25 18:47:56 +07:00
[node name="DemoGame" parent="AfterConnect" instance=ExtResource("3_2ln6b")]
layout_mode = 1
2025-01-11 10:07:37 +07:00
2025-01-25 11:45:55 +07:00
[node name="DisconnectButton" type="Button" parent="AfterConnect"]
unique_name_in_owner = true
layout_mode = 2
2025-01-25 18:47:56 +07:00
offset_left = 966.0
offset_right = 1152.0
offset_bottom = 31.0
size_flags_horizontal = 8
2025-01-25 11:45:55 +07:00
text = "Disconnect"