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.
96 lines
2.4 KiB
96 lines
2.4 KiB
[gd_scene load_steps=6 format=2]
|
|
|
|
[ext_resource path="res://resources/ui/theme.tres" type="Theme" id=1]
|
|
[ext_resource path="res://scripts/menu/direct_join.gd" type="Script" id=2]
|
|
[ext_resource path="res://resources/ui/font.tres" type="DynamicFont" id=3]
|
|
[ext_resource path="res://assets/icons/exitRight.png" type="Texture" id=4]
|
|
[ext_resource path="res://assets/icons/return.png" type="Texture" id=5]
|
|
|
|
[node name="direct_join" type="Control"]
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
margin_left = -512.0
|
|
margin_top = -300.0
|
|
margin_right = 512.0
|
|
margin_bottom = 300.0
|
|
theme = ExtResource( 1 )
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="menu" type="Panel" parent="."]
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
margin_left = -217.5
|
|
margin_top = -116.0
|
|
margin_right = 217.5
|
|
margin_bottom = 116.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="join" type="Button" parent="menu"]
|
|
margin_left = 289.079
|
|
margin_top = 175.705
|
|
margin_right = 432.079
|
|
margin_bottom = 231.705
|
|
rect_pivot_offset = Vector2( 1.89856, 0.845154 )
|
|
custom_fonts/font = ExtResource( 3 )
|
|
text = "Join"
|
|
icon = ExtResource( 4 )
|
|
flat = true
|
|
|
|
[node name="back" type="Button" parent="menu"]
|
|
margin_left = 3.57346
|
|
margin_top = 173.042
|
|
margin_right = 135.574
|
|
margin_bottom = 229.042
|
|
rect_pivot_offset = Vector2( 0.606262, -0.447205 )
|
|
custom_fonts/font = ExtResource( 3 )
|
|
text = "Back"
|
|
icon = ExtResource( 5 )
|
|
flat = true
|
|
|
|
[node name="ip_label" type="Label" parent="menu"]
|
|
margin_left = 29.8937
|
|
margin_top = 31.5762
|
|
margin_right = 94.8937
|
|
margin_bottom = 58.5762
|
|
text = "Ip"
|
|
|
|
[node name="ip" type="LineEdit" parent="menu"]
|
|
margin_left = 140.0
|
|
margin_top = 22.0
|
|
margin_right = 422.0
|
|
margin_bottom = 60.0
|
|
text = "127.0.0.1"
|
|
|
|
[node name="port_label" type="Label" parent="menu"]
|
|
margin_left = 25.9189
|
|
margin_top = 88.3152
|
|
margin_right = 90.9189
|
|
margin_bottom = 115.315
|
|
text = "Port"
|
|
|
|
[node name="port" type="LineEdit" parent="menu"]
|
|
margin_left = 139.136
|
|
margin_top = 80.3719
|
|
margin_right = 247.136
|
|
margin_bottom = 117.372
|
|
text = "8128"
|
|
max_length = 5
|
|
|
|
[node name="error" type="Label" parent="menu"]
|
|
anchor_top = 0.5
|
|
anchor_right = 1.0
|
|
anchor_bottom = 0.5
|
|
margin_left = -1.0
|
|
margin_top = 11.0
|
|
margin_right = -1.0
|
|
margin_bottom = 60.0
|
|
custom_colors/font_color = Color( 1, 0, 0.117647, 1 )
|
|
align = 1
|
|
valign = 1
|
|
[connection signal="pressed" from="menu/join" to="." method="_on_join_pressed"]
|
|
[connection signal="pressed" from="menu/back" to="." method="_on_back_pressed"]
|