[gd_scene format=3 uid="uid://jsrjasxkd820"] [ext_resource type="Script" uid="uid://bpbofmi7gvj6p" path="res://card_render.gd" id="1_3dncl"] [sub_resource type="Gradient" id="Gradient_sb48q"] offsets = PackedFloat32Array(0, 0.5294118, 0.9909502) colors = PackedColorArray(0, 0, 0, 1, 0.11858138, 0.11858138, 0.11858138, 1, 0, 0, 0, 1) [sub_resource type="GradientTexture2D" id="GradientTexture2D_t88pq"] gradient = SubResource("Gradient_sb48q") repeat = 1 [sub_resource type="LabelSettings" id="LabelSettings_r0x5m"] font_size = 17 [sub_resource type="ViewportTexture" id="ViewportTexture_3dncl"] viewport_path = NodePath("CardRender") [sub_resource type="Animation" id="Animation_3dncl"] length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Sprite3D:rotation") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [Vector3(0, 0, 0)] } [sub_resource type="Animation" id="Animation_eaqeq"] resource_name = "new_animation" length = 4.0 loop_mode = 1 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Sprite3D:rotation") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 1.98, 4), "transitions": PackedFloat32Array(1, 1, 1), "update": 0, "values": [Vector3(0, 0.5235988, 0), Vector3(0, -0.5235988, 0), Vector3(0, 0.5235988, 0)] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_ash2r"] _data = { &"RESET": SubResource("Animation_3dncl"), &"new_animation": SubResource("Animation_eaqeq") } [node name="Card" type="Node3D" unique_id=596397715 node_paths=PackedStringArray("NameNode", "CostNode")] script = ExtResource("1_3dncl") NameNode = NodePath("CardRender/Node2D/Name") CostNode = NodePath("CardRender/Node2D/Cost") [node name="CardRender" type="SubViewport" parent="." unique_id=1189133253] size = Vector2i(160, 190) [node name="Node2D" type="Node2D" parent="CardRender" unique_id=127198536] [node name="BG" type="Sprite2D" parent="CardRender/Node2D" unique_id=545821664] position = Vector2(80, 96.00001) scale = Vector2(2.5, 3) texture = SubResource("GradientTexture2D_t88pq") [node name="Name" type="Label" parent="CardRender/Node2D" unique_id=537154871] offset_left = 24.0 offset_right = 138.0 offset_bottom = 25.0 text = "Test" label_settings = SubResource("LabelSettings_r0x5m") horizontal_alignment = 1 clip_text = true [node name="Cost" type="Label" parent="CardRender/Node2D" unique_id=1196428120] offset_left = 138.0 offset_right = 160.0 offset_bottom = 25.0 text = "-1" label_settings = SubResource("LabelSettings_r0x5m") horizontal_alignment = 1 clip_text = true [node name="Sprite3D" type="Sprite3D" parent="." unique_id=1634659694] texture = SubResource("ViewportTexture_3dncl") [node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=1857926089] libraries/ = SubResource("AnimationLibrary_ash2r") autoplay = &"RESET"