No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AudioBlock.tscn 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. [gd_scene load_steps=6 format=2]
  2. [ext_resource path="res://addons/dialogic/Editor/Pieces/AudioBlock.gd" type="Script" id=1]
  3. [ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=2]
  4. [ext_resource path="res://addons/dialogic/Images/Event Icons/Main Icons/audio-event.svg" type="Texture" id=3]
  5. [ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
  6. [sub_resource type="StyleBoxFlat" id=1]
  7. content_margin_left = 16.0
  8. content_margin_right = 6.0
  9. content_margin_top = 6.0
  10. content_margin_bottom = 6.0
  11. bg_color = Color( 0.160784, 0.423529, 0.309804, 0.447059 )
  12. border_width_left = 2
  13. border_width_top = 2
  14. border_width_right = 2
  15. border_width_bottom = 2
  16. border_color = Color( 0.12549, 0.12549, 0.12549, 1 )
  17. corner_radius_top_left = 6
  18. corner_radius_top_right = 6
  19. corner_radius_bottom_right = 6
  20. corner_radius_bottom_left = 6
  21. [node name="AudioBlock" type="HBoxContainer"]
  22. margin_right = 1798.0
  23. margin_bottom = 42.0
  24. size_flags_horizontal = 3
  25. size_flags_vertical = 9
  26. script = ExtResource( 1 )
  27. __meta__ = {
  28. "_edit_use_anchors_": false
  29. }
  30. [node name="Indent" type="Control" parent="."]
  31. visible = false
  32. margin_left = 6.0
  33. margin_top = 6.0
  34. margin_right = 1792.0
  35. margin_bottom = 36.0
  36. [node name="PanelContainer" type="PanelContainer" parent="."]
  37. margin_right = 1798.0
  38. margin_bottom = 42.0
  39. mouse_filter = 1
  40. size_flags_horizontal = 3
  41. custom_styles/panel = SubResource( 1 )
  42. [node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer"]
  43. margin_left = 16.0
  44. margin_top = 6.0
  45. margin_right = 1792.0
  46. margin_bottom = 36.0
  47. size_flags_horizontal = 3
  48. [node name="Header" type="HBoxContainer" parent="PanelContainer/VBoxContainer"]
  49. margin_right = 1776.0
  50. margin_bottom = 28.0
  51. [node name="TextureRect" type="TextureRect" parent="PanelContainer/VBoxContainer/Header"]
  52. margin_right = 22.0
  53. margin_bottom = 28.0
  54. texture = ExtResource( 3 )
  55. stretch_mode = 6
  56. [node name="Title" type="Label" parent="PanelContainer/VBoxContainer/Header"]
  57. margin_left = 26.0
  58. margin_top = 7.0
  59. margin_right = 83.0
  60. margin_bottom = 21.0
  61. text = " Audio "
  62. [node name="Name" type="Label" parent="PanelContainer/VBoxContainer/Header"]
  63. margin_left = 87.0
  64. margin_top = 7.0
  65. margin_right = 352.0
  66. margin_bottom = 21.0
  67. text = "No sound (will stop previous audio event)"
  68. [node name="ButtonAudio" type="Button" parent="PanelContainer/VBoxContainer/Header"]
  69. margin_left = 356.0
  70. margin_right = 380.0
  71. margin_bottom = 28.0
  72. text = "..."
  73. [node name="ButtonClear" type="Button" parent="PanelContainer/VBoxContainer/Header"]
  74. margin_left = 384.0
  75. margin_right = 396.0
  76. margin_bottom = 28.0
  77. disabled = true
  78. [node name="ButtonPreviewPlay" type="Button" parent="PanelContainer/VBoxContainer/Header"]
  79. margin_left = 400.0
  80. margin_right = 412.0
  81. margin_bottom = 28.0
  82. disabled = true
  83. [node name="Preview" type="Label" parent="PanelContainer/VBoxContainer/Header"]
  84. visible = false
  85. margin_left = 103.0
  86. margin_top = 8.0
  87. margin_right = 131.0
  88. margin_bottom = 22.0
  89. custom_colors/font_color = Color( 1, 1, 1, 0.513726 )
  90. text = " ..."
  91. [node name="Spacer" parent="PanelContainer/VBoxContainer/Header" instance=ExtResource( 2 )]
  92. margin_left = 416.0
  93. margin_right = 1735.0
  94. margin_bottom = 28.0
  95. [node name="OptionButton" parent="PanelContainer/VBoxContainer/Header" instance=ExtResource( 4 )]
  96. margin_left = 1739.0
  97. margin_right = 1776.0
  98. margin_bottom = 28.0
  99. items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
  100. [node name="AudioPreview" type="AudioStreamPlayer" parent="PanelContainer"]
  101. [connection signal="pressed" from="PanelContainer/VBoxContainer/Header/ButtonAudio" to="." method="_on_ButtonAudio_pressed"]
  102. [connection signal="pressed" from="PanelContainer/VBoxContainer/Header/ButtonClear" to="." method="_on_ButtonClear_pressed"]
  103. [connection signal="pressed" from="PanelContainer/VBoxContainer/Header/ButtonPreviewPlay" to="." method="_on_ButtonPreviewPlay_pressed"]
  104. [connection signal="finished" from="PanelContainer/AudioPreview" to="." method="_on_AudioPreview_finished"]