audio_settings.tscn 1.7 KB

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