You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
107 lines
2.9 KiB
107 lines
2.9 KiB
[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 |
|
|
|
[node name="Button" type="Button" parent="Cache"] |
|
layout_mode = 2 |
|
tooltip_text = "Open Directory" |
|
text = " ... " |
|
|
|
[node name="FileDialog" type="FileDialog" parent="Cache"] |
|
title = "Select a Directory" |
|
ok_button_text = "Select" |
|
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 |
|
placeholder_text = "Anonymous" |
|
|
|
[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 |
|
placeholder_text = "127.0.0.1" |
|
secret = true |
|
|
|
[node name="ShowHide" type="Button" parent="Host"] |
|
layout_mode = 2 |
|
tooltip_text = "Reveal / Hide Address" |
|
toggle_mode = true |
|
icon = ExtResource("2_1u5pu") |
|
flat = true |
|
|
|
[node name="Port" type="SpinBox" parent="Host"] |
|
layout_mode = 2 |
|
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 = "Open Directory" |
|
text = "Join" |
|
|
|
[node name="Host" type="Button" parent="Buttons"] |
|
layout_mode = 2 |
|
size_flags_horizontal = 3 |
|
tooltip_text = "Open Directory" |
|
text = "Host" |
|
|
|
[node name="Disconnect" type="Button" parent="Buttons"] |
|
layout_mode = 2 |
|
size_flags_horizontal = 3 |
|
tooltip_text = "Open Directory" |
|
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"]
|
|
|