crabs-game/scenes/main_menu.tscn

101 lines
3.0 KiB
Plaintext

[gd_scene load_steps=12 format=2]
[ext_resource path="res://scripts/menu/title_background.gd" type="Script" id=1]
[ext_resource path="res://fonts/dialog_default_font.tres" type="DynamicFont" id=2]
[ext_resource path="res://scripts/menu/MenuButton.gd" type="Script" id=3]
[ext_resource path="res://images/main_menu/title_background.tres" type="SpriteFrames" id=4]
[ext_resource path="res://scripts/menu/MainMenu.gd" type="Script" id=5]
[ext_resource path="res://images/main_menu/title_background_campfire.tres" type="SpriteFrames" id=6]
[ext_resource path="res://images/main_menu/titleWithoutEly_loop.tres" type="SpriteFrames" id=7]
[ext_resource path="res://sounds/main_title.ogg" type="AudioStream" id=8]
[ext_resource path="res://scripts/main_menu.gd" type="Script" id=9]
[sub_resource type="StyleBoxEmpty" id=1]
[sub_resource type="StyleBoxEmpty" id=2]
[node name="Node2D" type="Node2D"]
script = ExtResource( 9 )
[node name="background" type="AnimatedSprite" parent="."]
frames = ExtResource( 7 )
playing = true
centered = false
[node name="ely" type="AnimatedSprite" parent="."]
visible = false
frames = ExtResource( 4 )
animation = "start"
centered = false
script = ExtResource( 1 )
start_delay = 2.0
[node name="fire" type="AnimatedSprite" parent="."]
visible = false
frames = ExtResource( 6 )
animation = "start"
centered = false
script = ExtResource( 1 )
start_delay = 4.0
[node name="UI" type="Control" parent="."]
margin_right = 40.0
margin_bottom = 40.0
script = ExtResource( 5 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Buttons" type="Control" parent="UI"]
margin_right = 40.0
margin_bottom = 40.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="PlayButton" type="Button" parent="UI/Buttons"]
anchor_left = 3.875
anchor_top = 1.35
anchor_right = 3.875
anchor_bottom = 1.35
margin_left = -13.3871
margin_top = -17.551
margin_right = 30.6129
margin_bottom = 2.449
custom_styles/focus = SubResource( 1 )
custom_fonts/font = ExtResource( 2 )
custom_colors/font_color = Color( 0.282353, 0.282353, 0.282353, 1 )
custom_colors/font_color_hover = Color( 1, 1, 1, 1 )
text = "Play"
flat = true
script = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
scene_to_load = "res://scenes/campfire.tscn"
[node name="QuitButton" type="Button" parent="UI/Buttons"]
anchor_left = 3.875
anchor_top = 1.35
anchor_right = 3.875
anchor_bottom = 1.35
margin_left = -13.3871
margin_top = 2.449
margin_right = 30.6129
margin_bottom = 22.449
custom_styles/focus = SubResource( 2 )
custom_fonts/font = ExtResource( 2 )
custom_colors/font_color = Color( 0.282353, 0.282353, 0.282353, 1 )
custom_colors/font_color_hover = Color( 1, 1, 1, 1 )
text = "Quit"
flat = true
script = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="MainMusic" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 8 )
[connection signal="animation_finished" from="ely" to="ely" method="_on_background_animation_finished"]
[connection signal="animation_finished" from="fire" to="fire" method="_on_background_animation_finished"]