diff --git a/UI/CardView.tscn b/UI/CardView.tscn index 44d17fe..2875d8d 100644 --- a/UI/CardView.tscn +++ b/UI/CardView.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=8 format=2] +[gd_scene load_steps=10 format=2] [ext_resource path="res://UI/CardView.gd" type="Script" id=1] [ext_resource path="res://Assets/Metropolis-font/Metropolis-Bold.ttf" type="DynamicFontData" id=4] @@ -24,6 +24,62 @@ size = 20 use_filter = true font_data = ExtResource( 4 ) +[sub_resource type="Animation" id=7] +resource_name = "Fly Off" +length = 0.5 +step = 0.01 +tracks/0/type = "value" +tracks/0/path = NodePath("LocalPosition:rect_position") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"times": PoolRealArray( 0, 0.5 ), +"transitions": PoolRealArray( 5, 1 ), +"update": 0, +"values": [ Vector2( 0, 0 ), Vector2( 0, -999 ) ] +} +tracks/1/type = "value" +tracks/1/path = NodePath(".:rect_scale") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/keys = { +"times": PoolRealArray( 0, 0.18, 0.5 ), +"transitions": PoolRealArray( 1, 6.06286, 1 ), +"update": 0, +"values": [ Vector2( 1, 1 ), Vector2( 1, 1 ), Vector2( 1, 1.4 ) ] +} + +[sub_resource type="Animation" id=8] +length = 0.001 +tracks/0/type = "value" +tracks/0/path = NodePath("LocalPosition:rect_position") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"times": PoolRealArray( 0 ), +"transitions": PoolRealArray( 1 ), +"update": 0, +"values": [ Vector2( 0, 0 ) ] +} +tracks/1/type = "value" +tracks/1/path = NodePath(".:rect_scale") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/keys = { +"times": PoolRealArray( 0 ), +"transitions": PoolRealArray( 1 ), +"update": 0, +"values": [ Vector2( 1, 1 ) ] +} + [node name="CardView" type="Control"] anchor_right = 1.0 anchor_bottom = 1.0 @@ -33,13 +89,17 @@ size_flags_horizontal = 3 size_flags_vertical = 3 script = ExtResource( 1 ) -[node name="Background" type="PanelContainer" parent="."] +[node name="LocalPosition" type="Control" parent="."] +anchor_right = 1.0 +anchor_bottom = 1.0 + +[node name="Background" type="PanelContainer" parent="LocalPosition"] unique_name_in_owner = true anchor_right = 1.0 anchor_bottom = 1.0 custom_styles/panel = SubResource( 6 ) -[node name="VBox" type="VBoxContainer" parent="."] +[node name="VBox" type="VBoxContainer" parent="LocalPosition"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 10.0 @@ -47,7 +107,7 @@ margin_top = 10.0 margin_right = -10.0 margin_bottom = -10.0 -[node name="Name" type="Label" parent="VBox"] +[node name="Name" type="Label" parent="LocalPosition/VBox"] unique_name_in_owner = true margin_right = 295.0 margin_bottom = 31.0 @@ -56,13 +116,13 @@ text = "Default" align = 1 autowrap = true -[node name="AutoGrid" parent="VBox" instance=ExtResource( 6 )] +[node name="AutoGrid" parent="LocalPosition/VBox" instance=ExtResource( 6 )] unique_name_in_owner = true margin_top = 35.0 margin_right = 295.0 margin_bottom = 281.0 -[node name="Description" type="Label" parent="VBox"] +[node name="Description" type="Label" parent="LocalPosition/VBox"] unique_name_in_owner = true margin_top = 285.0 margin_right = 295.0 @@ -73,3 +133,7 @@ text = "Default Description" align = 1 valign = 1 autowrap = true + +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] +"anims/Fly Off" = SubResource( 7 ) +anims/RESET = SubResource( 8 )