422 lines
9.5 KiB
Plaintext
422 lines
9.5 KiB
Plaintext
[gd_scene load_steps=17 format=2]
|
|
|
|
[ext_resource path="res://Networking.gd" type="Script" id=1]
|
|
[ext_resource path="res://art/multiplayer_menu/start_server.png" type="Texture" id=2]
|
|
[ext_resource path="res://art/multiplayer_menu/enter_username.png" type="Texture" id=3]
|
|
[ext_resource path="res://art/multiplayer_menu/back.png" type="Texture" id=4]
|
|
[ext_resource path="res://art/multiplayer_menu/checkmark.png" type="Texture" id=5]
|
|
[ext_resource path="res://art/multiplayer_menu/enter_ip.png" type="Texture" id=6]
|
|
[ext_resource path="res://art/multiplayer_menu/connect_to.png" type="Texture" id=7]
|
|
|
|
[sub_resource type="BitmapFont" id=1]
|
|
|
|
textures = [ ]
|
|
chars = PoolIntArray( )
|
|
kernings = PoolIntArray( )
|
|
height = 1.0
|
|
ascent = 0.0
|
|
distance_field = false
|
|
|
|
[sub_resource type="BitmapFont" id=2]
|
|
|
|
textures = [ ]
|
|
chars = PoolIntArray( )
|
|
kernings = PoolIntArray( )
|
|
height = 1.0
|
|
ascent = 0.0
|
|
distance_field = false
|
|
|
|
[sub_resource type="SpriteFrames" id=3]
|
|
|
|
animations = [ {
|
|
"frames": [ ExtResource( 2 ) ],
|
|
"loop": true,
|
|
"name": "default",
|
|
"speed": 5.0
|
|
} ]
|
|
|
|
[sub_resource type="SpriteFrames" id=4]
|
|
|
|
animations = [ {
|
|
"frames": [ ExtResource( 3 ) ],
|
|
"loop": true,
|
|
"name": "default",
|
|
"speed": 5.0
|
|
} ]
|
|
|
|
[sub_resource type="SpriteFrames" id=5]
|
|
|
|
animations = [ {
|
|
"frames": [ ExtResource( 4 ) ],
|
|
"loop": true,
|
|
"name": "default",
|
|
"speed": 5.0
|
|
} ]
|
|
|
|
[sub_resource type="SpriteFrames" id=6]
|
|
|
|
animations = [ {
|
|
"frames": [ ExtResource( 5 ) ],
|
|
"loop": true,
|
|
"name": "default",
|
|
"speed": 5.0
|
|
} ]
|
|
|
|
[sub_resource type="SpriteFrames" id=7]
|
|
|
|
animations = [ {
|
|
"frames": [ ExtResource( 6 ) ],
|
|
"loop": true,
|
|
"name": "default",
|
|
"speed": 5.0
|
|
} ]
|
|
|
|
[sub_resource type="SpriteFrames" id=8]
|
|
|
|
animations = [ {
|
|
"frames": [ ExtResource( 5 ) ],
|
|
"loop": true,
|
|
"name": "default",
|
|
"speed": 5.0
|
|
} ]
|
|
|
|
[sub_resource type="SpriteFrames" id=9]
|
|
|
|
animations = [ {
|
|
"frames": [ ExtResource( 7 ) ],
|
|
"loop": true,
|
|
"name": "default",
|
|
"speed": 5.0
|
|
} ]
|
|
|
|
[node name="Networking" type="Node"]
|
|
|
|
pause_mode = 2
|
|
script = ExtResource( 1 )
|
|
_sections_unfolded = [ "Pause" ]
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="." index="0"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = -3.0
|
|
margin_top = -1.0
|
|
margin_right = 1028.0
|
|
margin_bottom = 619.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
mouse_filter = 0
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
color = Color( 0, 0, 0, 1 )
|
|
_sections_unfolded = [ "Visibility" ]
|
|
|
|
[node name="Client" type="Button" parent="." index="1"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 620.0
|
|
margin_top = 469.0
|
|
margin_right = 696.0
|
|
margin_bottom = 543.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
focus_mode = 2
|
|
mouse_filter = 0
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
toggle_mode = false
|
|
enabled_focus_mode = 2
|
|
shortcut = null
|
|
group = null
|
|
flat = true
|
|
align = 1
|
|
|
|
[node name="Name" type="Button" parent="." index="2"]
|
|
|
|
visible = false
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 196.0
|
|
margin_top = 456.0
|
|
margin_right = 295.0
|
|
margin_bottom = 532.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
focus_mode = 2
|
|
mouse_filter = 0
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
toggle_mode = false
|
|
enabled_focus_mode = 2
|
|
shortcut = null
|
|
group = null
|
|
text = "Name"
|
|
flat = false
|
|
align = 1
|
|
|
|
[node name="UsernameEntry" type="LineEdit" parent="." index="3"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 377.0
|
|
margin_top = 390.0
|
|
margin_right = 610.0
|
|
margin_bottom = 416.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
focus_mode = 2
|
|
mouse_filter = 0
|
|
mouse_default_cursor_shape = 1
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
focus_mode = 2
|
|
context_menu_enabled = true
|
|
placeholder_text = "Enter username"
|
|
placeholder_alpha = 0.6
|
|
caret_blink = false
|
|
caret_blink_speed = 0.65
|
|
caret_position = 0
|
|
_sections_unfolded = [ "Placeholder" ]
|
|
|
|
[node name="ServerEntry" type="LineEdit" parent="." index="4"]
|
|
|
|
visible = false
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 407.0
|
|
margin_top = 496.0
|
|
margin_right = 610.0
|
|
margin_bottom = 522.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
focus_mode = 2
|
|
mouse_filter = 0
|
|
mouse_default_cursor_shape = 1
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
text = "192.168."
|
|
focus_mode = 2
|
|
context_menu_enabled = true
|
|
placeholder_text = "Enter server IP"
|
|
placeholder_alpha = 0.6
|
|
caret_blink = false
|
|
caret_blink_speed = 0.65
|
|
caret_position = 0
|
|
_sections_unfolded = [ "Placeholder" ]
|
|
|
|
[node name="UsernameLabel" type="RichTextLabel" parent="." index="5"]
|
|
|
|
visible = false
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 588.0
|
|
margin_top = 139.0
|
|
margin_right = 839.0
|
|
margin_bottom = 159.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = true
|
|
mouse_filter = 0
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
custom_fonts/mono_font = SubResource( 1 )
|
|
custom_fonts/italics_font = SubResource( 2 )
|
|
bbcode_enabled = false
|
|
bbcode_text = "Enter a username"
|
|
visible_characters = -1
|
|
percent_visible = 1.0
|
|
meta_underlined = true
|
|
tab_size = 4
|
|
text = "Enter a username"
|
|
scroll_active = true
|
|
scroll_following = false
|
|
selection_enabled = false
|
|
override_selected_font_color = false
|
|
_sections_unfolded = [ "BBCode", "custom_fonts" ]
|
|
|
|
[node name="BackToMain" type="Button" parent="." index="6"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 16.0
|
|
margin_top = 493.0
|
|
margin_right = 181.0
|
|
margin_bottom = 579.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
focus_mode = 2
|
|
mouse_filter = 0
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
toggle_mode = false
|
|
enabled_focus_mode = 2
|
|
shortcut = null
|
|
group = null
|
|
flat = true
|
|
align = 1
|
|
|
|
[node name="StartServer" type="AnimatedSprite" parent="." index="7"]
|
|
|
|
visible = false
|
|
position = Vector2( 510.253, 137.961 )
|
|
scale = Vector2( 0.203772, 0.203773 )
|
|
frames = SubResource( 3 )
|
|
animation = "default"
|
|
|
|
[node name="EnterUsername" type="AnimatedSprite" parent="." index="8"]
|
|
|
|
position = Vector2( 506.573, 202.684 )
|
|
scale = Vector2( 0.268352, 0.268352 )
|
|
frames = SubResource( 4 )
|
|
animation = "default"
|
|
|
|
[node name="ServerIP" type="Label" parent="." index="9"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 764.0
|
|
margin_top = 14.0
|
|
margin_right = 1012.0
|
|
margin_bottom = 79.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
mouse_filter = 2
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 4
|
|
text = "192.168.0.1"
|
|
align = 2
|
|
percent_visible = 1.0
|
|
lines_skipped = 0
|
|
max_lines_visible = -1
|
|
_sections_unfolded = [ "Visibility" ]
|
|
|
|
[node name="BackIcon" type="AnimatedSprite" parent="." index="10"]
|
|
|
|
position = Vector2( 114.639, 542.358 )
|
|
scale = Vector2( 0.626981, 0.626981 )
|
|
frames = SubResource( 5 )
|
|
animation = "default"
|
|
|
|
[node name="UsernameAcceptIcon" type="AnimatedSprite" parent="." index="11"]
|
|
|
|
position = Vector2( 682.745, 404.707 )
|
|
scale = Vector2( 0.4, 0.4 )
|
|
frames = SubResource( 6 )
|
|
animation = "default"
|
|
_sections_unfolded = [ "Transform" ]
|
|
|
|
[node name="UsernameAccept" type="Button" parent="." index="12"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 643.0
|
|
margin_top = 355.0
|
|
margin_right = 725.0
|
|
margin_bottom = 438.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
focus_mode = 2
|
|
mouse_filter = 0
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
toggle_mode = false
|
|
enabled_focus_mode = 2
|
|
shortcut = null
|
|
group = null
|
|
flat = true
|
|
align = 1
|
|
|
|
[node name="EnterIP" type="AnimatedSprite" parent="." index="13"]
|
|
|
|
visible = false
|
|
position = Vector2( 507.859, 382.258 )
|
|
scale = Vector2( 0.33039, 0.33039 )
|
|
frames = SubResource( 7 )
|
|
animation = "default"
|
|
|
|
[node name="Server" type="Button" parent="." index="14"]
|
|
|
|
visible = false
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 314.0
|
|
margin_top = 26.0
|
|
margin_right = 707.0
|
|
margin_bottom = 232.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
focus_mode = 2
|
|
mouse_filter = 0
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
toggle_mode = false
|
|
enabled_focus_mode = 2
|
|
shortcut = null
|
|
group = null
|
|
flat = true
|
|
align = 1
|
|
_sections_unfolded = [ "Visibility" ]
|
|
|
|
[node name="ServerAcceptIcon" type="AnimatedSprite" parent="." index="15"]
|
|
|
|
visible = false
|
|
position = Vector2( 656.015, 512.574 )
|
|
scale = Vector2( 0.329, 0.329 )
|
|
frames = SubResource( 8 )
|
|
animation = "default"
|
|
_sections_unfolded = [ "Transform" ]
|
|
|
|
[node name="ConnectTo" type="AnimatedSprite" parent="." index="16"]
|
|
|
|
visible = false
|
|
position = Vector2( 788.86, 170.073 )
|
|
scale = Vector2( 0.553802, 0.553802 )
|
|
frames = SubResource( 9 )
|
|
animation = "default"
|
|
|
|
[connection signal="pressed" from="Client" to="." method="_on_Client_pressed"]
|
|
|
|
[connection signal="pressed" from="Name" to="." method="_on_Name_pressed"]
|
|
|
|
[connection signal="text_changed" from="UsernameEntry" to="." method="_on_UsernameEntry_text_changed"]
|
|
|
|
[connection signal="text_entered" from="UsernameEntry" to="." method="_on_LineEdit_text_entered"]
|
|
|
|
[connection signal="text_entered" from="ServerEntry" to="." method="_on_Server_Entry_text_entered"]
|
|
|
|
[connection signal="pressed" from="BackToMain" to="." method="_on_BackToMain_pressed"]
|
|
|
|
[connection signal="pressed" from="UsernameAccept" to="." method="_on_UsernameAccept_pressed"]
|
|
|
|
[connection signal="pressed" from="Server" to="." method="_on_Server_pressed"]
|
|
|
|
|