-
Notifications
You must be signed in to change notification settings - Fork 1
/
join_game.tscn
198 lines (173 loc) · 5.7 KB
/
join_game.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
[gd_scene load_steps=21 format=2]
[ext_resource path="res://hue.gdshader" type="Shader" id=1]
[ext_resource path="res://space_background_pack/layers/parallax-space-backgound.png" type="Texture" id=2]
[ext_resource path="res://space_background_pack/layers/parallax-space-far-planets.png" type="Texture" id=3]
[ext_resource path="res://space_background_pack/layers/parallax-space-stars.png" type="Texture" id=4]
[ext_resource path="res://join_game.gd" type="Script" id=5]
[ext_resource path="res://lobby.gd" type="Script" id=6]
[ext_resource path="res://fonts/CatV_6x12_9.ttf" type="DynamicFontData" id=7]
[ext_resource path="res://fonts/button_font.tres" type="DynamicFont" id=8]
[ext_resource path="res://fonts/icon_font.tres" type="DynamicFont" id=9]
[ext_resource path="res://error_panel.tscn" type="PackedScene" id=10]
[ext_resource path="res://fonts/Tomorrow-Regular.ttf" type="DynamicFontData" id=11]
[ext_resource path="res://spinner.png" type="Texture" id=12]
[ext_resource path="res://wait_panel.gd" type="Script" id=13]
[sub_resource type="DynamicFont" id=8]
size = 72
outline_size = 3
outline_color = Color( 0.278431, 0.384314, 0.682353, 1 )
font_data = ExtResource( 11 )
[sub_resource type="DynamicFont" id=6]
size = 72
font_data = ExtResource( 7 )
[sub_resource type="InputEventAction" id=4]
action = "ui_accept"
[sub_resource type="ShortCut" id=5]
shortcut = SubResource( 4 )
[sub_resource type="DynamicFont" id=10]
size = 32
font_data = ExtResource( 11 )
[sub_resource type="ShaderMaterial" id=1]
shader = ExtResource( 1 )
shader_param/Shift_Hue = -0.514
shader_param/Shift_Sat = 0.265
shader_param/Shift_Val = -0.038
[sub_resource type="ShaderMaterial" id=2]
shader = ExtResource( 1 )
shader_param/Shift_Hue = 0.616
shader_param/Shift_Sat = 0.223
shader_param/Shift_Val = 0.257
[node name="join_game" type="Node2D"]
script = ExtResource( 5 )
[node name="lobby" type="Node" parent="."]
script = ExtResource( 6 )
player_id = 1
[node name="GUI" type="CanvasLayer" parent="."]
[node name="label" type="Label" parent="GUI"]
anchor_top = 0.35
anchor_right = 1.0
anchor_bottom = 0.5
margin_top = -43.5
margin_bottom = 43.5
custom_fonts/font = SubResource( 8 )
text = "Enter code:"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="game_id" type="LineEdit" parent="GUI"]
anchor_left = 0.1
anchor_top = 0.5
anchor_right = 0.9
anchor_bottom = 0.5
margin_top = -41.0
margin_bottom = 41.0
custom_fonts/font = SubResource( 6 )
align = 1
context_menu_enabled = false
placeholder_text = "####"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="join_button" type="Button" parent="GUI"]
anchor_left = 0.1
anchor_top = 0.7
anchor_right = 0.9
anchor_bottom = 0.7
margin_top = -11.0
margin_bottom = 11.0
custom_colors/font_color = Color( 0, 0, 0, 1 )
custom_colors/font_color_hover = Color( 0.32549, 0.623529, 0.701961, 1 )
custom_colors/font_color_pressed = Color( 0.756863, 0, 0, 1 )
custom_fonts/font = ExtResource( 8 )
disabled = true
shortcut_in_tooltip = false
shortcut = SubResource( 5 )
text = "JOIN"
flat = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="back_button" type="Button" parent="GUI"]
margin_left = 10.0
margin_top = 10.0
margin_right = 103.0
margin_bottom = 73.0
custom_colors/font_color_disabled = Color( 0.415686, 0.415686, 0.415686, 1 )
custom_colors/font_color_focus = Color( 0, 0, 0, 1 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
custom_colors/font_color_hover = Color( 0.32549, 0.623529, 0.701961, 1 )
custom_colors/font_color_pressed = Color( 0.756863, 0, 0, 1 )
custom_fonts/font = ExtResource( 9 )
text = "<"
flat = true
align = 2
__meta__ = {
"_edit_use_anchors_": false
}
[node name="wait_panel" type="ColorRect" parent="GUI"]
visible = false
show_behind_parent = true
anchor_right = 1.0
anchor_bottom = 1.0
rect_pivot_offset = Vector2( -314.047, -48.2121 )
color = Color( 0, 0, 0, 0.960784 )
script = ExtResource( 13 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="icon" type="TextureRect" parent="GUI/wait_panel"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -100.0
margin_top = -100.0
margin_right = 100.0
margin_bottom = 100.0
rect_scale = Vector2( 0.75, 0.75 )
rect_pivot_offset = Vector2( 100, 100 )
texture = ExtResource( 12 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="msg" type="Label" parent="GUI/wait_panel"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_bottom = -345.0
custom_fonts/font = SubResource( 10 )
text = "Joining game ????
Please wait..."
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="error_panel" parent="GUI" instance=ExtResource( 10 )]
visible = false
[node name="background" type="Node2D" parent="."]
scale = Vector2( 5, 5 )
[node name="background2" type="Sprite" parent="background"]
material = SubResource( 1 )
position = Vector2( 0, -4.194 )
scale = Vector2( 1.13665, 0.940339 )
texture = ExtResource( 2 )
[node name="background3" type="Sprite" parent="background"]
material = SubResource( 2 )
position = Vector2( 0.84332, 0.978562 )
scale = Vector2( 0.751, 0.751 )
texture = ExtResource( 4 )
__meta__ = {
"_editor_description_": ""
}
[node name="background4" type="Sprite" parent="background"]
position = Vector2( 0, -3.17024 )
scale = Vector2( 0.831059, 0.870687 )
texture = ExtResource( 3 )
[node name="camera" type="Camera2D" parent="."]
current = true
[connection signal="connection_failed" from="lobby" to="." method="_on_lobby_connection_failed"]
[connection signal="text_entered" from="GUI/game_id" to="." method="_on_game_id_text_entered"]
[connection signal="pressed" from="GUI/join_button" to="." method="_on_join_button_pressed"]
[connection signal="pressed" from="GUI/back_button" to="." method="_on_back_button_pressed"]
[connection signal="closed" from="GUI/error_panel" to="." method="_on_error_panel_closed"]