This repository has been archived on 2024-07-02. You can view files and clone it, but cannot push or open issues or pull requests.
HoppyEaster/Scenes/Main Menu.tscn
2023-04-11 10:33:19 +02:00

354 lines
12 KiB
Text

[gd_scene load_steps=28 format=3 uid="uid://cukyb513fah1u"]
[ext_resource type="Script" path="res://Scripts/UI/MainMenuManager.gd" id="1_qepq0"]
[ext_resource type="Texture2D" uid="uid://tjxkew3m4v8m" path="res://Assets/Sprites/Start Menu Old/Easter Egg/Shadow.png" id="2_8o6th"]
[ext_resource type="PackedScene" uid="uid://c4btepmue6d7p" path="res://Scenes/Game.tscn" id="2_28004"]
[ext_resource type="PackedScene" uid="uid://cbfcolm6mjolp" path="res://Prefabs/Settings Menu.tscn" id="3_r3r61"]
[ext_resource type="Theme" uid="uid://babphdknr2kkd" path="res://Assets/UI/Theme.tres" id="4_bmt8e"]
[ext_resource type="Texture2D" uid="uid://ojlfqxj5bilo" path="res://Assets/Sprites/Jesus/jesus_spritesheet.png" id="7_g28i1"]
[ext_resource type="Texture2D" uid="uid://dlr823rtwhtq2" path="res://Assets/Sprites/EasterEgg.png" id="7_wokip"]
[ext_resource type="Texture2D" uid="uid://c54k7fn4fu42s" path="res://Assets/Sprites/Bunny/good_bunny_spritesheet.png" id="8_5vrmg"]
[ext_resource type="FontFile" uid="uid://dqdeftjkwxe64" path="res://Assets/Fonts/Dogica/dogicapixel.ttf" id="10_seibg"]
[ext_resource type="AudioStream" uid="uid://c6nf5s6xy2uii" path="res://Assets/Music/omw-to-beat-the-big-bad.wav" id="12_i62fw"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_5uvie"]
bg_color = Color(0.439216, 0.631373, 0.537255, 1)
[sub_resource type="Animation" id="Animation_iq7o3"]
resource_name = "Walk"
length = 0.8
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1),
"update": 1,
"values": [0, 1, 2, 3, 4, 5, 6, 7]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_xufdy"]
_data = {
"Autostart": SubResource("Animation_iq7o3")
}
[sub_resource type="Animation" id="Animation_53kbk"]
resource_name = "Autostart"
length = 0.2
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
"update": 1,
"values": [0, 1, 2, 3, 4]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_5tgwk"]
_data = {
"Autostart": SubResource("Animation_53kbk")
}
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_rmi2t"]
bg_color = Color(0.427451, 0.423529, 0.8, 1)
border_width_left = 4
border_width_top = 4
border_width_right = 4
border_width_bottom = 4
border_color = Color(0, 0, 0, 1)
expand_margin_left = 7.0
expand_margin_right = 7.0
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_47cud"]
bg_color = Color(0.427451, 0.423529, 0.8, 1)
border_width_left = 4
border_width_bottom = 4
border_color = Color(0.317647, 0.301961, 0.658824, 1)
corner_radius_top_left = 2
corner_radius_bottom_right = 2
expand_margin_left = 7.0
expand_margin_right = 7.0
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_2i81h"]
bg_color = Color(0.392157, 0.380392, 0.760784, 1)
border_width_left = 4
border_width_bottom = 4
border_color = Color(0.262745, 0.243137, 0.556863, 1)
corner_radius_top_left = 2
corner_radius_bottom_right = 2
expand_margin_left = 10.0
expand_margin_right = 10.0
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_vel2s"]
bg_color = Color(0.392157, 0.380392, 0.760784, 1)
expand_margin_left = 7.0
expand_margin_right = 7.0
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_7k6ml"]
bg_color = Color(0.392157, 0.380392, 0.760784, 1)
expand_margin_right = 10.0
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_11k4d"]
bg_color = Color(0.392157, 0.380392, 0.760784, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_nyi0q"]
bg_color = Color(0.392157, 0.380392, 0.760784, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_qky0m"]
bg_color = Color(0.313726, 0.231373, 0.4, 1)
border_width_left = 4
border_width_top = 4
border_width_right = 4
border_width_bottom = 4
border_color = Color(0.313726, 0.231373, 0.4, 1)
corner_radius_top_left = 2
corner_radius_top_right = 2
corner_radius_bottom_right = 2
corner_radius_bottom_left = 2
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_lleuj"]
bg_color = Color(0.941176, 0.964706, 0.909804, 1)
border_width_left = 5
border_width_top = 5
border_width_right = 5
border_width_bottom = 5
border_color = Color(0.65098, 0.741176, 0.509804, 1)
corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_rcukk"]
bg_color = Color(0.941176, 0.964706, 0.909804, 1)
border_width_left = 3
border_width_top = 3
border_width_right = 3
border_color = Color(0.658824, 0.74902, 0.517647, 1)
expand_margin_left = 5.0
expand_margin_top = 5.0
expand_margin_right = 5.0
expand_margin_bottom = 5.0
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_44exv"]
bg_color = Color(0.894118, 0.94902, 0.835294, 1)
border_width_left = 4
border_width_top = 4
border_width_right = 4
border_color = Color(0.635294, 0.756863, 0.482353, 1)
expand_margin_left = 4.0
expand_margin_top = 4.0
expand_margin_right = 4.0
[sub_resource type="Theme" id="Theme_w723v"]
default_font = ExtResource("10_seibg")
Button/styles/focus = SubResource("StyleBoxFlat_rmi2t")
Button/styles/hover = SubResource("StyleBoxFlat_47cud")
Button/styles/normal = SubResource("StyleBoxFlat_2i81h")
Button/styles/pressed = SubResource("StyleBoxFlat_vel2s")
CheckButton/styles/hover_pressed = SubResource("StyleBoxFlat_7k6ml")
HSlider/styles/grabber_area = SubResource("StyleBoxFlat_11k4d")
HSlider/styles/grabber_area_highlight = SubResource("StyleBoxFlat_nyi0q")
HSlider/styles/slider = SubResource("StyleBoxFlat_qky0m")
TabContainer/colors/font_selected_color = Color(0.0980392, 0.0980392, 0.0980392, 1)
TabContainer/colors/font_unselected_color = Color(0.435294, 0.435294, 0.435294, 1)
TabContainer/styles/panel = SubResource("StyleBoxFlat_lleuj")
TabContainer/styles/tab_selected = SubResource("StyleBoxFlat_rcukk")
TabContainer/styles/tab_unselected = SubResource("StyleBoxFlat_44exv")
[node name="MainMenu" type="Node" node_paths=PackedStringArray("default_focus")]
script = ExtResource("1_qepq0")
game_scene = ExtResource("2_28004")
settings_scene = ExtResource("3_r3r61")
default_focus = NodePath("MainVBox/ButtonsVbox/PlayButton")
autostart_animations = Array[NodePath]([NodePath("Decorations/Left Decor/Jesus/AnimationPlayer")])
[node name="ColorRect" type="Panel" parent="."]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("4_bmt8e")
theme_override_styles/panel = SubResource("StyleBoxFlat_5uvie")
[node name="Decorations" type="Control" parent="."]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Left Decor" type="CenterContainer" parent="Decorations"]
custom_minimum_size = Vector2(576, 0)
layout_mode = 1
anchors_preset = 9
anchor_bottom = 1.0
grow_vertical = 2
[node name="Shadow" type="Sprite2D" parent="Decorations/Left Decor"]
position = Vector2(226.563, 338.875)
scale = Vector2(22.7773, 15.6953)
texture = ExtResource("2_8o6th")
[node name="Jesus" type="Sprite2D" parent="Decorations/Left Decor"]
position = Vector2(231.625, 327.793)
scale = Vector2(8.16379, 8.16379)
texture = ExtResource("7_g28i1")
hframes = 8
vframes = 4
[node name="AnimationPlayer" type="AnimationPlayer" parent="Decorations/Left Decor/Jesus"]
libraries = {
"": SubResource("AnimationLibrary_xufdy")
}
[node name="EasterEgg" type="Sprite2D" parent="Decorations/Left Decor"]
position = Vector2(137, 503)
scale = Vector2(4.97917, 4.97917)
texture = ExtResource("7_wokip")
hframes = 6
[node name="EasterEgg2" type="Sprite2D" parent="Decorations/Left Decor"]
position = Vector2(312, 528)
rotation = 1.33289
scale = Vector2(4.09073, 4.29567)
texture = ExtResource("7_wokip")
hframes = 6
frame = 4
[node name="Right Decor" type="CenterContainer" parent="Decorations"]
custom_minimum_size = Vector2(576, 0)
layout_mode = 1
anchors_preset = 11
anchor_left = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 0
grow_vertical = 2
[node name="Shadow2" type="Sprite2D" parent="Decorations/Right Decor"]
position = Vector2(351, 403)
scale = Vector2(19.0938, 11.8125)
texture = ExtResource("2_8o6th")
[node name="GoodBunny" type="Sprite2D" parent="Decorations/Right Decor"]
position = Vector2(388, 471.5)
scale = Vector2(7.14286, 7.02941)
texture = ExtResource("8_5vrmg")
hframes = 5
vframes = 4
[node name="AnimationPlayer" type="AnimationPlayer" parent="Decorations/Right Decor/GoodBunny"]
libraries = {
"": SubResource("AnimationLibrary_5tgwk")
}
[node name="EasterEgg" type="Sprite2D" parent="Decorations/Right Decor"]
position = Vector2(298.625, 516.969)
scale = Vector2(4.11458, 4.11458)
texture = ExtResource("7_wokip")
hframes = 6
frame = 2
[node name="MainVBox" type="VBoxContainer" parent="."]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 31.0
offset_top = 22.0
offset_right = -31.0
offset_bottom = -22.0
grow_horizontal = 2
grow_vertical = 2
theme = SubResource("Theme_w723v")
[node name="Label" type="Label" parent="MainVBox"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 8
theme = ExtResource("4_bmt8e")
theme_override_font_sizes/font_size = 50
text = "HOPPY EASTER GAME THING"
horizontal_alignment = 1
vertical_alignment = 1
[node name="ButtonsVbox" type="VBoxContainer" parent="MainVBox"]
custom_minimum_size = Vector2(0, 495)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 3
theme = ExtResource("4_bmt8e")
theme_override_constants/separation = 10
alignment = 1
[node name="PlayButton" type="Button" parent="MainVBox/ButtonsVbox"]
custom_minimum_size = Vector2(0, 40)
layout_mode = 2
focus_neighbor_left = NodePath("../QuitButton")
focus_neighbor_top = NodePath("../QuitButton")
focus_neighbor_right = NodePath("../SettingsButton")
focus_neighbor_bottom = NodePath("../SettingsButton")
focus_next = NodePath("../SettingsButton")
focus_previous = NodePath("../QuitButton")
theme = ExtResource("4_bmt8e")
theme_override_font_sizes/font_size = 64
text = "Play"
[node name="SettingsButton" type="Button" parent="MainVBox/ButtonsVbox"]
custom_minimum_size = Vector2(0, 40)
layout_mode = 2
focus_neighbor_left = NodePath("../PlayButton")
focus_neighbor_top = NodePath("../PlayButton")
focus_neighbor_right = NodePath("../AboutButton")
focus_neighbor_bottom = NodePath("../AboutButton")
focus_next = NodePath("../AboutButton")
focus_previous = NodePath("../PlayButton")
theme = ExtResource("4_bmt8e")
theme_override_font_sizes/font_size = 64
text = "Settings"
[node name="AboutButton" type="Button" parent="MainVBox/ButtonsVbox"]
custom_minimum_size = Vector2(0, 40)
layout_mode = 2
focus_neighbor_left = NodePath("../SettingsButton")
focus_neighbor_top = NodePath("../SettingsButton")
focus_neighbor_right = NodePath("../QuitButton")
focus_neighbor_bottom = NodePath("../QuitButton")
focus_next = NodePath("../QuitButton")
focus_previous = NodePath("../SettingsButton")
theme = ExtResource("4_bmt8e")
theme_override_font_sizes/font_size = 64
text = "About"
[node name="QuitButton" type="Button" parent="MainVBox/ButtonsVbox"]
custom_minimum_size = Vector2(0, 40)
layout_mode = 2
focus_neighbor_left = NodePath("../AboutButton")
focus_neighbor_top = NodePath("../AboutButton")
focus_neighbor_right = NodePath("../PlayButton")
focus_neighbor_bottom = NodePath("../PlayButton")
focus_next = NodePath("../PlayButton")
focus_previous = NodePath("../AboutButton")
theme = ExtResource("4_bmt8e")
theme_override_font_sizes/font_size = 64
text = "Quit"
[node name="MusicPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("12_i62fw")
autoplay = true
bus = &"Music"
[connection signal="pressed" from="MainVBox/ButtonsVbox/PlayButton" to="." method="_on_play_button_pressed"]
[connection signal="pressed" from="MainVBox/ButtonsVbox/SettingsButton" to="." method="_on_settings_button_pressed"]
[connection signal="pressed" from="MainVBox/ButtonsVbox/AboutButton" to="." method="_on_about_button_pressed"]
[connection signal="pressed" from="MainVBox/ButtonsVbox/QuitButton" to="." method="_on_quit_button_pressed"]