control.tscn 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. [gd_scene load_steps=2 format=3 uid="uid://u5emvyeyodyh"]
  2. [ext_resource type="Script" path="res://voice_list.gd" id="1_0bwjs"]
  3. [node name="Control" type="Control"]
  4. layout_mode = 3
  5. anchors_preset = 8
  6. anchor_left = 0.5
  7. anchor_top = 0.5
  8. anchor_right = 0.5
  9. anchor_bottom = 0.5
  10. offset_left = -576.0
  11. offset_top = -312.0
  12. offset_right = -576.0
  13. offset_bottom = -312.0
  14. grow_horizontal = 2
  15. grow_vertical = 2
  16. size_flags_horizontal = 4
  17. size_flags_vertical = 4
  18. script = ExtResource("1_0bwjs")
  19. [node name="LineEditFilterLang" type="LineEdit" parent="."]
  20. layout_mode = 0
  21. offset_left = 416.0
  22. offset_top = 304.0
  23. offset_right = 704.0
  24. offset_bottom = 337.0
  25. theme_override_font_sizes/font_size = 16
  26. placeholder_text = "Language"
  27. [node name="LineEditFilterName" type="LineEdit" parent="."]
  28. layout_mode = 0
  29. offset_left = 96.0
  30. offset_top = 304.0
  31. offset_right = 408.0
  32. offset_bottom = 337.0
  33. theme_override_font_sizes/font_size = 16
  34. placeholder_text = "Name"
  35. [node name="Label" type="Label" parent="LineEditFilterName"]
  36. layout_mode = 0
  37. offset_left = -76.0
  38. offset_top = 3.0
  39. offset_right = -20.0
  40. offset_bottom = 35.0
  41. text = "Filter:"
  42. [node name="Tree" type="Tree" parent="."]
  43. layout_mode = 0
  44. offset_left = 16.0
  45. offset_top = 56.0
  46. offset_right = 704.0
  47. offset_bottom = 296.0
  48. columns = 2
  49. [node name="Utterance" type="TextEdit" parent="."]
  50. layout_mode = 0
  51. offset_left = 264.0
  52. offset_top = 472.0
  53. offset_right = 704.0
  54. offset_bottom = 584.0
  55. theme_override_font_sizes/font_size = 16
  56. text = "Beware the Jabberwock, my son! The jaws that bite, the claws that catch!"
  57. wrap_mode = 1
  58. draw_spaces = true
  59. [node name="ButtonSpeak" type="Button" parent="."]
  60. layout_mode = 0
  61. offset_left = 16.0
  62. offset_top = 472.0
  63. offset_right = 128.0
  64. offset_bottom = 504.0
  65. text = "Speak"
  66. [node name="ButtonIntSpeak" type="Button" parent="."]
  67. layout_mode = 0
  68. offset_left = 144.0
  69. offset_top = 472.0
  70. offset_right = 256.0
  71. offset_bottom = 504.0
  72. text = "Interrupt"
  73. [node name="ButtonStop" type="Button" parent="."]
  74. layout_mode = 0
  75. offset_left = 16.0
  76. offset_top = 512.0
  77. offset_right = 128.0
  78. offset_bottom = 544.0
  79. text = "Stop"
  80. [node name="ButtonPause" type="Button" parent="."]
  81. layout_mode = 0
  82. offset_left = 144.0
  83. offset_top = 512.0
  84. offset_right = 256.0
  85. offset_bottom = 544.0
  86. toggle_mode = true
  87. text = "Pause"
  88. [node name="HSliderRate" type="HSlider" parent="."]
  89. layout_mode = 0
  90. offset_left = 96.0
  91. offset_top = 352.0
  92. offset_right = 440.0
  93. offset_bottom = 368.0
  94. min_value = 0.1
  95. max_value = 10.0
  96. step = 0.05
  97. value = 1.0
  98. exp_edit = true
  99. [node name="Label" type="Label" parent="HSliderRate"]
  100. layout_mode = 0
  101. offset_left = -76.0
  102. offset_top = -5.0
  103. offset_right = -20.0
  104. offset_bottom = 27.0
  105. text = "Rate:"
  106. [node name="Value" type="Label" parent="HSliderRate"]
  107. layout_mode = 0
  108. offset_left = 352.0
  109. offset_top = -8.0
  110. offset_right = 416.0
  111. offset_bottom = 24.0
  112. text = "1.00x"
  113. [node name="HSliderPitch" type="HSlider" parent="."]
  114. layout_mode = 0
  115. offset_left = 96.0
  116. offset_top = 392.0
  117. offset_right = 440.0
  118. offset_bottom = 408.0
  119. max_value = 2.0
  120. step = 0.05
  121. value = 1.0
  122. [node name="Label" type="Label" parent="HSliderPitch"]
  123. layout_mode = 0
  124. offset_left = -76.0
  125. offset_top = -5.0
  126. offset_right = -28.0
  127. offset_bottom = 27.0
  128. text = "Pitch:"
  129. [node name="Value" type="Label" parent="HSliderPitch"]
  130. layout_mode = 0
  131. offset_left = 352.0
  132. offset_top = -8.0
  133. offset_right = 416.0
  134. offset_bottom = 24.0
  135. text = "1.00x"
  136. [node name="HSliderVolume" type="HSlider" parent="."]
  137. layout_mode = 0
  138. offset_left = 96.0
  139. offset_top = 432.0
  140. offset_right = 440.0
  141. offset_bottom = 448.0
  142. min_value = 1.0
  143. value = 50.0
  144. [node name="Label" type="Label" parent="HSliderVolume"]
  145. layout_mode = 0
  146. offset_left = -76.0
  147. offset_top = -5.0
  148. offset_right = -12.0
  149. offset_bottom = 27.0
  150. text = "Volume:"
  151. [node name="Value" type="Label" parent="HSliderVolume"]
  152. layout_mode = 0
  153. offset_left = 352.0
  154. offset_top = -8.0
  155. offset_right = 416.0
  156. offset_bottom = 24.0
  157. text = "50%"
  158. [node name="ColorRect" type="ColorRect" parent="."]
  159. layout_mode = 0
  160. offset_left = 16.0
  161. offset_top = 16.0
  162. offset_right = 144.0
  163. offset_bottom = 40.0
  164. [node name="Label" type="Label" parent="ColorRect"]
  165. layout_mode = 0
  166. offset_right = 128.0
  167. offset_bottom = 32.0
  168. theme_override_font_sizes/font_size = 16
  169. text = "Speaking..."
  170. [node name="Log" type="TextEdit" parent="."]
  171. layout_mode = 0
  172. offset_left = 712.0
  173. offset_top = 56.0
  174. offset_right = 1138.0
  175. offset_bottom = 584.0
  176. editable = false
  177. context_menu_enabled = false
  178. shortcut_keys_enabled = false
  179. virtual_keyboard_enabled = false
  180. middle_mouse_paste_enabled = false
  181. [node name="ButtonClearLog" type="Button" parent="Log"]
  182. layout_mode = 0
  183. offset_left = 346.0
  184. offset_top = 8.0
  185. offset_right = 418.0
  186. offset_bottom = 39.0
  187. theme_override_font_sizes/font_size = 16
  188. text = "Clear"
  189. [node name="RichTextLabel" type="RichTextLabel" parent="."]
  190. layout_mode = 0
  191. offset_left = 152.0
  192. offset_top = 16.0
  193. offset_right = 1008.0
  194. offset_bottom = 40.0
  195. theme_override_font_sizes/normal_font_size = 16
  196. bbcode_enabled = true
  197. scroll_active = false
  198. [node name="ButtonDemo" type="Button" parent="."]
  199. layout_mode = 0
  200. offset_left = 16.0
  201. offset_top = 552.0
  202. offset_right = 256.0
  203. offset_bottom = 581.0
  204. theme_override_font_sizes/font_size = 16
  205. text = "Demo"
  206. [connection signal="text_changed" from="LineEditFilterLang" to="." method="_on_LineEditFilterName_text_changed"]
  207. [connection signal="text_changed" from="LineEditFilterName" to="." method="_on_LineEditFilterName_text_changed"]
  208. [connection signal="item_activated" from="Tree" to="." method="_on_ItemList_item_activated"]
  209. [connection signal="pressed" from="ButtonSpeak" to="." method="_on_ButtonSpeak_pressed"]
  210. [connection signal="pressed" from="ButtonIntSpeak" to="." method="_on_ButtonIntSpeak_pressed"]
  211. [connection signal="pressed" from="ButtonStop" to="." method="_on_ButtonStop_pressed"]
  212. [connection signal="pressed" from="ButtonPause" to="." method="_on_ButtonPause_pressed"]
  213. [connection signal="value_changed" from="HSliderRate" to="." method="_on_HSliderRate_value_changed"]
  214. [connection signal="value_changed" from="HSliderPitch" to="." method="_on_HSliderPitch_value_changed"]
  215. [connection signal="value_changed" from="HSliderVolume" to="." method="_on_HSliderVolume_value_changed"]
  216. [connection signal="pressed" from="Log/ButtonClearLog" to="." method="_on_ButtonClearLog_pressed"]
  217. [connection signal="pressed" from="ButtonDemo" to="." method="_on_Button_pressed"]