transition.tscn 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. [gd_scene load_steps=8 format=3 uid="uid://ce8cu4romympf"]
  2. [ext_resource type="Texture2D" uid="uid://b6nsk6rd8a7sn" path="res://assets/textures/menu_background.jpg" id="1_cwnax"]
  3. [ext_resource type="Script" path="res://assets/scenes/transition.gd" id="1_jl8cy"]
  4. [ext_resource type="FontFile" uid="uid://cqtognhaksl7j" path="res://assets/fonts/Potra.ttf" id="3_liow6"]
  5. [sub_resource type="Animation" id="Animation_sqshj"]
  6. resource_name = "slide-in"
  7. step = 0.0333333
  8. tracks/0/type = "value"
  9. tracks/0/imported = false
  10. tracks/0/enabled = true
  11. tracks/0/path = NodePath(".:position")
  12. tracks/0/interp = 2
  13. tracks/0/loop_wrap = false
  14. tracks/0/keys = {
  15. "times": PackedFloat32Array(0, 1),
  16. "transitions": PackedFloat32Array(1, 1),
  17. "update": 0,
  18. "values": [Vector2(-1280, 0), Vector2(0, 0)]
  19. }
  20. [sub_resource type="Animation" id="Animation_7tdps"]
  21. resource_name = "slide-out"
  22. step = 0.0333333
  23. tracks/0/type = "value"
  24. tracks/0/imported = false
  25. tracks/0/enabled = true
  26. tracks/0/path = NodePath(".:position")
  27. tracks/0/interp = 2
  28. tracks/0/loop_wrap = false
  29. tracks/0/keys = {
  30. "times": PackedFloat32Array(0, 1),
  31. "transitions": PackedFloat32Array(1, 1),
  32. "update": 0,
  33. "values": [Vector2(0, 0), Vector2(-1280, 0)]
  34. }
  35. [sub_resource type="AnimationLibrary" id="AnimationLibrary_3vpft"]
  36. _data = {
  37. "slide-in": SubResource("Animation_sqshj"),
  38. "slide-out": SubResource("Animation_7tdps")
  39. }
  40. [sub_resource type="LabelSettings" id="LabelSettings_sm7j6"]
  41. font = ExtResource("3_liow6")
  42. font_size = 69
  43. [node name="Transition" type="Control"]
  44. process_mode = 3
  45. layout_mode = 3
  46. anchors_preset = 0
  47. script = ExtResource("1_jl8cy")
  48. [node name="Background" type="TextureRect" parent="."]
  49. layout_mode = 1
  50. offset_right = 1280.0
  51. offset_bottom = 720.0
  52. texture = ExtResource("1_cwnax")
  53. [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
  54. libraries = {
  55. "": SubResource("AnimationLibrary_3vpft")
  56. }
  57. [node name="Label" type="Label" parent="."]
  58. layout_mode = 0
  59. offset_left = 215.0
  60. offset_top = 322.0
  61. offset_right = 646.0
  62. offset_bottom = 405.0
  63. label_settings = SubResource("LabelSettings_sm7j6")
  64. horizontal_alignment = 1