control.tscn 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  1. [gd_scene load_steps=5 format=3 uid="uid://bcs87y7ptx3ke"]
  2. [ext_resource type="Script" uid="uid://bdlfvuljckmu1" path="res://scenes/main/control.gd" id="1_2f0aq"]
  3. [ext_resource type="Script" uid="uid://l2yejnjysupr" path="res://scenes/main/graph_edit.gd" id="2_3ioqo"]
  4. [ext_resource type="PackedScene" uid="uid://b0wdj8v6o0wq0" path="res://scenes/menu/menu.tscn" id="3_dtf4o"]
  5. [ext_resource type="Texture2D" uid="uid://cdwux1smquvpi" path="res://theme/images/logo.png" id="4_3ioqo"]
  6. [node name="Control" type="Control"]
  7. layout_mode = 3
  8. anchors_preset = 15
  9. anchor_right = 1.0
  10. anchor_bottom = 1.0
  11. grow_horizontal = 2
  12. grow_vertical = 2
  13. script = ExtResource("1_2f0aq")
  14. [node name="GraphEdit" type="GraphEdit" parent="."]
  15. layout_mode = 1
  16. anchors_preset = -1
  17. anchor_right = 1.0
  18. anchor_bottom = 1.0
  19. offset_top = 32.0
  20. right_disconnects = true
  21. script = ExtResource("2_3ioqo")
  22. [node name="FileDialog" type="FileDialog" parent="."]
  23. title = "Open a Directory"
  24. ok_button_text = "Select Current Folder"
  25. file_mode = 2
  26. access = 2
  27. use_native_dialog = true
  28. [node name="mainmenu" parent="." instance=ExtResource("3_dtf4o")]
  29. visible = false
  30. layout_mode = 1
  31. offset_top = 35.0
  32. [node name="NoLocationPopup" type="Window" parent="."]
  33. auto_translate_mode = 1
  34. title = "Wrong File Type"
  35. initial_position = 2
  36. size = Vector2i(450, 500)
  37. unresizable = true
  38. borderless = true
  39. always_on_top = true
  40. popup_window = true
  41. [node name="TextureRect" type="TextureRect" parent="NoLocationPopup"]
  42. offset_left = -6.0
  43. offset_top = 16.0
  44. offset_right = 378.0
  45. offset_bottom = 64.0
  46. texture = ExtResource("4_3ioqo")
  47. expand_mode = 2
  48. stretch_mode = 4
  49. [node name="RichTextLabel" type="RichTextLabel" parent="NoLocationPopup"]
  50. offset_left = 16.0
  51. offset_top = 73.0
  52. offset_right = 435.0
  53. offset_bottom = 457.0
  54. bbcode_enabled = true
  55. text = "Welcome to SoundThread!
  56. SoundThread is an interface for the Composers Desktop Project (CDP) audio processing tools. As such it requires you to have CDP installed to work correctly. If you don't already have CDP installed you can [url=\"https://www.unstablesound.net/cdp.html\"]download it here.[/url]
  57. When you close this window you will be prompted for the location of your _cdprogs folder. The default location for this folder is:
  58. Windows: C:/cdpr8/_cdp/_cdprogs
  59. Mac: ~/cdpr8/_cdp/_cdprogs
  60. SoundThread will remember this but you can always change it later in Settings.
  61. If this is your first time using SoundThread you can find some getting started tutorials in the Help tab in the top menu."
  62. scroll_active = false
  63. [node name="OkButton" type="Button" parent="NoLocationPopup"]
  64. offset_left = -7.0
  65. offset_top = 469.0
  66. offset_right = 457.0
  67. offset_bottom = 500.0
  68. text = "Click to locate _cdprogs"
  69. [node name="NoInputPopup" type="Window" parent="."]
  70. auto_translate_mode = 1
  71. title = "No Input Selected"
  72. initial_position = 2
  73. size = Vector2i(380, 140)
  74. visible = false
  75. exclusive = true
  76. unresizable = true
  77. borderless = true
  78. always_on_top = true
  79. popup_window = true
  80. [node name="Label" type="Label" parent="NoInputPopup"]
  81. offset_left = 14.0
  82. offset_top = 7.0
  83. offset_right = 363.0
  84. offset_bottom = 100.0
  85. text = "No input file selected
  86. Please load a sound file into Input File node
  87. Supported file type: .wav, mono or stereo"
  88. horizontal_alignment = 1
  89. vertical_alignment = 1
  90. autowrap_mode = 2
  91. [node name="OkButton2" type="Button" parent="NoInputPopup"]
  92. offset_left = -10.0
  93. offset_top = 110.0
  94. offset_right = 390.0
  95. offset_bottom = 141.0
  96. text = "Ok"
  97. [node name="MultipleConnectionsPopup" type="Window" parent="."]
  98. auto_translate_mode = 1
  99. title = "No Input Selected"
  100. initial_position = 2
  101. size = Vector2i(380, 160)
  102. visible = false
  103. exclusive = true
  104. unresizable = true
  105. borderless = true
  106. always_on_top = true
  107. popup_window = true
  108. [node name="Label" type="Label" parent="MultipleConnectionsPopup"]
  109. offset_left = 14.0
  110. offset_top = 10.0
  111. offset_right = 363.0
  112. offset_bottom = 117.0
  113. text = "PVOC Nodes can only have one input.
  114. To mix sounds created in the frequency domain convert them to the time domain using PVOC: Resynthesise first."
  115. horizontal_alignment = 1
  116. vertical_alignment = 1
  117. autowrap_mode = 2
  118. [node name="OkButton3" type="Button" parent="MultipleConnectionsPopup"]
  119. offset_left = -10.0
  120. offset_top = 128.0
  121. offset_right = 389.0
  122. offset_bottom = 159.0
  123. text = "Ok"
  124. [node name="CdpLocationDialog" type="FileDialog" parent="."]
  125. title = "Open a Directory"
  126. ok_button_text = "Select Current Folder"
  127. file_mode = 2
  128. access = 2
  129. use_native_dialog = true
  130. [node name="Console" type="Window" parent="."]
  131. title = "Generating Output"
  132. initial_position = 5
  133. size = Vector2i(600, 400)
  134. visible = false
  135. unresizable = true
  136. always_on_top = true
  137. [node name="Panel" type="Panel" parent="Console"]
  138. offset_left = 10.0
  139. offset_top = 8.0
  140. offset_right = 590.0
  141. offset_bottom = 352.0
  142. [node name="ConsoleOutput" type="RichTextLabel" parent="Console"]
  143. offset_left = 10.0
  144. offset_top = 12.0
  145. offset_right = 590.0
  146. offset_bottom = 351.0
  147. bbcode_enabled = true
  148. [node name="ConsoleOpenFolder" type="Button" parent="Console"]
  149. offset_left = -4.0
  150. offset_top = 360.0
  151. offset_right = 604.0
  152. offset_bottom = 401.0
  153. text = "Open Output Folder"
  154. [node name="ColorRect" type="ColorRect" parent="."]
  155. layout_mode = 1
  156. anchors_preset = 10
  157. anchor_right = 1.0
  158. offset_bottom = 35.0
  159. grow_horizontal = 2
  160. color = Color(0.0646965, 0.0646965, 0.0646965, 1)
  161. [node name="MenuBar" type="MenuBar" parent="."]
  162. layout_mode = 1
  163. anchors_preset = 10
  164. anchor_right = 1.0
  165. offset_left = 8.0
  166. offset_top = 4.0
  167. offset_right = -8.0
  168. offset_bottom = 35.0
  169. grow_horizontal = 2
  170. flat = true
  171. [node name="FileButton" type="PopupMenu" parent="MenuBar"]
  172. title = "File"
  173. item_count = 4
  174. item_0/text = "New Thread"
  175. item_0/id = 2
  176. item_1/text = "Save Thread"
  177. item_1/id = 3
  178. item_2/text = "Save Thread As"
  179. item_2/id = 0
  180. item_3/text = "Load Thread"
  181. item_3/id = 1
  182. [node name="SettingsButton" type="PopupMenu" parent="MenuBar"]
  183. title = "Settings"
  184. item_count = 4
  185. item_0/text = "Change CDP Folder Location"
  186. item_0/id = 0
  187. item_1/text = "Disable PVOC Multi Input Warning"
  188. item_1/checkable = 1
  189. item_1/id = 1
  190. item_2/text = "Auto Close Console"
  191. item_2/checkable = 1
  192. item_2/id = 2
  193. item_3/text = "Open the Console"
  194. item_3/id = 3
  195. [node name="HelpButton" type="PopupMenu" parent="MenuBar"]
  196. auto_translate_mode = 1
  197. title = "Help"
  198. item_count = 8
  199. item_0/text = "Tutorials"
  200. item_0/id = 0
  201. item_0/separator = true
  202. item_1/text = "Getting Started"
  203. item_1/id = 1
  204. item_2/text = "Navigating SoundThread"
  205. item_2/id = 2
  206. item_3/text = "Building a Thread"
  207. item_3/id = 3
  208. item_4/text = "Frequency Domain"
  209. item_4/id = 4
  210. item_5/text = "SoundThread Quirks"
  211. item_5/id = 5
  212. item_6/text = "Other Help"
  213. item_6/id = 6
  214. item_6/separator = true
  215. item_7/text = "CDP Documentation"
  216. item_7/id = 7
  217. [node name="SaveDialog" type="FileDialog" parent="."]
  218. use_native_dialog = true
  219. [node name="LoadDialog" type="FileDialog" parent="."]
  220. auto_translate_mode = 1
  221. use_native_dialog = true
  222. [node name="SaveChangesPopup" type="Window" parent="."]
  223. auto_translate_mode = 1
  224. title = "No Input Selected"
  225. initial_position = 2
  226. size = Vector2i(350, 100)
  227. visible = false
  228. exclusive = true
  229. unresizable = true
  230. borderless = true
  231. always_on_top = true
  232. popup_window = true
  233. [node name="Label" type="Label" parent="SaveChangesPopup"]
  234. offset_left = -1.0
  235. offset_top = 21.0
  236. offset_right = 348.0
  237. offset_bottom = 52.0
  238. text = "Save changes to this thread?"
  239. horizontal_alignment = 1
  240. vertical_alignment = 1
  241. autowrap_mode = 2
  242. [node name="SaveChanges" type="Button" parent="SaveChangesPopup"]
  243. offset_left = -1.0
  244. offset_top = 70.0
  245. offset_right = 175.0
  246. offset_bottom = 101.0
  247. text = "Save"
  248. [node name="DontSaveChanges" type="Button" parent="SaveChangesPopup"]
  249. offset_left = 175.0
  250. offset_top = 70.0
  251. offset_right = 351.0
  252. offset_bottom = 101.0
  253. text = "Don't Save"
  254. [connection signal="connection_request" from="GraphEdit" to="." method="_on_graph_edit_connection_request"]
  255. [connection signal="delete_nodes_request" from="GraphEdit" to="." method="_on_graph_edit_delete_nodes_request"]
  256. [connection signal="disconnection_request" from="GraphEdit" to="." method="_on_graph_edit_disconnection_request"]
  257. [connection signal="node_deselected" from="GraphEdit" to="." method="_on_graph_edit_node_deselected"]
  258. [connection signal="node_selected" from="GraphEdit" to="." method="_on_graph_edit_node_selected"]
  259. [connection signal="dir_selected" from="FileDialog" to="." method="_on_file_dialog_dir_selected"]
  260. [connection signal="meta_clicked" from="NoLocationPopup/RichTextLabel" to="." method="_on_rich_text_label_meta_clicked"]
  261. [connection signal="button_down" from="NoLocationPopup/OkButton" to="." method="_on_ok_button_button_down"]
  262. [connection signal="button_down" from="NoInputPopup/OkButton2" to="." method="_on_ok_button_2_button_down"]
  263. [connection signal="button_down" from="MultipleConnectionsPopup/OkButton3" to="." method="_on_ok_button_3_button_down"]
  264. [connection signal="canceled" from="CdpLocationDialog" to="." method="_on_cdp_location_dialog_canceled"]
  265. [connection signal="dir_selected" from="CdpLocationDialog" to="." method="_on_cdp_location_dialog_dir_selected"]
  266. [connection signal="close_requested" from="Console" to="." method="_on_console_close_requested"]
  267. [connection signal="button_down" from="Console/ConsoleOpenFolder" to="." method="_on_console_open_folder_button_down"]
  268. [connection signal="index_pressed" from="MenuBar/FileButton" to="." method="_on_file_button_index_pressed"]
  269. [connection signal="index_pressed" from="MenuBar/SettingsButton" to="." method="_on_settings_button_index_pressed"]
  270. [connection signal="index_pressed" from="MenuBar/HelpButton" to="." method="_on_help_button_index_pressed"]
  271. [connection signal="file_selected" from="SaveDialog" to="." method="_on_save_dialog_file_selected"]
  272. [connection signal="file_selected" from="LoadDialog" to="." method="_on_load_dialog_file_selected"]
  273. [connection signal="button_down" from="SaveChangesPopup/SaveChanges" to="." method="_on_save_changes_button_down"]
  274. [connection signal="button_down" from="SaveChangesPopup/DontSaveChanges" to="." method="_on_dont_save_changes_button_down"]