build animation v1
This commit is contained in:
@@ -1,10 +1,49 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://d2ewm2lajutpv"]
|
||||
[gd_scene load_steps=9 format=3 uid="uid://d2ewm2lajutpv"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://btsnapfx0dlbb" path="res://Features/Run/RunMenuItem.cs" id="1_syj0f"]
|
||||
[ext_resource type="Texture2D" uid="uid://da8cx83rohk50" path="res://Features/LeftSideBar/Resources/Build.svg" id="2_8lles"]
|
||||
[ext_resource type="Texture2D" uid="uid://bkty6563cthj8" path="res://Features/Run/Resources/Run.svg" id="2_hxkig"]
|
||||
[ext_resource type="Texture2D" uid="uid://c7cmou8hipsvc" path="res://Features/Run/Resources/Debug.svg" id="3_cd138"]
|
||||
[ext_resource type="Texture2D" uid="uid://debdmtqgw5dhf" path="res://Features/Run/Resources/Stop.svg" id="3_hxkig"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_8lles"]
|
||||
resource_name = "BuildingAnimation"
|
||||
length = 0.5
|
||||
loop_mode = 1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("BuildAnimationTextureRect:rotation")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.2, 0.5),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [0.34906584, 0.87266463, 0.34906584]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_r58gv"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("BuildAnimationTextureRect:rotation")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [0.87266463]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_r58gv"]
|
||||
_data = {
|
||||
&"BuildingAnimation": SubResource("Animation_8lles"),
|
||||
&"RESET": SubResource("Animation_r58gv")
|
||||
}
|
||||
|
||||
[node name="RunMenuItem" type="HBoxContainer"]
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
@@ -18,6 +57,20 @@ text = "Project Name"
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="AnimatedTextureParentControl" type="Control" parent="."]
|
||||
custom_minimum_size = Vector2(40, 0)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="BuildAnimationTextureRect" type="TextureRect" parent="AnimatedTextureParentControl"]
|
||||
layout_mode = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
rotation = 0.87266463
|
||||
pivot_offset = Vector2(19, 26)
|
||||
texture = ExtResource("2_8lles")
|
||||
expand_mode = 2
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="RunButton" type="Button" parent="."]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 4
|
||||
@@ -33,3 +86,9 @@ visible = false
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 4
|
||||
icon = ExtResource("3_hxkig")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
root_node = NodePath("../AnimatedTextureParentControl")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_r58gv")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user