audio_settings.tscn 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. [gd_scene load_steps=3 format=3 uid="uid://dta7rfalv4uvd"]
  2. [ext_resource type="Script" uid="uid://c7krcoq5poxdn" path="res://scenes/main/scripts/audiosettings.gd" id="2_7qbns"]
  3. [ext_resource type="Script" uid="uid://c503vew41pw80" path="res://scenes/main/scripts/color_rect_theme_invert.gd" id="2_am4qw"]
  4. [node name="AudioSettings" type="Window"]
  5. title = "Audio Settings"
  6. initial_position = 2
  7. size = Vector2i(600, 200)
  8. transient = true
  9. unresizable = true
  10. always_on_top = true
  11. script = ExtResource("2_7qbns")
  12. [node name="ColorRect" type="ColorRect" parent="." groups=["invertable_background"]]
  13. offset_right = 604.0
  14. offset_bottom = 204.0
  15. color = Color(0.101961, 0.101961, 0.101961, 0.6)
  16. script = ExtResource("2_am4qw")
  17. [node name="VBoxContainer" type="VBoxContainer" parent="."]
  18. offset_left = 12.0
  19. offset_top = 6.0
  20. offset_right = 588.0
  21. offset_bottom = 192.0
  22. [node name="WindowTitle" type="Label" parent="VBoxContainer"]
  23. layout_mode = 2
  24. theme_override_font_sizes/font_size = 25
  25. text = "Audio Settings"
  26. [node name="Label" type="Label" parent="VBoxContainer"]
  27. layout_mode = 2
  28. text = "Available audio devices:"
  29. [node name="ItemList" type="ItemList" parent="VBoxContainer"]
  30. custom_minimum_size = Vector2(0, 100)
  31. layout_mode = 2
  32. allow_reselect = true
  33. [node name="MarginContainer" type="MarginContainer" parent="VBoxContainer"]
  34. custom_minimum_size = Vector2(0, 1)
  35. layout_mode = 2
  36. [node name="DeviceInfo" type="Label" parent="VBoxContainer"]
  37. layout_mode = 2
  38. text = "Current device:"
  39. [node name="DevicePollTimer" type="Timer" parent="."]
  40. [connection signal="about_to_popup" from="." to="." method="_on_about_to_popup"]
  41. [connection signal="close_requested" from="." to="." method="_on_close_requested"]
  42. [connection signal="item_selected" from="VBoxContainer/ItemList" to="." method="_on_item_list_item_selected"]
  43. [connection signal="timeout" from="DevicePollTimer" to="." method="_on_device_poll_timer_timeout"]