2019-05-04 21:42:07 +00:00
|
|
|
[gd_scene load_steps=10 format=2]
|
2019-05-03 14:24:54 +00:00
|
|
|
|
2019-05-04 21:42:07 +00:00
|
|
|
[ext_resource path="res://Scenes/Components/Card.gd" type="Script" id=1]
|
|
|
|
[ext_resource path="res://MLPAssets/Models/cardborder.obj" type="ArrayMesh" id=2]
|
|
|
|
[ext_resource path="res://MLPAssets/Models/cardborder.material" type="Material" id=3]
|
|
|
|
[ext_resource path="res://MLPAssets/ExampleCard/ff6.jpg" type="Texture" id=4]
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id=7]
|
|
|
|
length = 0.3
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/path = NodePath(".:rotation_degrees")
|
|
|
|
tracks/0/interp = 2
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PoolRealArray( 0, 0.3 ),
|
|
|
|
"transitions": PoolRealArray( 0.466516, 2.37841 ),
|
|
|
|
"update": 0,
|
|
|
|
"values": [ Vector3( 0, 0, 0 ), Vector3( 0, -90, 0 ) ]
|
|
|
|
}
|
2019-05-03 14:24:54 +00:00
|
|
|
|
2019-05-04 19:33:47 +00:00
|
|
|
[sub_resource type="Animation" id=2]
|
|
|
|
length = 0.5
|
|
|
|
step = 0.05
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/path = NodePath(".:translation")
|
|
|
|
tracks/0/interp = 2
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/keys = {
|
2019-05-04 21:42:07 +00:00
|
|
|
"times": PoolRealArray( 0, 0.25, 0.5 ),
|
2019-05-04 19:33:47 +00:00
|
|
|
"transitions": PoolRealArray( 1, 1, 1 ),
|
|
|
|
"update": 0,
|
|
|
|
"values": [ Vector3( 0, 0, 0 ), Vector3( 0, 0.5, 0 ), Vector3( 0, 0, 0 ) ]
|
|
|
|
}
|
|
|
|
tracks/1/type = "value"
|
|
|
|
tracks/1/path = NodePath(".:rotation_degrees")
|
|
|
|
tracks/1/interp = 2
|
|
|
|
tracks/1/loop_wrap = true
|
|
|
|
tracks/1/imported = false
|
|
|
|
tracks/1/enabled = true
|
|
|
|
tracks/1/keys = {
|
2019-05-04 21:42:07 +00:00
|
|
|
"times": PoolRealArray( 0, 0.5 ),
|
2019-05-04 19:33:47 +00:00
|
|
|
"transitions": PoolRealArray( 1, 1 ),
|
|
|
|
"update": 0,
|
|
|
|
"values": [ Vector3( 0, 0, 0 ), Vector3( 0, 0, 180 ) ]
|
|
|
|
}
|
2019-05-03 14:24:54 +00:00
|
|
|
|
2019-05-04 21:42:07 +00:00
|
|
|
[sub_resource type="PlaneMesh" id=8]
|
|
|
|
|
|
|
|
[sub_resource type="SpatialMaterial" id=5]
|
|
|
|
flags_unshaded = true
|
|
|
|
albedo_texture = ExtResource( 4 )
|
|
|
|
uv1_scale = Vector3( 0.9, 0.9, 1 )
|
|
|
|
uv1_offset = Vector3( 0.05, 0.05, 0 )
|
|
|
|
|
|
|
|
[sub_resource type="BoxShape" id=6]
|
|
|
|
extents = Vector3( 0.367502, 0.0283921, 0.49861 )
|
|
|
|
|
|
|
|
[node name="Card" type="Spatial"]
|
|
|
|
script = ExtResource( 1 )
|
|
|
|
|
|
|
|
[node name="Border" type="MeshInstance" parent="."]
|
|
|
|
mesh = ExtResource( 2 )
|
|
|
|
material/0 = ExtResource( 3 )
|
|
|
|
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="Border"]
|
|
|
|
anims/flip = SubResource( 7 )
|
|
|
|
anims/tap = SubResource( 2 )
|
|
|
|
|
|
|
|
[node name="CardImage" type="MeshInstance" parent="Border"]
|
|
|
|
transform = Transform( 0.318962, 0, 0, 0, 1, 0, 0, 0, 0.450381, 0, 0.007, 0 )
|
|
|
|
mesh = SubResource( 8 )
|
|
|
|
material/0 = SubResource( 5 )
|
2019-05-03 14:24:54 +00:00
|
|
|
|
2019-05-04 21:42:07 +00:00
|
|
|
[node name="Area" type="Area" parent="."]
|
|
|
|
input_capture_on_drag = true
|
2019-05-04 19:33:47 +00:00
|
|
|
|
2019-05-04 21:42:07 +00:00
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="Area"]
|
|
|
|
shape = SubResource( 6 )
|
|
|
|
[connection signal="input_event" from="Area" to="." method="_area_input"]
|
|
|
|
[connection signal="mouse_entered" from="Area" to="." method="_mouse_hover"]
|