addremoveinlets.tscn 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. [gd_scene load_steps=2 format=3 uid="uid://cho3fvni7kadi"]
  2. [ext_resource type="Script" uid="uid://ddy27yplob87l" path="res://scenes/Nodes/addremoveinlets.gd" id="1_1pgec"]
  3. [node name="Control" type="Control"]
  4. custom_minimum_size = Vector2(270, 57)
  5. layout_mode = 3
  6. anchors_preset = 15
  7. anchor_right = 1.0
  8. anchor_bottom = 1.0
  9. offset_right = -1010.0
  10. offset_bottom = -663.0
  11. grow_horizontal = 2
  12. grow_vertical = 2
  13. script = ExtResource("1_1pgec")
  14. [node name="VBoxContainer" type="VBoxContainer" parent="."]
  15. layout_mode = 0
  16. offset_right = 40.0
  17. offset_bottom = 40.0
  18. [node name="Label" type="Label" parent="VBoxContainer"]
  19. layout_mode = 2
  20. text = "Add/Remove Inlets"
  21. [node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
  22. custom_minimum_size = Vector2(270, 0)
  23. layout_mode = 2
  24. [node name="AddInletButton" type="Button" parent="VBoxContainer/HBoxContainer"]
  25. layout_mode = 2
  26. size_flags_horizontal = 3
  27. tooltip_text = "Add new inlet to node"
  28. text = "+"
  29. [node name="RemoveInletButton" type="Button" parent="VBoxContainer/HBoxContainer"]
  30. layout_mode = 2
  31. size_flags_horizontal = 3
  32. tooltip_text = "Remove last inlet from node"
  33. text = "-"
  34. [connection signal="button_down" from="VBoxContainer/HBoxContainer/AddInletButton" to="." method="_on_add_inlet_button_button_down"]
  35. [connection signal="button_down" from="VBoxContainer/HBoxContainer/RemoveInletButton" to="." method="_on_remove_inlet_button_button_down"]