257 lines
8.2 KiB
Text
257 lines
8.2 KiB
Text
[gd_scene load_steps=16 format=3 uid="uid://b1uhymisifcho"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/menu.gd" id="1_fushn"]
|
|
[ext_resource type="Script" path="res://scripts/menudisplay.gd" id="2_jc4pv"]
|
|
[ext_resource type="Script" path="res://scripts/map_selection.gd" id="3_c0mhk"]
|
|
[ext_resource type="Texture2D" uid="uid://my0glsan1h2e" path="res://scenes/map_preview/map_00.png" id="3_p822h"]
|
|
[ext_resource type="Texture2D" uid="uid://bk32usoetq3b" path="res://scenes/map_preview/map_01.png" id="4_ac8w4"]
|
|
[ext_resource type="Texture2D" uid="uid://ole07xte1dxp" path="res://scenes/map_preview/map_02.png" id="5_pnyq7"]
|
|
[ext_resource type="Texture2D" uid="uid://mkjrrv20lhkc" path="res://scenes/map_preview/map_03.png" id="7_5f67q"]
|
|
[ext_resource type="Script" path="res://scripts/rounds_selection.gd" id="7_cr4tq"]
|
|
[ext_resource type="Texture2D" uid="uid://dku8jinmijays" path="res://scenes/map_preview/map_04.png" id="8_46b6b"]
|
|
[ext_resource type="Texture2D" uid="uid://bst8p5s1sgurm" path="res://sprites/menu_bg.png" id="10_equk1"]
|
|
[ext_resource type="Texture2D" uid="uid://drgqjl330tj2p" path="res://scenes/map_preview/no_preview.png" id="11_3sx36"]
|
|
|
|
[sub_resource type="Curve" id="Curve_kioen"]
|
|
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
|
point_count = 2
|
|
|
|
[sub_resource type="Animation" id="Animation_7lydi"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("MenuBg:rotation")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [0.0]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_y58ke"]
|
|
resource_name = "menu_idle"
|
|
length = 60.0
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("MenuBg:rotation")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 60),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [0.0, 6.28319]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_08km3"]
|
|
_data = {
|
|
"RESET": SubResource("Animation_7lydi"),
|
|
"menu_idle": SubResource("Animation_y58ke")
|
|
}
|
|
|
|
[node name="Menu" type="Node"]
|
|
script = ExtResource("1_fushn")
|
|
|
|
[node name="MenuDisplay" type="Node2D" parent="."]
|
|
script = ExtResource("2_jc4pv")
|
|
|
|
[node name="MenuBg" type="Sprite2D" parent="MenuDisplay"]
|
|
position = Vector2(1170, 338)
|
|
scale = Vector2(2.65635, 2.65635)
|
|
texture = ExtResource("10_equk1")
|
|
offset = Vector2(0.92, 14.62)
|
|
|
|
[node name="countdown" type="Label" parent="MenuDisplay"]
|
|
offset_left = 114.0
|
|
offset_top = 71.0
|
|
offset_right = 171.0
|
|
offset_bottom = 208.0
|
|
theme_override_font_sizes/font_size = 100
|
|
text = "5"
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="MenuDisplay"]
|
|
offset_left = 317.0
|
|
offset_top = 51.245
|
|
offset_right = 515.0
|
|
offset_bottom = 637.245
|
|
|
|
[node name="VBoxContainer_Playerlist" type="VBoxContainer" parent="MenuDisplay/MarginContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="Label" type="Label" parent="MenuDisplay/MarginContainer/VBoxContainer_Playerlist"]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 40
|
|
text = "Press key"
|
|
uppercase = true
|
|
|
|
[node name="Label2" type="Label" parent="MenuDisplay/MarginContainer/VBoxContainer_Playerlist"]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 40
|
|
text = "to join"
|
|
uppercase = true
|
|
|
|
[node name="Label3" type="Label" parent="MenuDisplay/MarginContainer/VBoxContainer_Playerlist"]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 40
|
|
uppercase = true
|
|
|
|
[node name="Label4" type="Label" parent="MenuDisplay/MarginContainer/VBoxContainer_Playerlist"]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 40
|
|
uppercase = true
|
|
|
|
[node name="Label5" type="Label" parent="MenuDisplay/MarginContainer/VBoxContainer_Playerlist"]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 40
|
|
uppercase = true
|
|
|
|
[node name="Label6" type="Label" parent="MenuDisplay/MarginContainer/VBoxContainer_Playerlist"]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 40
|
|
uppercase = true
|
|
|
|
[node name="Label7" type="Label" parent="MenuDisplay/MarginContainer/VBoxContainer_Playerlist"]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 40
|
|
uppercase = true
|
|
|
|
[node name="Label8" type="Label" parent="MenuDisplay/MarginContainer/VBoxContainer_Playerlist"]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 40
|
|
uppercase = true
|
|
|
|
[node name="Label9" type="Label" parent="MenuDisplay/MarginContainer/VBoxContainer_Playerlist"]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 40
|
|
uppercase = true
|
|
|
|
[node name="Label10" type="Label" parent="MenuDisplay/MarginContainer/VBoxContainer_Playerlist"]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 40
|
|
uppercase = true
|
|
|
|
[node name="PlayerlistParticles2D" type="CPUParticles2D" parent="MenuDisplay/MarginContainer"]
|
|
position = Vector2(-317, -51.245)
|
|
emitting = false
|
|
amount = 200
|
|
lifetime = 3.0
|
|
one_shot = true
|
|
preprocess = 0.1
|
|
explosiveness = 1.0
|
|
lifetime_randomness = 0.4
|
|
fract_delta = false
|
|
emission_shape = 3
|
|
emission_rect_extents = Vector2(20, 5)
|
|
direction = Vector2(0, -1)
|
|
spread = 180.0
|
|
initial_velocity_min = 20.0
|
|
initial_velocity_max = 500.0
|
|
scale_amount_min = 2.0
|
|
scale_amount_max = 10.0
|
|
scale_amount_curve = SubResource("Curve_kioen")
|
|
|
|
[node name="btn_fullscreen" type="CheckButton" parent="MenuDisplay"]
|
|
offset_left = 845.0
|
|
offset_top = 540.0
|
|
offset_right = 972.0
|
|
offset_bottom = 571.0
|
|
scale = Vector2(2, 2)
|
|
theme_override_constants/outline_size = 10
|
|
text = "Fullscreen"
|
|
|
|
[node name="btn_save_whitelist" type="Button" parent="MenuDisplay"]
|
|
offset_left = 862.0
|
|
offset_top = 602.0
|
|
offset_right = 1011.0
|
|
offset_bottom = 633.0
|
|
text = "Save Key Whitelist"
|
|
|
|
[node name="map_container" type="HFlowContainer" parent="MenuDisplay"]
|
|
offset_left = 613.0
|
|
offset_top = 31.0
|
|
offset_right = 1913.0
|
|
offset_bottom = 1263.0
|
|
scale = Vector2(0.315, 0.315)
|
|
script = ExtResource("3_c0mhk")
|
|
|
|
[node name="btn_map_00" type="Button" parent="MenuDisplay/map_container"]
|
|
layout_mode = 2
|
|
toggle_mode = true
|
|
icon = ExtResource("3_p822h")
|
|
|
|
[node name="btn_map_01" type="Button" parent="MenuDisplay/map_container"]
|
|
layout_mode = 2
|
|
toggle_mode = true
|
|
icon = ExtResource("4_ac8w4")
|
|
|
|
[node name="btn_map_02" type="Button" parent="MenuDisplay/map_container"]
|
|
layout_mode = 2
|
|
toggle_mode = true
|
|
icon = ExtResource("5_pnyq7")
|
|
|
|
[node name="btn_map_03" type="Button" parent="MenuDisplay/map_container"]
|
|
layout_mode = 2
|
|
toggle_mode = true
|
|
icon = ExtResource("7_5f67q")
|
|
|
|
[node name="btn_map_04" type="Button" parent="MenuDisplay/map_container"]
|
|
layout_mode = 2
|
|
toggle_mode = true
|
|
icon = ExtResource("8_46b6b")
|
|
|
|
[node name="btn_map_05" type="Button" parent="MenuDisplay/map_container"]
|
|
layout_mode = 2
|
|
toggle_mode = true
|
|
icon = ExtResource("11_3sx36")
|
|
|
|
[node name="btn_map_06" type="Button" parent="MenuDisplay/map_container"]
|
|
layout_mode = 2
|
|
toggle_mode = true
|
|
icon = ExtResource("11_3sx36")
|
|
|
|
[node name="rounds_selection" type="OptionButton" parent="MenuDisplay"]
|
|
offset_left = 690.0
|
|
offset_top = 556.0
|
|
offset_right = 732.0
|
|
offset_bottom = 587.0
|
|
item_count = 5
|
|
popup/item_0/text = "1"
|
|
popup/item_1/text = "2"
|
|
popup/item_1/id = 1
|
|
popup/item_2/text = "3"
|
|
popup/item_2/id = 2
|
|
popup/item_3/text = "4"
|
|
popup/item_3/id = 3
|
|
popup/item_4/text = "5"
|
|
popup/item_4/id = 4
|
|
script = ExtResource("7_cr4tq")
|
|
|
|
[node name="Label" type="Label" parent="MenuDisplay/rounds_selection"]
|
|
layout_mode = 0
|
|
offset_left = -70.0
|
|
offset_top = 3.0
|
|
offset_right = -7.0
|
|
offset_bottom = 26.0
|
|
theme_override_constants/outline_size = 10
|
|
text = "Rounds:"
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="MenuDisplay"]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_08km3")
|
|
}
|
|
autoplay = "menu_idle"
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
wait_time = 5.0
|
|
|
|
[connection signal="toggled" from="MenuDisplay/btn_fullscreen" to="." method="_on_btn_fullscreen_toggled"]
|
|
[connection signal="pressed" from="MenuDisplay/btn_save_whitelist" to="." method="_on_button_pressed"]
|
|
[connection signal="map_changed" from="MenuDisplay/map_container" to="." method="_on_map_container_map_changed"]
|
|
[connection signal="item_selected" from="MenuDisplay/rounds_selection" to="." method="_on_rounds_selection_item_selected"]
|
|
[connection signal="item_selected" from="MenuDisplay/rounds_selection" to="MenuDisplay/rounds_selection" method="_on_item_selected"]
|
|
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|