crabs-game/scenes/main_menu.tscn

89 lines
2.5 KiB
Plaintext
Raw Normal View History

2020-08-16 08:50:04 +02:00
[gd_scene load_steps=9 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]
2020-08-17 11:51:44 +02:00
[ext_resource path="res://images/main_menu/title_background.tres" type="SpriteFrames" id=4]
2020-08-16 08:50:04 +02:00
[ext_resource path="res://scripts/menu/MainMenu.gd" type="Script" id=5]
2020-08-17 11:51:44 +02:00
[ext_resource path="res://images/main_menu/title_background_campfire.tres" type="SpriteFrames" id=6]
2020-08-16 08:50:04 +02:00
[sub_resource type="StyleBoxEmpty" id=1]
[sub_resource type="StyleBoxEmpty" id=2]
[node name="Node2D" type="Node2D"]
2020-08-17 11:38:42 +02:00
[node name="ely" type="AnimatedSprite" parent="."]
visible = false
2020-08-16 08:50:04 +02:00
frames = ExtResource( 4 )
animation = "start"
centered = false
script = ExtResource( 1 )
2020-08-17 11:38:42 +02:00
start_delay = 2.0
2020-08-16 08:50:04 +02:00
2020-08-17 11:38:42 +02:00
[node name="fire" type="AnimatedSprite" parent="."]
visible = false
2020-08-16 08:50:04 +02:00
frames = ExtResource( 6 )
animation = "start"
centered = false
script = ExtResource( 1 )
2020-08-17 11:38:42 +02:00
start_delay = 4.0
2020-08-16 08:50:04 +02:00
[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
}
2020-08-17 11:38:42 +02:00
[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"]