No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Line_Node.tscn 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. [gd_scene load_steps=3 format=2]
  2. [ext_resource path="res://addons/EXP-System-Dialog/Dialog Editor/Nodes/Line/line_node.gd" type="Script" id=1]
  3. [ext_resource path="res://addons/EXP-System-Dialog/Dialog Editor/Nodes/Line/icon_distraction_free.svg" type="Texture" id=2]
  4. [node name="Line" type="GraphNode"]
  5. margin_right = 324.0
  6. margin_bottom = 137.0
  7. rect_min_size = Vector2( 324, 137 )
  8. title = "Line"
  9. offset = Vector2( 40, 40 )
  10. show_close = true
  11. resizable = true
  12. slot/0/left_enabled = true
  13. slot/0/left_type = 0
  14. slot/0/left_color = Color( 1, 1, 1, 1 )
  15. slot/0/right_enabled = true
  16. slot/0/right_type = 0
  17. slot/0/right_color = Color( 1, 1, 1, 1 )
  18. slot/1/left_enabled = false
  19. slot/1/left_type = 0
  20. slot/1/left_color = Color( 1, 1, 1, 1 )
  21. slot/1/right_enabled = false
  22. slot/1/right_type = 0
  23. slot/1/right_color = Color( 1, 1, 1, 1 )
  24. script = ExtResource( 1 )
  25. __meta__ = {
  26. "_edit_use_anchors_": false
  27. }
  28. [node name="VBoxContainer" type="VBoxContainer" parent="."]
  29. margin_left = 16.0
  30. margin_top = 39.0
  31. margin_right = 380.0
  32. margin_bottom = 131.0
  33. size_flags_horizontal = 3
  34. size_flags_vertical = 3
  35. __meta__ = {
  36. "_edit_use_anchors_": false
  37. }
  38. [node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer"]
  39. margin_right = 364.0
  40. margin_bottom = 64.0
  41. [node name="TextEdit" type="TextEdit" parent="VBoxContainer/HBoxContainer2"]
  42. margin_right = 328.0
  43. margin_bottom = 64.0
  44. rect_min_size = Vector2( 256, 64 )
  45. size_flags_horizontal = 3
  46. size_flags_vertical = 3
  47. smooth_scrolling = true
  48. [node name="Editor_BTN" type="Button" parent="VBoxContainer/HBoxContainer2"]
  49. margin_left = 332.0
  50. margin_right = 364.0
  51. margin_bottom = 64.0
  52. rect_min_size = Vector2( 32, 0 )
  53. hint_tooltip = "Expand this node's text editor."
  54. icon = ExtResource( 2 )
  55. expand_icon = true
  56. [node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
  57. margin_top = 68.0
  58. margin_right = 364.0
  59. margin_bottom = 92.0
  60. alignment = 1
  61. [node name="Save_BTN" type="Button" parent="VBoxContainer/HBoxContainer"]
  62. margin_right = 125.0
  63. margin_bottom = 24.0
  64. hint_tooltip = "Save the current text as a template that can quickly loaded into new nodes."
  65. text = "Save Template As"
  66. [node name="Load_BTN" type="Button" parent="VBoxContainer/HBoxContainer"]
  67. margin_left = 129.0
  68. margin_right = 235.0
  69. margin_bottom = 24.0
  70. hint_tooltip = "Load a template from file."
  71. text = "Load Template"
  72. [node name="VSeparator" type="VSeparator" parent="VBoxContainer/HBoxContainer"]
  73. margin_left = 239.0
  74. margin_right = 243.0
  75. margin_bottom = 24.0
  76. [node name="Link_LBL" type="Label" parent="VBoxContainer/HBoxContainer"]
  77. margin_left = 247.0
  78. margin_top = 5.0
  79. margin_right = 286.0
  80. margin_bottom = 19.0
  81. text = "Slots: "
  82. [node name="Link_SpinBox" type="SpinBox" parent="VBoxContainer/HBoxContainer"]
  83. margin_left = 290.0
  84. margin_right = 364.0
  85. margin_bottom = 24.0
  86. hint_tooltip = "Change the number of output slots on this node."
  87. min_value = 1.0
  88. value = 1.0
  89. rounded = true
  90. allow_greater = true
  91. [connection signal="close_request" from="." to="." method="_on_Line_close_request"]
  92. [connection signal="offset_changed" from="." to="." method="_on_Line_offset_changed"]
  93. [connection signal="resize_request" from="." to="." method="_on_Line_resize_request"]
  94. [connection signal="text_changed" from="VBoxContainer/HBoxContainer2/TextEdit" to="." method="_on_TextEdit_text_changed"]
  95. [connection signal="pressed" from="VBoxContainer/HBoxContainer2/Editor_BTN" to="." method="_on_Editor_BTN_pressed"]
  96. [connection signal="pressed" from="VBoxContainer/HBoxContainer/Save_BTN" to="." method="_on_Save_BTN_pressed"]
  97. [connection signal="pressed" from="VBoxContainer/HBoxContainer/Load_BTN" to="." method="_on_Load_BTN_pressed"]
  98. [connection signal="value_changed" from="VBoxContainer/HBoxContainer/Link_SpinBox" to="." method="_on_Link_SpinBox_value_changed"]