setting up card picker and animations WIP

This commit is contained in:
betalars 2023-05-19 17:55:00 +02:00
parent 5650f53ed6
commit 939e4cc886
3 changed files with 807 additions and 2 deletions

View File

@ -62,7 +62,7 @@ compatible_postits = Array[Resource("res://logic-scenes/board/post-it.gd")]([nul
position = Vector2(150, 110)
scale = Vector2(0.6, 0.6)
sprite_frames = SubResource("SpriteFrames_ckivt")
frame_progress = 0.407616
frame = 3
[node name="Label" type="Label" parent="."]
layout_mode = 1
@ -90,4 +90,3 @@ offset_bottom = 188.0
[connection signal="focus_entered" from="." to="." method="_on_focus_entered"]
[connection signal="focus_exited" from="." to="." method="_on_focus_exited"]
[connection signal="focus_entered" from="postit anchor" to="." method="_on_postit_anchor_focus_entered"]

View File

@ -0,0 +1,26 @@
extends CenterContainer
# Called when the node enters the scene tree for the first time.
func _ready():
#$cards/card_1/AnimationPlayer.play("select_1")
#await$cards/card_1/AnimationPlayer.animation_finished
#$cards/card_1/AnimationPlayer.play("deselect_1")
#await$cards/card_1/AnimationPlayer.animation_finished
#$cards/card_1/AnimationPlayer.play("select_1")
#await$cards/card_1/AnimationPlayer.animation_finished
#$cards/card_1/AnimationPlayer.play("take_1")
#$cards/card_2/AnimationPlayer.play("unshuffle_2")
#$cards/card_3/AnimationPlayer.play("shuffle_3")
#await$cards/card_1/AnimationPlayer.animation_finished
for card in $"post-its".get_children():
card.get_child(1).play("RESET")
$"post-its/post-it_1/AnimationPlayer".play("select")
await $"post-its/post-it_1/AnimationPlayer".animation_finished
await get_tree().create_timer(2).timeout
$"post-its/post-it_1/AnimationPlayer".play("pick")
$"post-its/post-it_3/AnimationPlayer".play("shuffle")
$"post-its/post-it_2/AnimationPlayer".play("unshuffle")
$"post-its/post-it_4/AnimationPlayer".play("unshuffle")

View File

@ -0,0 +1,780 @@
[gd_scene load_steps=39 format=3 uid="uid://of12u28124yn"]
[ext_resource type="Script" path="res://logic-scenes/card_picker/card_picker.gd" id="1_8ofnx"]
[ext_resource type="PackedScene" uid="uid://dy5rd437h5hsw" path="res://logic-scenes/board/card.tscn" id="2_dqebt"]
[ext_resource type="PackedScene" uid="uid://vkcdj8c3ytbq" path="res://logic-scenes/board/post-it.tscn" id="3_ggbxq"]
[sub_resource type="Animation" id="Animation_ldr2c"]
resource_name = "select_1"
length = 0.3
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../post-it_1:rotation")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1, 1.93187),
"update": 0,
"values": [-0.109599, -0.0244346]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("../post-it_1:scale")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1, 1.93187),
"update": 0,
"values": [Vector2(1, 1), Vector2(1.1, 1.1)]
}
[sub_resource type="Animation" id="Animation_dinvx"]
length = 0.001
[sub_resource type="Animation" id="Animation_4dp1g"]
resource_name = "deselect_1"
length = 0.7
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../post-it_1:rotation")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.7),
"transitions": PackedFloat32Array(0.5, 1),
"update": 0,
"values": [-0.0244346, -0.109599]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("../post-it_1:scale")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.4),
"transitions": PackedFloat32Array(0.482968, 1),
"update": 0,
"values": [Vector2(1.1, 1.1), Vector2(1, 1)]
}
[sub_resource type="Animation" id="Animation_76klu"]
resource_name = "take_1"
length = 1.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../post-it_1:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0.7, 1.4),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(1.1, 1.1), Vector2(1.2, 0.8)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("../post-it_1:rotation")
tracks/1/interp = 2
tracks/1/loop_wrap = false
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.5, 1, 1.4),
"transitions": PackedFloat32Array(1, 0.435275, 0.435275, 1),
"update": 0,
"values": [-0.0244346, -0.174533, 0.698132, 0.571249]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("../post-it_1:position")
tracks/2/interp = 2
tracks/2/loop_wrap = false
tracks/2/keys = {
"times": PackedFloat32Array(0.2, 0.5, 0.9, 1.2, 1.4),
"transitions": PackedFloat32Array(0.535887, 1.07177, 1.03526, 0.615572, 1),
"update": 0,
"values": [Vector2(-339, 37), Vector2(-374, -127), Vector2(-405, 103), Vector2(176, 654), Vector2(508, 809)]
}
[sub_resource type="Animation" id="Animation_d68d2"]
resource_name = "unshuffle_2"
length = 5.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../card_2:position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0.5, 1.2, 1.5, 1.9, 3),
"transitions": PackedFloat32Array(1, 1, 1, 0.392292, 1),
"update": 0,
"values": [Vector2(0, 0), Vector2(-20, 195), Vector2(17, 161), Vector2(28, 213), Vector2(322, -781)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("../card_2:rotation")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0.5, 1.4, 1.8, 2.6),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [0.0, 0.0436332, -0.21293, 3.22362]
}
[sub_resource type="Animation" id="Animation_abihp"]
resource_name = "shuffle"
length = 5.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0.5, 0.9, 1.4, 2.8, 3.9, 5),
"transitions": PackedFloat32Array(1, 1, 1, 1, 0.574349, 1),
"update": 0,
"values": [Vector2(339, 20), Vector2(18, 189), Vector2(1, 168), Vector2(-11, 299), Vector2(-6, 259), Vector2(-33, 799)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:rotation")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0.5, 1.2, 1.8, 2.6, 3.9, 5),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
"update": 0,
"values": [0.0802851, -0.520108, 0.336849, -0.13439, 0.0785398, 0.893609]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath(".:scale")
tracks/2/interp = 2
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0.5, 2.3, 3.3),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector2(1, 1), Vector2(1, 1), Vector2(1.2, 1.2)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_gdxmh"]
_data = {
"RESET": SubResource("Animation_dinvx"),
"deselect_1": SubResource("Animation_4dp1g"),
"select_1": SubResource("Animation_ldr2c"),
"shuffle": SubResource("Animation_abihp"),
"take_1": SubResource("Animation_76klu"),
"unshuffle_2": SubResource("Animation_d68d2")
}
[sub_resource type="Animation" id="Animation_gobvn"]
resource_name = "select"
length = 0.2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("..:position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1.27456, 0.870551),
"update": 0,
"values": [Vector2(0, -150), Vector2(-36, -150)]
}
[sub_resource type="Animation" id="Animation_hh7qf"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("..:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, -150)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("..:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}
[sub_resource type="Animation" id="Animation_db3wx"]
resource_name = "deselect"
length = 0.3
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("..:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.3),
"transitions": PackedFloat32Array(0.170755, 0.554785),
"update": 0,
"values": [Vector2(-36, -150), Vector2(0, -150)]
}
[sub_resource type="Animation" id="Animation_f8vfd"]
resource_name = "pick"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("..:position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2, 0.3, 1),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [Vector2(-36, -150), Vector2(-178, -162), Vector2(-211, -168), Vector2(-232, 660)]
}
[sub_resource type="Animation" id="Animation_mvyrg"]
resource_name = "shuffle"
length = 3.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("..:position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0.3, 0.6, 2, 2.4, 2.9),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
"update": 0,
"values": [Vector2(-36, -150), Vector2(-178, -12), Vector2(-178, -12), Vector2(-211, -18), Vector2(-232, 660)]
}
[sub_resource type="Animation" id="Animation_44t0h"]
resource_name = "unshuffle"
length = 2.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("..:position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0.3, 0.6, 1, 1.9),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [Vector2(-36, 0), Vector2(-178, -12), Vector2(-178, -12), Vector2(2402, -42)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("..:rotation")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0.4, 0.9, 2),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [0.0, -0.129154, 0.698132]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ga4dm"]
_data = {
"RESET": SubResource("Animation_hh7qf"),
"deselect": SubResource("Animation_db3wx"),
"pick": SubResource("Animation_f8vfd"),
"select": SubResource("Animation_gobvn"),
"shuffle": SubResource("Animation_mvyrg"),
"unshuffle": SubResource("Animation_44t0h")
}
[sub_resource type="Animation" id="Animation_tl7d6"]
resource_name = "pick"
length = 0.2
[sub_resource type="Animation" id="Animation_ourou"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("..:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, -50)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("..:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}
[sub_resource type="Animation" id="Animation_8li7b"]
resource_name = "select"
length = 0.2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("..:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1.27456, 1),
"update": 0,
"values": [Vector2(0, -50), Vector2(-36, -50)]
}
[sub_resource type="Animation" id="Animation_t16fx"]
resource_name = "deselect"
length = 0.3
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("..:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(0.225313, 1.27456),
"update": 0,
"values": [Vector2(-36, -50), Vector2(0, -50)]
}
[sub_resource type="Animation" id="Animation_iek4d"]
resource_name = "shuffle"
length = 3.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("..:position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0.3, 0.6, 1.9, 2.3, 2.9),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
"update": 0,
"values": [Vector2(0, -50), Vector2(-191, -3), Vector2(-191, -3), Vector2(-195, -30), Vector2(-237, 766)]
}
[sub_resource type="Animation" id="Animation_1rscv"]
resource_name = "unshuffle"
length = 2.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("..:position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0.2, 0.6, 1.1, 1.9),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [Vector2(0, -50), Vector2(-172, -20), Vector2(-172, -20), Vector2(2406, -46)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("..:rotation")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0.4, 1.1, 1.9),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [0.0, 0.300197, 0.349066]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_sxnmi"]
_data = {
"RESET": SubResource("Animation_ourou"),
"deselect": SubResource("Animation_t16fx"),
"pick": SubResource("Animation_tl7d6"),
"select": SubResource("Animation_8li7b"),
"shuffle": SubResource("Animation_iek4d"),
"unshuffle": SubResource("Animation_1rscv")
}
[sub_resource type="Animation" id="Animation_k8c2u"]
resource_name = "pick"
[sub_resource type="Animation" id="Animation_v6m7e"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../../post-it_3:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, 50)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("../../post-it_3:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}
[sub_resource type="Animation" id="Animation_pctou"]
resource_name = "select"
length = 0.2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../../post-it_3:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1.41421, 1),
"update": 0,
"values": [Vector2(0, 50), Vector2(-36, 50)]
}
[sub_resource type="Animation" id="Animation_32m72"]
resource_name = "deselect"
length = 0.3
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../../post-it_3:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(0.217638, 1.41421),
"update": 0,
"values": [Vector2(-36, 50), Vector2(0, 50)]
}
[sub_resource type="Animation" id="Animation_mi4ua"]
resource_name = "shuffle"
length = 3.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../../post-it_3:position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0.3, 0.7, 1.9, 2.3, 2.9),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
"update": 0,
"values": [Vector2(0, 50), Vector2(-170, -23), Vector2(-170, -23), Vector2(-207, -39), Vector2(-207, 765)]
}
[sub_resource type="Animation" id="Animation_gnv6g"]
resource_name = "unshuffle"
length = 2.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../../post-it_3:position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0.4, 0.7, 1.2, 1.9),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [Vector2(0, 50), Vector2(-170, -7), Vector2(-170, -7), Vector2(2406, -48)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("../../post-it_3:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0.4, 1.1, 1.9),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [0.0, -0.34383, 1.39626]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_xs06v"]
_data = {
"RESET": SubResource("Animation_v6m7e"),
"deselect": SubResource("Animation_32m72"),
"pick": SubResource("Animation_k8c2u"),
"select": SubResource("Animation_pctou"),
"shuffle": SubResource("Animation_mi4ua"),
"unshuffle": SubResource("Animation_gnv6g")
}
[sub_resource type="Animation" id="Animation_0q62n"]
resource_name = "pick"
[sub_resource type="Animation" id="Animation_3dc20"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../../post-it_4:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, 150)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("../../post-it_4:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}
[sub_resource type="Animation" id="Animation_36h4c"]
resource_name = "select"
length = 0.2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../../post-it_4:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1.46409, 1),
"update": 0,
"values": [Vector2(0, 150), Vector2(-36, 150)]
}
[sub_resource type="Animation" id="Animation_23127"]
resource_name = "deselect"
length = 0.3
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../../post-it_4:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(0.203063, 1.46409),
"update": 0,
"values": [Vector2(-36, 150), Vector2(0, 150)]
}
[sub_resource type="Animation" id="Animation_m0sop"]
resource_name = "shuffle"
length = 3.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../../post-it_4:position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0.3, 0.8, 1.9, 2.3, 2.9),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
"update": 0,
"values": [Vector2(0, 150), Vector2(-180, 7), Vector2(-180, 7), Vector2(-182, -37), Vector2(-238, 763)]
}
[sub_resource type="Animation" id="Animation_hh1hx"]
resource_name = "unshuffle"
length = 2.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../../post-it_4:position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0.5, 0.9, 1.3, 1.9),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [Vector2(0, 150), Vector2(-191, -2), Vector2(-191, -2), Vector2(2406, -47)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("../../post-it_4:rotation")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0.4, 1, 1.9),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [0.0, 0.129154, 1.0472]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_tdl1s"]
_data = {
"RESET": SubResource("Animation_3dc20"),
"deselect": SubResource("Animation_23127"),
"pick": SubResource("Animation_0q62n"),
"select": SubResource("Animation_36h4c"),
"shuffle": SubResource("Animation_m0sop"),
"unshuffle": SubResource("Animation_hh1hx")
}
[node name="picker" type="CenterContainer"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_8ofnx")
[node name="cards" type="Panel" parent="."]
layout_mode = 2
[node name="card_1" type="Control" parent="cards"]
layout_mode = 2
anchors_preset = 0
offset_left = -339.0
offset_top = 37.0
offset_right = -339.0
offset_bottom = 37.0
rotation = -0.109599
[node name="card" parent="cards/card_1" instance=ExtResource("2_dqebt")]
[node name="AnimationPlayer" type="AnimationPlayer" parent="cards/card_1"]
root_node = NodePath("../../card_3")
libraries = {
"": SubResource("AnimationLibrary_gdxmh")
}
[node name="card_2" type="Control" parent="cards"]
layout_mode = 2
anchors_preset = 0
[node name="card" parent="cards/card_2" instance=ExtResource("2_dqebt")]
[node name="AnimationPlayer" type="AnimationPlayer" parent="cards/card_2"]
root_node = NodePath("../../card_3")
libraries = {
"": SubResource("AnimationLibrary_gdxmh")
}
[node name="card_3" type="Control" parent="cards"]
layout_mode = 2
anchors_preset = 0
offset_top = 57.0
offset_bottom = 57.0
rotation = 0.0802851
[node name="card" parent="cards/card_3" instance=ExtResource("2_dqebt")]
[node name="AnimationPlayer" type="AnimationPlayer" parent="cards/card_3"]
libraries = {
"": SubResource("AnimationLibrary_gdxmh")
}
[node name="post-its" type="Panel" parent="."]
layout_mode = 2
[node name="post-it_1" type="Control" parent="post-its"]
layout_mode = 2
anchors_preset = 0
offset_top = -150.0
offset_bottom = -150.0
[node name="post-it" parent="post-its/post-it_1" instance=ExtResource("3_ggbxq")]
text = "Post 1"
[node name="AnimationPlayer" type="AnimationPlayer" parent="post-its/post-it_1"]
root_node = NodePath("../post-it")
autoplay = "RESET"
libraries = {
"": SubResource("AnimationLibrary_ga4dm")
}
[node name="post-it_2" type="Control" parent="post-its"]
layout_mode = 2
anchors_preset = 0
offset_top = -50.0
offset_bottom = -50.0
[node name="post-it" parent="post-its/post-it_2" instance=ExtResource("3_ggbxq")]
text = "Post 2"
[node name="AnimationPlayer" type="AnimationPlayer" parent="post-its/post-it_2"]
root_node = NodePath("../post-it")
autoplay = "RESET"
libraries = {
"": SubResource("AnimationLibrary_sxnmi")
}
[node name="post-it_3" type="Control" parent="post-its"]
layout_mode = 2
anchors_preset = 0
offset_top = 50.0
offset_bottom = 50.0
[node name="post-it" parent="post-its/post-it_3" instance=ExtResource("3_ggbxq")]
text = "Post 3"
[node name="AnimationPlayer" type="AnimationPlayer" parent="post-its/post-it_3"]
root_node = NodePath("../../post-it_2/post-it")
autoplay = "RESET"
libraries = {
"": SubResource("AnimationLibrary_xs06v")
}
[node name="post-it_4" type="Control" parent="post-its"]
layout_mode = 2
anchors_preset = 0
offset_top = 150.0
offset_bottom = 150.0
[node name="post-it" parent="post-its/post-it_4" instance=ExtResource("3_ggbxq")]
text = "Post 4"
[node name="AnimationPlayer" type="AnimationPlayer" parent="post-its/post-it_4"]
root_node = NodePath("../../post-it_2/post-it")
autoplay = "RESET"
libraries = {
"": SubResource("AnimationLibrary_tdl1s")
}