control.tscn 10.0 KB

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