|
|
|
[gd_scene load_steps=4 format=3 uid="uid://cdxnwsgmevndb"]
|
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://Mods/copyMultiplayer/Scenes/copy_multiplayer_settings.gd" id="1_7d55i"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://qbho5oyu1kfa" path="res://Mods/copyMultiplayer/Resources/hidden.png" id="2_1u5pu"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://dcmljlb2v6p16" path="res://Mods/copyMultiplayer/Resources/visible.png" id="2_ibe7i"]
|
|
|
|
|
|
|
|
[node name="copyMultiplayerSettings" type="TabContainer" node_paths=PackedStringArray("connect_address", "connect_reveal", "connect_port", "connect_join", "connect_host", "connect_disconnect", "settings_cache", "settings_file_dialog", "settings_nickname", "stats_ping", "stats_average", "stats_maximum")]
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
current_tab = 0
|
|
|
|
script = ExtResource("1_7d55i")
|
|
|
|
visible_icon = ExtResource("2_ibe7i")
|
|
|
|
hidden_icon = ExtResource("2_1u5pu")
|
|
|
|
connect_address = NodePath("Connect/VBoxContainer/Join/Address")
|
|
|
|
connect_reveal = NodePath("Connect/VBoxContainer/Join/ShowHide")
|
|
|
|
connect_port = NodePath("Connect/VBoxContainer/Host/Port")
|
|
|
|
connect_join = NodePath("Connect/VBoxContainer/Join/Button")
|
|
|
|
connect_host = NodePath("Connect/VBoxContainer/Host/Button")
|
|
|
|
connect_disconnect = NodePath("Connect/VBoxContainer/Disconnect")
|
|
|
|
settings_cache = NodePath("Settings/VBoxContainer/Cache/LineEdit")
|
|
|
|
settings_file_dialog = NodePath("Settings/VBoxContainer/Cache/FileDialog")
|
|
|
|
settings_nickname = NodePath("Settings/VBoxContainer/Nickname/LineEdit")
|
|
|
|
|
|
|
|
[node name="Connect" type="MarginContainer" parent="."]
|
|
|
|
layout_mode = 2
|
|
|
|
theme_override_constants/margin_left = 4
|
|
|
|
theme_override_constants/margin_top = 4
|
|
|
|
theme_override_constants/margin_right = 4
|
|
|
|
theme_override_constants/margin_bottom = 4
|
|
|
|
metadata/_tab_index = 0
|
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="Connect"]
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
[node name="Join" type="HBoxContainer" parent="Connect/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="Connect/VBoxContainer/Join"]
|
|
|
|
custom_minimum_size = Vector2(100, 0)
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Address:"
|
|
|
|
horizontal_alignment = 2
|
|
|
|
|
|
|
|
[node name="Address" type="LineEdit" parent="Connect/VBoxContainer/Join"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
tooltip_text = "Address or IP of the host player to connect to.
|
|
|
|
Not used when you're hosting."
|
|
|
|
placeholder_text = "127.0.0.1"
|
|
|
|
secret = true
|
|
|
|
|
|
|
|
[node name="ShowHide" type="Button" parent="Connect/VBoxContainer/Join"]
|
|
|
|
layout_mode = 2
|
|
|
|
tooltip_text = "Show / Hide Address"
|
|
|
|
toggle_mode = true
|
|
|
|
icon = ExtResource("2_1u5pu")
|
|
|
|
flat = true
|
|
|
|
|
|
|
|
[node name="Button" type="Button" parent="Connect/VBoxContainer/Join"]
|
|
|
|
custom_minimum_size = Vector2(120, 0)
|
|
|
|
layout_mode = 2
|
|
|
|
tooltip_text = "Join an existing session."
|
|
|
|
text = "Join"
|
|
|
|
|
|
|
|
[node name="Host" type="HBoxContainer" parent="Connect/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="Connect/VBoxContainer/Host"]
|
|
|
|
custom_minimum_size = Vector2(100, 0)
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Port:"
|
|
|
|
horizontal_alignment = 2
|
|
|
|
|
|
|
|
[node name="Port" type="SpinBox" parent="Connect/VBoxContainer/Host"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
tooltip_text = "Port to connect to / listen on.
|
|
|
|
Host must forward this port."
|
|
|
|
min_value = 1024.0
|
|
|
|
max_value = 65000.0
|
|
|
|
value = 52410.0
|
|
|
|
alignment = 2
|
|
|
|
|
|
|
|
[node name="Button" type="Button" parent="Connect/VBoxContainer/Host"]
|
|
|
|
custom_minimum_size = Vector2(120, 0)
|
|
|
|
layout_mode = 2
|
|
|
|
tooltip_text = "Open a new session, allowing
|
|
|
|
users to connect to your public IP."
|
|
|
|
text = "Host"
|
|
|
|
|
|
|
|
[node name="Disconnect" type="Button" parent="Connect/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
tooltip_text = "Disconnect from / close the current session."
|
|
|
|
disabled = true
|
|
|
|
text = "Disconnect
|
|
|
|
"
|
|
|
|
|
|
|
|
[node name="Settings" type="MarginContainer" parent="."]
|
|
|
|
visible = false
|
|
|
|
layout_mode = 2
|
|
|
|
theme_override_constants/margin_left = 4
|
|
|
|
theme_override_constants/margin_top = 4
|
|
|
|
theme_override_constants/margin_right = 4
|
|
|
|
theme_override_constants/margin_bottom = 4
|
|
|
|
metadata/_tab_index = 1
|
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="Settings"]
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
[node name="Cache" type="HBoxContainer" parent="Settings/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="Settings/VBoxContainer/Cache"]
|
|
|
|
custom_minimum_size = Vector2(100, 0)
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Cache:"
|
|
|
|
horizontal_alignment = 2
|
|
|
|
|
|
|
|
[node name="LineEdit" type="LineEdit" parent="Settings/VBoxContainer/Cache"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
tooltip_text = "The directory other players' models will be loaded from.
|
|
|
|
Filenames must match exactly for this to work."
|
|
|
|
|
|
|
|
[node name="Button" type="Button" parent="Settings/VBoxContainer/Cache"]
|
|
|
|
layout_mode = 2
|
|
|
|
tooltip_text = "Browse Directory"
|
|
|
|
text = " ... "
|
|
|
|
|
|
|
|
[node name="FileDialog" type="FileDialog" parent="Settings/VBoxContainer/Cache"]
|
|
|
|
title = "Open a Directory"
|
|
|
|
ok_button_text = "Select Current Folder"
|
|
|
|
file_mode = 2
|
|
|
|
access = 2
|
|
|
|
|
|
|
|
[node name="Nickname" type="HBoxContainer" parent="Settings/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="Settings/VBoxContainer/Nickname"]
|
|
|
|
custom_minimum_size = Vector2(100, 0)
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Nickname:"
|
|
|
|
horizontal_alignment = 2
|
|
|
|
|
|
|
|
[node name="LineEdit" type="LineEdit" parent="Settings/VBoxContainer/Nickname"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
|
|
|
[node name="Players" type="MarginContainer" parent="."]
|
|
|
|
visible = false
|
|
|
|
layout_mode = 2
|
|
|
|
theme_override_constants/margin_left = 4
|
|
|
|
theme_override_constants/margin_top = 4
|
|
|
|
theme_override_constants/margin_right = 4
|
|
|
|
theme_override_constants/margin_bottom = 4
|
|
|
|
metadata/_tab_index = 2
|
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="Players"]
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
[connection signal="toggled" from="Connect/VBoxContainer/Join/ShowHide" to="." method="_on_show_hide_address_toggled"]
|
|
|
|
[connection signal="pressed" from="Settings/VBoxContainer/Cache/Button" to="." method="_on_cache_dir_dialog_pressed"]
|