valueslider.tscn 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. [gd_scene load_steps=2 format=3 uid="uid://dya5kxx132fgp"]
  2. [ext_resource type="Script" uid="uid://bco7hof3wqck4" path="res://scenes/Nodes/valueslider.gd" id="1_4kxw6"]
  3. [node name="VBoxContainer" type="VBoxContainer"]
  4. custom_minimum_size = Vector2(270, 0)
  5. offset_right = 40.0
  6. offset_bottom = 40.0
  7. script = ExtResource("1_4kxw6")
  8. [node name="Label" type="Label" parent="."]
  9. layout_mode = 2
  10. text = "Value Name"
  11. [node name="HSplitContainer" type="HSplitContainer" parent="."]
  12. layout_mode = 2
  13. split_offset = 230
  14. dragging_enabled = false
  15. [node name="HSlider" type="HSlider" parent="HSplitContainer"]
  16. custom_minimum_size = Vector2(0, 23)
  17. layout_mode = 2
  18. size_flags_vertical = 1
  19. value = 10.0
  20. [node name="LineEdit" type="LineEdit" parent="HSplitContainer"]
  21. layout_mode = 2
  22. text = "0.0"
  23. alignment = 2
  24. max_length = 5
  25. flat = true
  26. [node name="MarginContainer" type="MarginContainer" parent="."]
  27. layout_mode = 2
  28. theme_override_constants/margin_bottom = 3
  29. [connection signal="value_changed" from="HSplitContainer/HSlider" to="." method="_on_h_slider_value_changed"]
  30. [connection signal="focus_exited" from="HSplitContainer/LineEdit" to="." method="_on_line_edit_focus_exited"]
  31. [connection signal="text_submitted" from="HSplitContainer/LineEdit" to="." method="_on_line_edit_text_submitted"]