added start menu animation
This commit is contained in:
parent
e089dc5d1a
commit
4da78fe7c7
@ -1,4 +1,4 @@
|
|||||||
[gd_scene load_steps=7 format=2]
|
[gd_scene load_steps=8 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://Resources/Fonts/Beon-Regular.otf" type="DynamicFontData" id=1]
|
[ext_resource path="res://Resources/Fonts/Beon-Regular.otf" type="DynamicFontData" id=1]
|
||||||
[ext_resource path="res://UI/PlayButton.gd" type="Script" id=2]
|
[ext_resource path="res://UI/PlayButton.gd" type="Script" id=2]
|
||||||
@ -16,6 +16,46 @@ font_data = ExtResource( 1 )
|
|||||||
size = 32
|
size = 32
|
||||||
font_data = ExtResource( 1 )
|
font_data = ExtResource( 1 )
|
||||||
|
|
||||||
|
[sub_resource type="Animation" id=4]
|
||||||
|
resource_name = "Text"
|
||||||
|
length = 3.0
|
||||||
|
tracks/0/type = "value"
|
||||||
|
tracks/0/path = NodePath("ForegroundGoesUp:rect_position")
|
||||||
|
tracks/0/interp = 1
|
||||||
|
tracks/0/loop_wrap = true
|
||||||
|
tracks/0/imported = false
|
||||||
|
tracks/0/enabled = false
|
||||||
|
tracks/0/keys = {
|
||||||
|
"times": PoolRealArray( 0, 2.99 ),
|
||||||
|
"transitions": PoolRealArray( 1, 1 ),
|
||||||
|
"update": 0,
|
||||||
|
"values": [ Vector2( 0, 0 ), Vector2( 0, -200 ) ]
|
||||||
|
}
|
||||||
|
tracks/1/type = "value"
|
||||||
|
tracks/1/path = NodePath("ForegroundGoesLeft:rect_size")
|
||||||
|
tracks/1/interp = 1
|
||||||
|
tracks/1/loop_wrap = true
|
||||||
|
tracks/1/imported = false
|
||||||
|
tracks/1/enabled = true
|
||||||
|
tracks/1/keys = {
|
||||||
|
"times": PoolRealArray( 0, 2.99 ),
|
||||||
|
"transitions": PoolRealArray( 1, 1 ),
|
||||||
|
"update": 0,
|
||||||
|
"values": [ Vector2( 1024, 400 ), Vector2( 240, 400 ) ]
|
||||||
|
}
|
||||||
|
tracks/2/type = "value"
|
||||||
|
tracks/2/path = NodePath("ForegroundGoesUp:rect_rotation")
|
||||||
|
tracks/2/interp = 1
|
||||||
|
tracks/2/loop_wrap = true
|
||||||
|
tracks/2/imported = false
|
||||||
|
tracks/2/enabled = true
|
||||||
|
tracks/2/keys = {
|
||||||
|
"times": PoolRealArray( 0, 3 ),
|
||||||
|
"transitions": PoolRealArray( 1, 1 ),
|
||||||
|
"update": 0,
|
||||||
|
"values": [ 0.0, -30.0 ]
|
||||||
|
}
|
||||||
|
|
||||||
[node name="MainMenu" type="Control"]
|
[node name="MainMenu" type="Control"]
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
@ -41,6 +81,17 @@ text = "Retrace"
|
|||||||
align = 1
|
align = 1
|
||||||
valign = 1
|
valign = 1
|
||||||
|
|
||||||
|
[node name="ForegroundGoesUp" type="ColorRect" parent="."]
|
||||||
|
visible = false
|
||||||
|
margin_left = -240.0
|
||||||
|
margin_right = 784.0
|
||||||
|
margin_bottom = 400.0
|
||||||
|
rect_rotation = -30.0
|
||||||
|
|
||||||
|
[node name="ForegroundGoesLeft" type="ColorRect" parent="."]
|
||||||
|
margin_right = 240.0
|
||||||
|
margin_bottom = 400.0
|
||||||
|
|
||||||
[node name="PlayButton" type="Button" parent="."]
|
[node name="PlayButton" type="Button" parent="."]
|
||||||
margin_left = 380.0
|
margin_left = 380.0
|
||||||
margin_top = 410.0
|
margin_top = 410.0
|
||||||
@ -63,5 +114,9 @@ custom_colors/font_color = Color( 1, 1, 1, 1 )
|
|||||||
text = "Disembark"
|
text = "Disembark"
|
||||||
flat = true
|
flat = true
|
||||||
script = ExtResource( 3 )
|
script = ExtResource( 3 )
|
||||||
|
|
||||||
|
[node name="AnimateForeground" type="AnimationPlayer" parent="."]
|
||||||
|
autoplay = "Text"
|
||||||
|
anims/Text = SubResource( 4 )
|
||||||
[connection signal="pressed" from="PlayButton" to="PlayButton" method="_on_PlayButton_pressed"]
|
[connection signal="pressed" from="PlayButton" to="PlayButton" method="_on_PlayButton_pressed"]
|
||||||
[connection signal="pressed" from="ExitButton" to="ExitButton" method="_on_ExitButton_pressed"]
|
[connection signal="pressed" from="ExitButton" to="ExitButton" method="_on_ExitButton_pressed"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user