ghost-delivery/UI/main_menu.tscn

439 lines
13 KiB
Plaintext

[gd_scene format=3 uid="uid://du6bjtdwllqah"]
[ext_resource type="Script" uid="uid://bia60jclyensr" path="res://UI/main_menu.gd" id="1_menu"]
[ext_resource type="Texture2D" uid="uid://bw0u0wl88adoj" path="res://UI/Halloween-2D-Game-Backgrounds-PNG/PNG/1_game_background/layers/1.png" id="2_cafmx"]
[ext_resource type="Texture2D" uid="uid://b7q046o2x1wlf" path="res://Ghost/gosth.svg" id="2_d8nwk"]
[ext_resource type="Texture2D" uid="uid://b1hh4nq2505rr" path="res://UI/keyboard.svg" id="3_4cwpn"]
[ext_resource type="Texture2D" uid="uid://l1eorx2rl51s" path="res://UI/Halloween-2D-Game-Backgrounds-PNG/PNG/1_game_background/layers/3.png" id="3_8ctay"]
[ext_resource type="Texture2D" uid="uid://du3encjinq5dx" path="res://UI/Halloween-2D-Game-Backgrounds-PNG/PNG/1_game_background/layers/4.png" id="4_ev3b6"]
[ext_resource type="Texture2D" uid="uid://grsoafjf73pl" path="res://UI/Halloween-2D-Game-Backgrounds-PNG/PNG/1_game_background/layers/2.png" id="5_f40uw"]
[ext_resource type="Texture2D" uid="uid://cjirtvqg7i40e" path="res://UI/Halloween-2D-Game-Backgrounds-PNG/PNG/1_game_background/layers/5.png" id="6_tcix6"]
[ext_resource type="Texture2D" uid="uid://q537edurvm8e" path="res://UI/Halloween-2D-Game-Backgrounds-PNG/PNG/1_game_background/layers/6.png" id="7_mmlvu"]
[ext_resource type="Texture2D" uid="uid://caan1hnbs6w3a" path="res://UI/Halloween-2D-Game-Backgrounds-PNG/PNG/1_game_background/layers/7.png" id="8_aorne"]
[ext_resource type="PackedScene" uid="uid://b3e3ei5tw6my0" path="res://UI/settings_panel.tscn" id="9_sttng"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_t2nhh"]
bg_color = Color(0.3506337, 0.65947497, 0.667303, 1)
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_cafmx"]
bg_color = Color(0.34901962, 0.65882355, 0.6666667, 1)
border_width_left = 3
border_width_top = 3
border_width_right = 3
border_width_bottom = 3
border_color = Color(0.14509805, 0.3254902, 0.32941177, 1)
corner_radius_top_left = 2
corner_radius_top_right = 2
corner_radius_bottom_right = 2
corner_radius_bottom_left = 2
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_cafmx"]
[sub_resource type="Animation" id="Animation_rhyd0"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [1]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Sprite2D:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(1021, 487)]
}
[sub_resource type="Animation" id="Animation_uexgx"]
resource_name = "idle_down"
length = 0.6
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.15, 0.3, 0.45),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 1,
"values": [2, 10, 18, 26]
}
[sub_resource type="Animation" id="Animation_lky7i"]
resource_name = "idle_left"
length = 0.8
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2, 0.4, 0.6),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 1,
"values": [1, 9, 17, 25]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Sprite2D:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.3),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(1021, 487), Vector2(1021, 491)]
}
[sub_resource type="Animation" id="Animation_jyk2k"]
resource_name = "idle_right"
length = 0.6
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.15, 0.3, 0.45),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 1,
"values": [0, 8, 16, 24]
}
[sub_resource type="Animation" id="Animation_bs0kc"]
resource_name = "idle_back"
length = 0.6
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.15, 0.3, 0.46666667),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 1,
"values": [3, 11, 19, 27]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_f40uw"]
_data = {
&"RESET": SubResource("Animation_rhyd0"),
&"idle_down": SubResource("Animation_uexgx"),
&"idle_left": SubResource("Animation_lky7i"),
&"idle_right": SubResource("Animation_jyk2k"),
&"idle_up": SubResource("Animation_bs0kc")
}
[node name="MainMenu" type="Control" unique_id=401982823]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_menu")
[node name="Background" type="ColorRect" parent="." unique_id=668563285]
clip_contents = true
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.09, 0.1, 0.16, 1)
[node name="1" type="Sprite2D" parent="." unique_id=852252707]
position = Vector2(577.2732, 322)
scale = Vector2(0.6002845, 0.6018518)
texture = ExtResource("2_cafmx")
[node name="2" type="Sprite2D" parent="." unique_id=125140498]
position = Vector2(541.72217, 326.5)
scale = Vector2(0.6351273, 0.5972222)
texture = ExtResource("5_f40uw")
[node name="3" type="Sprite2D" parent="." unique_id=581557865]
position = Vector2(575.61115, 365.75)
scale = Vector2(0.59936345, 0.5162037)
texture = ExtResource("3_8ctay")
[node name="4" type="Sprite2D" parent="." unique_id=216008671]
position = Vector2(464.00003, 386.50003)
scale = Vector2(0.4805556, 0.48055556)
texture = ExtResource("4_ev3b6")
[node name="5" type="Sprite2D" parent="." unique_id=957124983]
position = Vector2(713.00006, 220)
scale = Vector2(0.74629635, 0.74629635)
texture = ExtResource("6_tcix6")
[node name="6" type="Sprite2D" parent="." unique_id=8876432]
position = Vector2(407.8889, 369.75)
scale = Vector2(0.42175928, 0.4217593)
texture = ExtResource("7_mmlvu")
[node name="7" type="Sprite2D" parent="." unique_id=1700999298]
position = Vector2(579.5556, 320.5)
scale = Vector2(0.6032408, 0.6046297)
texture = ExtResource("8_aorne")
[node name="Title" type="Label" parent="." unique_id=461972854]
layout_mode = 0
offset_left = 221.0
offset_top = 37.0
offset_right = 707.0
offset_bottom = 114.0
theme_override_colors/font_color = Color(0.5921569, 0.92941177, 0.7921569, 1)
theme_override_font_sizes/font_size = 56
text = "Ghost"
horizontal_alignment = 1
[node name="Title2" type="Label" parent="." unique_id=1710601387]
layout_mode = 0
offset_left = 253.0
offset_top = 93.0
offset_right = 739.0
offset_bottom = 170.0
theme_override_colors/font_color = Color(0.5921569, 0.92941177, 0.7921569, 1)
theme_override_font_sizes/font_size = 56
text = "Delivery"
horizontal_alignment = 1
[node name="PlayButton" type="Button" parent="." unique_id=663306146]
custom_minimum_size = Vector2(220, 44)
layout_mode = 0
offset_left = 535.0
offset_top = 496.0
offset_right = 770.0
offset_bottom = 562.0
theme_override_colors/font_color = Color(0.14509805, 0.3254902, 0.32941177, 1)
theme_override_colors/font_focus_color = Color(0.14509805, 0.3254902, 0.32941177, 1)
theme_override_colors/font_hover_color = Color(0.22612566, 0.46949595, 0.47474563, 1)
theme_override_styles/normal = SubResource("StyleBoxFlat_t2nhh")
theme_override_styles/focus = SubResource("StyleBoxFlat_cafmx")
text = "Spiel Starten"
[node name="QuitButton" type="Button" parent="." unique_id=1141906423]
layout_mode = 0
offset_left = 25.0
offset_top = 11.0
offset_right = 146.0
offset_bottom = 44.0
theme_override_styles/normal = SubResource("StyleBoxEmpty_cafmx")
text = "Beenden"
[node name="HowTo" type="Label" parent="." unique_id=526383056]
layout_mode = 0
offset_left = 376.0
offset_top = 615.0
offset_right = 862.0
offset_bottom = 638.0
theme_override_colors/font_color = Color(0.70980394, 1, 1, 1)
text = "Bringe die Gegenstände zum Zielort, ohne entdeckt zu werden"
horizontal_alignment = 1
[node name="Button" type="Button" parent="." unique_id=1475558986]
modulate = Color(0.69803923, 0.5176471, 0.7411765, 1)
layout_mode = 1
anchors_preset = -1
anchor_left = 0.89400005
anchor_top = 0.88600004
anchor_right = 0.97300005
anchor_bottom = 0.93500006
offset_left = -571.88806
offset_top = -78.12805
offset_right = -593.896
offset_bottom = -78.880066
text = "Credits"
[node name="Einstellungen" type="Button" parent="." unique_id=345744365]
modulate = Color(0.69803923, 0.5176471, 0.7411765, 1)
layout_mode = 1
anchors_preset = -1
anchor_left = 0.89400005
anchor_top = 0.88600004
anchor_right = 0.97300005
anchor_bottom = 0.93500006
offset_left = -571.88806
offset_top = -43.12805
offset_right = -592.896
offset_bottom = -43.880066
text = "Settings
"
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1219422394]
position = Vector2(1021, 487)
scale = Vector2(8.609999, 8.609999)
texture = ExtResource("2_d8nwk")
hframes = 8
vframes = 6
frame = 1
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=275292398]
libraries/ = SubResource("AnimationLibrary_f40uw")
autoplay = &"idle_left"
[node name="Background2" type="ColorRect" parent="." unique_id=1576377644]
clip_contents = true
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 1020.0
offset_top = 28.0
offset_bottom = -348.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 0.45490196)
[node name="Background3" type="ColorRect" parent="." unique_id=514226903]
clip_contents = true
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 806.0
offset_top = 28.0
offset_right = -246.0
offset_bottom = -348.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 0.45490196)
[node name="Background4" type="ColorRect" parent="." unique_id=1623774663]
clip_contents = true
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 906.0
offset_top = 28.0
offset_right = -132.0
offset_bottom = -421.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 0.45490196)
[node name="Keyboard" type="Sprite2D" parent="." unique_id=1868546055]
position = Vector2(977, 162)
scale = Vector2(0.9441288, 0.94412875)
texture = ExtResource("3_4cwpn")
region_enabled = true
region_rect = Rect2(-3, 72, 375, 300)
[node name="W" type="Label" parent="Keyboard" unique_id=1142050336]
anchors_preset = -1
anchor_left = 0.37600002
anchor_top = 0.34300002
anchor_right = 0.455
anchor_bottom = 0.446
offset_left = -133.58574
offset_top = -233.17885
offset_right = -108.08675
offset_bottom = -197.29884
theme_override_font_sizes/font_size = 29
text = "W"
horizontal_alignment = 1
[node name="A" type="Label" parent="Keyboard" unique_id=1621411685]
anchors_preset = -1
anchor_left = 0.37600002
anchor_top = 0.34300002
anchor_right = 0.455
anchor_bottom = 0.446
offset_left = -179.13037
offset_top = -157.97723
offset_right = -189.75537
offset_bottom = -148.87723
theme_override_font_sizes/font_size = 29
text = "A"
horizontal_alignment = 1
[node name="S" type="Label" parent="Keyboard" unique_id=1486123509]
anchors_preset = -1
anchor_left = 0.37600002
anchor_top = 0.34300002
anchor_right = 0.455
anchor_bottom = 0.446
offset_left = -119.81645
offset_top = -159.03642
offset_right = -102.31746
offset_bottom = -123.15646
theme_override_font_sizes/font_size = 29
text = "S"
horizontal_alignment = 1
[node name="D" type="Label" parent="Keyboard" unique_id=1687030273]
anchors_preset = -1
anchor_left = 0.37600002
anchor_top = 0.34300002
anchor_right = 0.455
anchor_bottom = 0.446
offset_left = -52.029083
offset_top = -159.03642
offset_right = -26.53009
offset_bottom = -123.15645
theme_override_font_sizes/font_size = 29
text = "D"
horizontal_alignment = 1
[node name="E" type="Label" parent="Keyboard" unique_id=335995270]
anchors_preset = -1
anchor_left = 0.37600002
anchor_top = 0.34300002
anchor_right = 0.455
anchor_bottom = 0.446
offset_left = -64.73924
offset_top = -234.23804
offset_right = -39.24025
offset_bottom = -198.35806
theme_override_font_sizes/font_size = 29
text = "E"
horizontal_alignment = 1
[node name="Shift" type="Label" parent="Keyboard" unique_id=347450895]
anchors_preset = -1
anchor_left = 0.37600002
anchor_top = 0.34300002
anchor_right = 0.455
anchor_bottom = 0.446
offset_left = -280.8114
offset_top = -84.894
offset_right = -255.31242
offset_bottom = -49.014023
theme_override_font_sizes/font_size = 29
text = "shift"
horizontal_alignment = 1
[node name="SettingsPanel" parent="." unique_id=611427896 instance=ExtResource("9_sttng")]
layout_mode = 0
[connection signal="pressed" from="Button" to="." method="_on_button_pressed"]
[connection signal="pressed" from="Einstellungen" to="." method="_on_settings_pressed"]