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.

BackgroundMusic.tscn 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. [gd_scene load_steps=9 format=2]
  2. [ext_resource path="res://addons/dialogic/Editor/Pieces/BackgroundMusic.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/audio-event.svg" type="Texture" id=3]
  5. [ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
  6. [ext_resource path="res://addons/dialogic/Images/play.svg" type="Texture" id=5]
  7. [ext_resource path="res://addons/dialogic/Editor/Pieces/Common/DragController.tscn" type="PackedScene" id=6]
  8. [ext_resource path="res://addons/dialogic/Images/Remove.svg" type="Texture" id=7]
  9. [sub_resource type="StyleBoxFlat" id=1]
  10. content_margin_left = 16.0
  11. content_margin_right = 6.0
  12. content_margin_top = 6.0
  13. content_margin_bottom = 6.0
  14. bg_color = Color( 0.298039, 0.172549, 0.14902, 0.447059 )
  15. border_width_left = 2
  16. border_width_top = 2
  17. border_width_right = 2
  18. border_width_bottom = 2
  19. border_color = Color( 0.12549, 0.12549, 0.12549, 1 )
  20. corner_radius_top_left = 6
  21. corner_radius_top_right = 6
  22. corner_radius_bottom_right = 6
  23. corner_radius_bottom_left = 6
  24. [node name="BackgroundMusic" type="HBoxContainer"]
  25. margin_right = 1798.0
  26. margin_bottom = 42.0
  27. size_flags_horizontal = 3
  28. size_flags_vertical = 9
  29. script = ExtResource( 1 )
  30. __meta__ = {
  31. "_edit_use_anchors_": false
  32. }
  33. [node name="Indent" type="Control" parent="."]
  34. visible = false
  35. margin_left = 6.0
  36. margin_top = 6.0
  37. margin_right = 1792.0
  38. margin_bottom = 36.0
  39. [node name="PanelContainer" type="PanelContainer" parent="."]
  40. margin_right = 1798.0
  41. margin_bottom = 42.0
  42. mouse_filter = 1
  43. size_flags_horizontal = 3
  44. custom_styles/panel = SubResource( 1 )
  45. [node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer"]
  46. margin_left = 16.0
  47. margin_top = 6.0
  48. margin_right = 1792.0
  49. margin_bottom = 36.0
  50. size_flags_horizontal = 3
  51. [node name="Header" type="HBoxContainer" parent="PanelContainer/VBoxContainer"]
  52. margin_right = 1776.0
  53. margin_bottom = 28.0
  54. [node name="TextureRect" type="TextureRect" parent="PanelContainer/VBoxContainer/Header"]
  55. margin_right = 22.0
  56. margin_bottom = 28.0
  57. texture = ExtResource( 3 )
  58. stretch_mode = 6
  59. [node name="Title" type="Label" parent="PanelContainer/VBoxContainer/Header"]
  60. margin_left = 26.0
  61. margin_top = 7.0
  62. margin_right = 150.0
  63. margin_bottom = 21.0
  64. text = " Background Music"
  65. [node name="Name" type="Label" parent="PanelContainer/VBoxContainer/Header"]
  66. margin_left = 154.0
  67. margin_top = 7.0
  68. margin_right = 188.0
  69. margin_bottom = 21.0
  70. text = "None"
  71. [node name="ButtonAudio" type="Button" parent="PanelContainer/VBoxContainer/Header"]
  72. margin_left = 192.0
  73. margin_right = 216.0
  74. margin_bottom = 28.0
  75. text = "..."
  76. [node name="ButtonClear" type="Button" parent="PanelContainer/VBoxContainer/Header"]
  77. margin_left = 220.0
  78. margin_right = 248.0
  79. margin_bottom = 28.0
  80. disabled = true
  81. icon = ExtResource( 7 )
  82. [node name="ButtonPreviewPlay" type="Button" parent="PanelContainer/VBoxContainer/Header"]
  83. margin_left = 252.0
  84. margin_right = 286.0
  85. margin_bottom = 28.0
  86. disabled = true
  87. icon = ExtResource( 5 )
  88. [node name="Preview" type="Label" parent="PanelContainer/VBoxContainer/Header"]
  89. visible = false
  90. margin_left = 103.0
  91. margin_top = 8.0
  92. margin_right = 131.0
  93. margin_bottom = 22.0
  94. custom_colors/font_color = Color( 1, 1, 1, 0.513726 )
  95. text = " ..."
  96. [node name="Spacer" parent="PanelContainer/VBoxContainer/Header" instance=ExtResource( 2 )]
  97. margin_left = 290.0
  98. margin_right = 1735.0
  99. margin_bottom = 28.0
  100. [node name="OptionButton" parent="PanelContainer/VBoxContainer/Header" instance=ExtResource( 4 )]
  101. margin_left = 1739.0
  102. margin_right = 1776.0
  103. margin_bottom = 28.0
  104. 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 ]
  105. [node name="AudioPreview" type="AudioStreamPlayer" parent="PanelContainer"]
  106. [node name="DragController" parent="." instance=ExtResource( 6 )]
  107. [connection signal="pressed" from="PanelContainer/VBoxContainer/Header/ButtonAudio" to="." method="_on_ButtonAudio_pressed"]
  108. [connection signal="pressed" from="PanelContainer/VBoxContainer/Header/ButtonClear" to="." method="_on_ButtonClear_pressed"]
  109. [connection signal="pressed" from="PanelContainer/VBoxContainer/Header/ButtonPreviewPlay" to="." method="_on_ButtonPreviewPlay_pressed"]
  110. [connection signal="finished" from="PanelContainer/AudioPreview" to="." method="_on_AudioPreview_finished"]