[gd_scene load_steps=4 format=3 uid="uid://cdxnwsgmevndb"] [ext_resource type="Script" path="res://Mods/copyMultiplayer/Resources/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="VBoxContainer"] 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 script = ExtResource("1_7d55i") visible_icon = ExtResource("2_ibe7i") hidden_icon = ExtResource("2_1u5pu") [node name="Cache" type="HBoxContainer" parent="."] layout_mode = 2 [node name="Label" type="Label" parent="Cache"] custom_minimum_size = Vector2(60, 0) layout_mode = 2 text = "Cache" [node name="LineEdit" type="LineEdit" parent="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="Cache"] layout_mode = 2 tooltip_text = "Browse Directory" text = " ... " [node name="FileDialog" type="FileDialog" parent="Cache"] title = "Open a Directory" ok_button_text = "Select Current Folder" file_mode = 2 access = 2 [node name="Name" type="HBoxContainer" parent="."] layout_mode = 2 [node name="Label" type="Label" parent="Name"] custom_minimum_size = Vector2(60, 0) layout_mode = 2 text = "Name" [node name="LineEdit" type="LineEdit" parent="Name"] layout_mode = 2 size_flags_horizontal = 3 [node name="Host" type="HBoxContainer" parent="."] layout_mode = 2 [node name="Label" type="Label" parent="Host"] custom_minimum_size = Vector2(60, 0) layout_mode = 2 text = "Host" [node name="Address" type="LineEdit" parent="Host"] 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="Host"] layout_mode = 2 tooltip_text = "Show / Hide Address" toggle_mode = true icon = ExtResource("2_1u5pu") flat = true [node name="Port" type="SpinBox" parent="Host"] layout_mode = 2 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="Buttons" type="HBoxContainer" parent="."] layout_mode = 2 [node name="Join" type="Button" parent="Buttons"] layout_mode = 2 size_flags_horizontal = 3 tooltip_text = "Join an existing session." text = "Join" [node name="Host" type="Button" parent="Buttons"] layout_mode = 2 size_flags_horizontal = 3 tooltip_text = "Open a new session, allowing users to connect to your public IP." text = "Host" [node name="Disconnect" type="Button" parent="Buttons"] layout_mode = 2 size_flags_horizontal = 3 tooltip_text = "Disconnect from / close the current session." disabled = true text = "Disconnect " [connection signal="pressed" from="Cache/Button" to="." method="_on_cache_dir_dialog_pressed"] [connection signal="toggled" from="Host/ShowHide" to="." method="_on_show_hide_address_toggled"]