Test.tscn 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. [gd_scene load_steps=8 format=3 uid="uid://eenfo8d1a16f"]
  2. [ext_resource type="Script" uid="uid://dyya557f5ssfs" path="res://Scripts/_Test.cs" id="1_3wv3v"]
  3. [ext_resource type="SpriteFrames" uid="uid://dvvevqlcxgsmn" path="res://Resources/cursor_sprite_frames.tres" id="2_i8xqr"]
  4. [ext_resource type="Texture2D" uid="uid://bkbthijjqw52q" path="res://icon.svg" id="3_id8a5"]
  5. [ext_resource type="PackedScene" uid="uid://b6vfotuimp4ay" path="res://Scenes/EditorTest.tscn" id="4_i8xqr"]
  6. [sub_resource type="Animation" id="Animation_epypp"]
  7. length = 0.001
  8. tracks/0/type = "value"
  9. tracks/0/imported = false
  10. tracks/0/enabled = true
  11. tracks/0/path = NodePath("Sprite2D:texture")
  12. tracks/0/interp = 1
  13. tracks/0/loop_wrap = true
  14. tracks/0/keys = {
  15. "times": PackedFloat32Array(0),
  16. "transitions": PackedFloat32Array(1),
  17. "update": 1,
  18. "values": [ExtResource("3_id8a5")]
  19. }
  20. [sub_resource type="Animation" id="Animation_wtcfe"]
  21. resource_name = "new_animation"
  22. step = 0.1
  23. tracks/0/type = "value"
  24. tracks/0/imported = false
  25. tracks/0/enabled = true
  26. tracks/0/path = NodePath("Sprite2D:texture")
  27. tracks/0/interp = 1
  28. tracks/0/loop_wrap = true
  29. tracks/0/keys = {
  30. "times": PackedFloat32Array(0, 0.101116),
  31. "transitions": PackedFloat32Array(1, 1),
  32. "update": 1,
  33. "values": [ExtResource("3_id8a5"), ExtResource("3_id8a5")]
  34. }
  35. [sub_resource type="AnimationLibrary" id="AnimationLibrary_0e48y"]
  36. _data = {
  37. &"RESET": SubResource("Animation_epypp"),
  38. &"new_animation": SubResource("Animation_wtcfe")
  39. }
  40. [node name="Node2D" type="Node2D"]
  41. script = ExtResource("1_3wv3v")
  42. [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
  43. position = Vector2(1002, 170)
  44. sprite_frames = ExtResource("2_i8xqr")
  45. animation = &"Default"
  46. offset = Vector2(21, -49)
  47. [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
  48. libraries = {
  49. &"": SubResource("AnimationLibrary_0e48y")
  50. }
  51. [node name="Sprite2D" type="Sprite2D" parent="."]
  52. position = Vector2(273, 131)
  53. texture = ExtResource("3_id8a5")
  54. [node name="Control" parent="." instance=ExtResource("4_i8xqr")]
  55. anchors_preset = 0
  56. anchor_right = 0.0
  57. anchor_bottom = 0.0
  58. offset_left = -554.0
  59. offset_top = -321.0
  60. offset_right = -554.0
  61. offset_bottom = -321.0
  62. grow_horizontal = 1
  63. grow_vertical = 1
  64. metadata/_edit_use_anchors_ = true
  65. [node name="Camera2D" type="Camera2D" parent="."]