bpm_sync.tscn 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. [gd_scene load_steps=8 format=3 uid="uid://qfdnp4pliele"]
  2. [ext_resource type="Texture2D" uid="uid://b1m28vixtwkx0" path="res://play_system_button_hl.png" id="1"]
  3. [ext_resource type="Texture2D" uid="uid://bvcb3q4c3414p" path="res://play_sound_button.png" id="2"]
  4. [ext_resource type="FontFile" uid="uid://dh3iuml41q2uq" path="res://lcd.ttf" id="2_wyi3x"]
  5. [ext_resource type="AudioStream" uid="uid://dumjxbamq37fe" path="res://the_comeback2.ogg" id="3"]
  6. [ext_resource type="Texture2D" uid="uid://y41g3g5d88f3" path="res://play_sound_button_hl.png" id="4"]
  7. [ext_resource type="Texture2D" uid="uid://cdpaolglwepko" path="res://play_system_button.png" id="5"]
  8. [ext_resource type="Script" path="res://bpm_sync.gd" id="7"]
  9. [node name="BPMSync" type="Panel"]
  10. anchors_preset = 15
  11. anchor_right = 1.0
  12. anchor_bottom = 1.0
  13. grow_horizontal = 2
  14. grow_vertical = 2
  15. size_flags_horizontal = 4
  16. size_flags_vertical = 4
  17. script = ExtResource("7")
  18. [node name="Label" type="Label" parent="."]
  19. layout_mode = 1
  20. anchors_preset = 8
  21. anchor_left = 0.5
  22. anchor_top = 0.5
  23. anchor_right = 0.5
  24. anchor_bottom = 0.5
  25. offset_left = -404.0
  26. offset_top = 55.0
  27. offset_right = 404.0
  28. offset_bottom = 121.0
  29. grow_horizontal = 2
  30. grow_vertical = 2
  31. theme_override_colors/font_color = Color(0.654902, 1, 0.67451, 1)
  32. theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
  33. theme_override_constants/shadow_offset_x = 4
  34. theme_override_constants/shadow_offset_y = 4
  35. theme_override_fonts/font = ExtResource("2_wyi3x")
  36. theme_override_font_sizes/font_size = 48
  37. text = "Press one of the buttons."
  38. horizontal_alignment = 1
  39. vertical_alignment = 1
  40. [node name="Player" type="AudioStreamPlayer" parent="."]
  41. stream = ExtResource("3")
  42. volume_db = -6.0
  43. [node name="PlaySystem" type="TextureButton" parent="."]
  44. layout_mode = 1
  45. anchors_preset = 8
  46. anchor_left = 0.5
  47. anchor_top = 0.5
  48. anchor_right = 0.5
  49. anchor_bottom = 0.5
  50. offset_left = -288.0
  51. offset_top = -136.0
  52. offset_right = -160.0
  53. offset_bottom = -7.99997
  54. grow_horizontal = 2
  55. grow_vertical = 2
  56. texture_normal = ExtResource("5")
  57. texture_pressed = ExtResource("5")
  58. texture_hover = ExtResource("1")
  59. [node name="PlaySound" type="TextureButton" parent="."]
  60. layout_mode = 1
  61. anchors_preset = 8
  62. anchor_left = 0.5
  63. anchor_top = 0.5
  64. anchor_right = 0.5
  65. anchor_bottom = 0.5
  66. offset_left = 160.0
  67. offset_top = -136.0
  68. offset_right = 288.0
  69. offset_bottom = -8.0
  70. grow_horizontal = 2
  71. grow_vertical = 2
  72. texture_normal = ExtResource("2")
  73. texture_pressed = ExtResource("2")
  74. texture_hover = ExtResource("4")
  75. [connection signal="pressed" from="PlaySystem" to="." method="_on_PlaySystem_pressed"]
  76. [connection signal="pressed" from="PlaySound" to="." method="_on_PlaySound_pressed"]