valueslider.tscn 3.7 KB

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