Changer.tscn 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. [gd_scene load_steps=3 format=3 uid="uid://co1ys4ggr68mk"]
  2. [ext_resource type="Script" path="res://Changer.gd" id="1"]
  3. [ext_resource type="AudioStream" uid="uid://k0y5fyud50c1" path="res://Intro.ogg" id="2"]
  4. [node name="Changer" type="Control"]
  5. layout_mode = 3
  6. anchors_preset = 8
  7. anchor_left = 0.5
  8. anchor_top = 0.5
  9. anchor_right = 0.5
  10. anchor_bottom = 0.5
  11. offset_left = -511.5
  12. offset_top = -299.0
  13. offset_right = 511.5
  14. offset_bottom = 299.0
  15. grow_horizontal = 2
  16. grow_vertical = 2
  17. script = ExtResource("1")
  18. [node name="ItemList" type="ItemList" parent="."]
  19. layout_mode = 0
  20. offset_left = 57.0
  21. offset_top = 33.0
  22. offset_right = 960.0
  23. offset_bottom = 228.0
  24. [node name="DeviceInfo" type="Label" parent="."]
  25. layout_mode = 0
  26. offset_left = 321.0
  27. offset_top = 248.0
  28. offset_right = 660.0
  29. offset_bottom = 284.0
  30. [node name="SetDevice" type="Button" parent="."]
  31. layout_mode = 0
  32. offset_left = 425.723
  33. offset_top = 309.733
  34. offset_right = 556.723
  35. offset_bottom = 354.733
  36. text = "Set Device"
  37. [node name="PlayAudio" type="Button" parent="."]
  38. layout_mode = 0
  39. offset_left = 424.0
  40. offset_top = 373.0
  41. offset_right = 557.0
  42. offset_bottom = 414.0
  43. text = "Play Audio"
  44. [node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
  45. stream = ExtResource("2")
  46. volume_db = -6.0
  47. [connection signal="button_down" from="SetDevice" to="." method="_on_Button_button_down"]
  48. [connection signal="button_down" from="PlayAudio" to="." method="_on_Play_Audio_button_down"]