valueslider.tscn 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. [gd_scene load_steps=3 format=3 uid="uid://dya5kxx132fgp"]
  2. [ext_resource type="Script" uid="uid://bco7hof3wqck4" path="res://scenes/Nodes/valueslider.gd" id="1_4kxw6"]
  3. [ext_resource type="Script" uid="uid://duykdpsfmfw38" path="res://scenes/Nodes/breakfilemaker.gd" id="2_6ltu5"]
  4. [node name="VBoxContainer" type="VBoxContainer"]
  5. custom_minimum_size = Vector2(270, 0)
  6. offset_right = 270.0
  7. offset_bottom = 57.0
  8. script = ExtResource("1_4kxw6")
  9. [node name="Label" type="Label" parent="."]
  10. layout_mode = 2
  11. text = "Value Name"
  12. [node name="HSplitContainer" type="HSplitContainer" parent="."]
  13. layout_mode = 2
  14. split_offset = 230
  15. dragging_enabled = false
  16. [node name="HSlider" type="HSlider" parent="HSplitContainer"]
  17. custom_minimum_size = Vector2(0, 23)
  18. layout_mode = 2
  19. size_flags_vertical = 1
  20. value = 10.0
  21. [node name="PopupMenu" type="PopupMenu" parent="HSplitContainer/HSlider"]
  22. size = Vector2i(200, 100)
  23. item_count = 1
  24. item_0/text = "Add Automation Settings"
  25. item_0/id = 0
  26. [node name="LineEdit" type="LineEdit" parent="HSplitContainer"]
  27. layout_mode = 2
  28. text = "0.0"
  29. alignment = 2
  30. max_length = 5
  31. flat = true
  32. [node name="MarginContainer" type="MarginContainer" parent="."]
  33. layout_mode = 2
  34. theme_override_constants/margin_bottom = 3
  35. [node name="BreakFileMaker" type="Window" parent="."]
  36. title = "Add Automation"
  37. position = Vector2i(340, 210)
  38. size = Vector2i(700, 300)
  39. visible = false
  40. exclusive = true
  41. unresizable = true
  42. [node name="Label" type="Label" parent="BreakFileMaker"]
  43. offset_left = 319.0
  44. offset_top = 255.0
  45. offset_right = 693.0
  46. offset_bottom = 300.0
  47. text = "Double click to add/remove automation"
  48. horizontal_alignment = 2
  49. vertical_alignment = 1
  50. [node name="ColorRect" type="ColorRect" parent="BreakFileMaker"]
  51. offset_left = -20.0
  52. offset_top = 255.0
  53. offset_right = 716.0
  54. offset_bottom = 300.0
  55. mouse_filter = 2
  56. color = Color(0.101961, 0.101961, 0.101961, 0.329412)
  57. [node name="AutomationEditor" type="Control" parent="BreakFileMaker"]
  58. layout_mode = 3
  59. anchors_preset = 0
  60. script = ExtResource("2_6ltu5")
  61. [node name="SaveAutomationButton" type="Button" parent="BreakFileMaker"]
  62. offset_left = 7.0
  63. offset_top = 262.0
  64. offset_right = 152.0
  65. offset_bottom = 295.0
  66. text = "Save Automation"
  67. [node name="CancelButton" type="Button" parent="BreakFileMaker"]
  68. offset_left = 159.0
  69. offset_top = 262.0
  70. offset_right = 304.0
  71. offset_bottom = 295.0
  72. text = "Cancel"
  73. [connection signal="gui_input" from="HSplitContainer/HSlider" to="." method="_on_h_slider_gui_input"]
  74. [connection signal="value_changed" from="HSplitContainer/HSlider" to="." method="_on_h_slider_value_changed"]
  75. [connection signal="index_pressed" from="HSplitContainer/HSlider/PopupMenu" to="." method="_on_popup_menu_index_pressed"]
  76. [connection signal="focus_exited" from="HSplitContainer/LineEdit" to="." method="_on_line_edit_focus_exited"]
  77. [connection signal="text_submitted" from="HSplitContainer/LineEdit" to="." method="_on_line_edit_text_submitted"]
  78. [connection signal="close_requested" from="BreakFileMaker" to="." method="_on_break_file_maker_close_requested"]
  79. [connection signal="button_down" from="BreakFileMaker/SaveAutomationButton" to="." method="_on_save_automation_button_down"]
  80. [connection signal="button_down" from="BreakFileMaker/SaveAutomationButton" to="BreakFileMaker/AutomationEditor" method="_on_save_automation_button_down"]
  81. [connection signal="button_down" from="BreakFileMaker/CancelButton" to="." method="_on_save_automation_2_button_down"]