outputfile.tscn 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. [gd_scene load_steps=3 format=3 uid="uid://b4guh667l4mex"]
  2. [ext_resource type="Script" uid="uid://cqwwhjwatkghf" path="res://scenes/Nodes/outputfile.gd" id="1_ah4r5"]
  3. [ext_resource type="PackedScene" uid="uid://csapiqka522fh" path="res://scenes/Nodes/audioplayer.tscn" id="2_pq06c"]
  4. [node name="outputfile" type="GraphNode"]
  5. offset_left = 523.0
  6. offset_top = 6.0
  7. offset_right = 959.0
  8. offset_bottom = 555.0
  9. tooltip_text = "Handles everything to do with audio output. "
  10. title = "Output File"
  11. slot/0/left_enabled = true
  12. slot/0/left_type = 0
  13. slot/0/left_color = Color(1, 1, 1, 0.564706)
  14. slot/0/left_icon = null
  15. slot/0/right_enabled = false
  16. slot/0/right_type = 0
  17. slot/0/right_color = Color(1, 1, 1, 1)
  18. slot/0/right_icon = null
  19. slot/0/draw_stylebox = true
  20. slot/1/left_enabled = false
  21. slot/1/left_type = 0
  22. slot/1/left_color = Color(1, 1, 1, 1)
  23. slot/1/left_icon = null
  24. slot/1/right_enabled = false
  25. slot/1/right_type = 0
  26. slot/1/right_color = Color(1, 1, 1, 1)
  27. slot/1/right_icon = null
  28. slot/1/draw_stylebox = true
  29. slot/2/left_enabled = false
  30. slot/2/left_type = 0
  31. slot/2/left_color = Color(1, 1, 1, 1)
  32. slot/2/left_icon = null
  33. slot/2/right_enabled = false
  34. slot/2/right_type = 0
  35. slot/2/right_color = Color(1, 1, 1, 1)
  36. slot/2/right_icon = null
  37. slot/2/draw_stylebox = true
  38. slot/3/left_enabled = false
  39. slot/3/left_type = 0
  40. slot/3/left_color = Color(1, 1, 1, 1)
  41. slot/3/left_icon = null
  42. slot/3/right_enabled = false
  43. slot/3/right_type = 0
  44. slot/3/right_color = Color(1, 1, 1, 1)
  45. slot/3/right_icon = null
  46. slot/3/draw_stylebox = true
  47. slot/4/left_enabled = false
  48. slot/4/left_type = 0
  49. slot/4/left_color = Color(1, 1, 1, 1)
  50. slot/4/left_icon = null
  51. slot/4/right_enabled = false
  52. slot/4/right_type = 0
  53. slot/4/right_color = Color(1, 1, 1, 1)
  54. slot/4/right_icon = null
  55. slot/4/draw_stylebox = true
  56. slot/5/left_enabled = false
  57. slot/5/left_type = 0
  58. slot/5/left_color = Color(1, 1, 1, 1)
  59. slot/5/left_icon = null
  60. slot/5/right_enabled = false
  61. slot/5/right_type = 0
  62. slot/5/right_color = Color(1, 1, 1, 1)
  63. slot/5/right_icon = null
  64. slot/5/draw_stylebox = true
  65. slot/6/left_enabled = false
  66. slot/6/left_type = 0
  67. slot/6/left_color = Color(1, 1, 1, 1)
  68. slot/6/left_icon = null
  69. slot/6/right_enabled = false
  70. slot/6/right_type = 0
  71. slot/6/right_color = Color(1, 1, 1, 1)
  72. slot/6/right_icon = null
  73. slot/6/draw_stylebox = true
  74. slot/7/left_enabled = false
  75. slot/7/left_type = 0
  76. slot/7/left_color = Color(1, 1, 1, 1)
  77. slot/7/left_icon = null
  78. slot/7/right_enabled = false
  79. slot/7/right_type = 0
  80. slot/7/right_color = Color(1, 1, 1, 1)
  81. slot/7/right_icon = null
  82. slot/7/draw_stylebox = true
  83. slot/8/left_enabled = false
  84. slot/8/left_type = 0
  85. slot/8/left_color = Color(1, 1, 1, 1)
  86. slot/8/left_icon = null
  87. slot/8/right_enabled = false
  88. slot/8/right_type = 0
  89. slot/8/right_color = Color(1, 1, 1, 1)
  90. slot/8/right_icon = null
  91. slot/8/draw_stylebox = true
  92. slot/9/left_enabled = false
  93. slot/9/left_type = 0
  94. slot/9/left_color = Color(1, 1, 1, 1)
  95. slot/9/left_icon = null
  96. slot/9/right_enabled = false
  97. slot/9/right_type = 0
  98. slot/9/right_color = Color(1, 1, 1, 1)
  99. slot/9/right_icon = null
  100. slot/9/draw_stylebox = true
  101. slot/10/left_enabled = false
  102. slot/10/left_type = 0
  103. slot/10/left_color = Color(1, 1, 1, 1)
  104. slot/10/left_icon = null
  105. slot/10/right_enabled = false
  106. slot/10/right_type = 0
  107. slot/10/right_color = Color(1, 1, 1, 1)
  108. slot/10/right_icon = null
  109. slot/10/draw_stylebox = true
  110. slot/11/left_enabled = false
  111. slot/11/left_type = 0
  112. slot/11/left_color = Color(1, 1, 1, 1)
  113. slot/11/left_icon = null
  114. slot/11/right_enabled = false
  115. slot/11/right_type = 0
  116. slot/11/right_color = Color(1, 1, 1, 1)
  117. slot/11/right_icon = null
  118. slot/11/draw_stylebox = true
  119. slot/12/left_enabled = false
  120. slot/12/left_type = 0
  121. slot/12/left_color = Color(1, 1, 1, 1)
  122. slot/12/left_icon = null
  123. slot/12/right_enabled = false
  124. slot/12/right_type = 0
  125. slot/12/right_color = Color(1, 1, 1, 1)
  126. slot/12/right_icon = null
  127. slot/12/draw_stylebox = true
  128. slot/13/left_enabled = false
  129. slot/13/left_type = 0
  130. slot/13/left_color = Color(1, 1, 1, 1)
  131. slot/13/left_icon = null
  132. slot/13/right_enabled = false
  133. slot/13/right_type = 0
  134. slot/13/right_color = Color(1, 1, 1, 1)
  135. slot/13/right_icon = null
  136. slot/13/draw_stylebox = true
  137. script = ExtResource("1_ah4r5")
  138. metadata/command = "outputfile"
  139. metadata/utility = true
  140. metadata/input = false
  141. [node name="Control" type="Control" parent="."]
  142. layout_mode = 2
  143. [node name="Label2" type="Label" parent="."]
  144. layout_mode = 2
  145. text = "File Name:"
  146. [node name="MarginContainer5" type="MarginContainer" parent="."]
  147. layout_mode = 2
  148. theme_override_constants/margin_bottom = 2
  149. [node name="FileNameField" type="LineEdit" parent="." groups=["outputnode"]]
  150. layout_mode = 2
  151. tooltip_text = "Your output file name, cannot contain special characters"
  152. metadata/outputfunction = "filename"
  153. [node name="MarginContainer3" type="MarginContainer" parent="."]
  154. layout_mode = 2
  155. theme_override_constants/margin_bottom = 5
  156. [node name="RunProcess" type="Button" parent="." groups=["outputnode"]]
  157. custom_minimum_size = Vector2(0, 43)
  158. layout_mode = 2
  159. tooltip_text = "Runs the CDP commands in the thread."
  160. text = "Run Thread"
  161. metadata/outputfunction = "runprocess"
  162. [node name="DeleteIntermediateFilesToggle" type="CheckButton" parent="." groups=["outputnode"]]
  163. custom_minimum_size = Vector2(0, 43)
  164. layout_mode = 2
  165. tooltip_text = "SoundThread makes a lot of files. When toggled on this deletes everything but the output file."
  166. text = "Delete Intermediate Files"
  167. expand_icon = true
  168. metadata/outputfunction = "deleteintermediate"
  169. [node name="ReuseFolderToggle" type="CheckButton" parent="." groups=["outputnode"]]
  170. custom_minimum_size = Vector2(0, 43)
  171. layout_mode = 2
  172. tooltip_text = "Stops you from being prompted for new folder each time you run a thread."
  173. text = "Reuse Last Output Folder"
  174. expand_icon = true
  175. metadata/outputfunction = "reusefolder"
  176. [node name="OutputFolderMargin" type="MarginContainer" parent="."]
  177. layout_mode = 2
  178. theme_override_constants/margin_left = 7
  179. theme_override_constants/margin_top = 6
  180. theme_override_constants/margin_right = 7
  181. theme_override_constants/margin_bottom = 9
  182. [node name="OutputFolderLabel" type="Label" parent="OutputFolderMargin"]
  183. layout_mode = 2
  184. size_flags_horizontal = 3
  185. clip_text = true
  186. text_overrun_behavior = 3
  187. [node name="OpenOutputFolder" type="Button" parent="." groups=["outputnode"]]
  188. custom_minimum_size = Vector2(0, 43)
  189. layout_mode = 2
  190. tooltip_text = "Opens the folder on your computer where the output file is saved."
  191. text = "Open Folder"
  192. metadata/outputfunction = "openfolder"
  193. [node name="MarginContainer2" type="MarginContainer" parent="."]
  194. layout_mode = 2
  195. theme_override_constants/margin_bottom = 5
  196. [node name="HBoxContainer" type="HBoxContainer" parent="."]
  197. layout_mode = 2
  198. [node name="Label" type="Label" parent="HBoxContainer"]
  199. layout_mode = 2
  200. size_flags_horizontal = 3
  201. text = "Rendered Output File:"
  202. [node name="Autoplay" type="CheckButton" parent="HBoxContainer" groups=["outputnode"]]
  203. layout_mode = 2
  204. text = "Autoplay"
  205. [node name="MarginContainer4" type="MarginContainer" parent="."]
  206. layout_mode = 2
  207. theme_override_constants/margin_bottom = 2
  208. [node name="AudioPlayer" parent="." groups=["outputnode"] instance=ExtResource("2_pq06c")]
  209. layout_mode = 2
  210. size_flags_horizontal = 4
  211. metadata/outputfunction = "audioplayer"
  212. [connection signal="focus_exited" from="FileNameField" to="." method="_on_file_name_field_focus_exited"]
  213. [connection signal="text_submitted" from="FileNameField" to="." method="_on_file_name_field_text_submitted"]
  214. [connection signal="toggled" from="DeleteIntermediateFilesToggle" to="." method="_on_delete_intermediate_files_toggle_toggled"]
  215. [connection signal="toggled" from="ReuseFolderToggle" to="." method="_on_reuse_folder_toggle_toggled"]
  216. [connection signal="toggled" from="HBoxContainer/Autoplay" to="." method="_on_autoplay_toggled"]