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.

CallNode.tscn 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. [gd_scene load_steps=6 format=2]
  2. [ext_resource path="res://addons/dialogic/Images/Script.svg" type="Texture" id=1]
  3. [ext_resource path="res://addons/dialogic/Editor/Pieces/CallNode.gd" type="Script" id=2]
  4. [ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=3]
  5. [ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
  6. [sub_resource type="StyleBoxFlat" id=1]
  7. content_margin_left = 16.0
  8. content_margin_right = 6.0
  9. content_margin_top = 6.0
  10. content_margin_bottom = 6.0
  11. bg_color = Color( 0.14902, 0.333333, 0.509804, 0.4 )
  12. border_width_left = 2
  13. border_width_top = 2
  14. border_width_right = 2
  15. border_width_bottom = 2
  16. border_color = Color( 0.12549, 0.12549, 0.12549, 1 )
  17. corner_radius_top_left = 6
  18. corner_radius_top_right = 6
  19. corner_radius_bottom_right = 6
  20. corner_radius_bottom_left = 6
  21. [node name="CallNode" type="HBoxContainer"]
  22. margin_right = 1004.0
  23. margin_bottom = 100.0
  24. size_flags_horizontal = 3
  25. size_flags_vertical = 9
  26. script = ExtResource( 2 )
  27. __meta__ = {
  28. "_edit_use_anchors_": false
  29. }
  30. [node name="Indent" type="Control" parent="."]
  31. visible = false
  32. margin_bottom = 42.0
  33. [node name="PanelContainer" type="PanelContainer" parent="."]
  34. margin_right = 1004.0
  35. margin_bottom = 100.0
  36. mouse_filter = 1
  37. size_flags_horizontal = 3
  38. size_flags_vertical = 3
  39. custom_styles/panel = SubResource( 1 )
  40. __meta__ = {
  41. "_edit_use_anchors_": false
  42. }
  43. [node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer"]
  44. margin_left = 16.0
  45. margin_top = 6.0
  46. margin_right = 998.0
  47. margin_bottom = 94.0
  48. size_flags_horizontal = 3
  49. [node name="Header" type="HBoxContainer" parent="PanelContainer/VBoxContainer"]
  50. margin_right = 982.0
  51. margin_bottom = 28.0
  52. [node name="TextureRect" type="TextureRect" parent="PanelContainer/VBoxContainer/Header"]
  53. margin_right = 22.0
  54. margin_bottom = 28.0
  55. texture = ExtResource( 1 )
  56. stretch_mode = 6
  57. [node name="Title" type="Label" parent="PanelContainer/VBoxContainer/Header"]
  58. margin_left = 26.0
  59. margin_top = 7.0
  60. margin_right = 87.0
  61. margin_bottom = 21.0
  62. text = "Call Node"
  63. [node name="Preview" type="Label" parent="PanelContainer/VBoxContainer/Header"]
  64. margin_left = 91.0
  65. margin_top = 7.0
  66. margin_right = 91.0
  67. margin_bottom = 21.0
  68. custom_colors/font_color = Color( 1, 1, 1, 0.513726 )
  69. [node name="Spacer" parent="PanelContainer/VBoxContainer/Header" instance=ExtResource( 3 )]
  70. margin_left = 95.0
  71. margin_right = 941.0
  72. margin_bottom = 28.0
  73. [node name="OptionButton" parent="PanelContainer/VBoxContainer/Header" instance=ExtResource( 4 )]
  74. margin_left = 945.0
  75. margin_right = 982.0
  76. margin_bottom = 28.0
  77. items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
  78. [node name="Properties" type="HBoxContainer" parent="PanelContainer/VBoxContainer"]
  79. margin_top = 32.0
  80. margin_right = 982.0
  81. margin_bottom = 56.0
  82. custom_constants/separation = 8
  83. [node name="TargetNodeLabel" type="Label" parent="PanelContainer/VBoxContainer/Properties"]
  84. margin_top = 5.0
  85. margin_right = 81.0
  86. margin_bottom = 19.0
  87. text = "Target Node:"
  88. [node name="TargetNodeEdit" type="LineEdit" parent="PanelContainer/VBoxContainer/Properties"]
  89. margin_left = 89.0
  90. margin_right = 339.0
  91. margin_bottom = 24.0
  92. rect_min_size = Vector2( 250, 0 )
  93. [node name="CallMethodLabel" type="Label" parent="PanelContainer/VBoxContainer/Properties"]
  94. margin_left = 347.0
  95. margin_top = 5.0
  96. margin_right = 427.0
  97. margin_bottom = 19.0
  98. text = "Call Method:"
  99. [node name="CallMethodEdit" type="LineEdit" parent="PanelContainer/VBoxContainer/Properties"]
  100. margin_left = 435.0
  101. margin_right = 635.0
  102. margin_bottom = 24.0
  103. rect_min_size = Vector2( 200, 0 )
  104. [node name="ArgumentsLabel" type="Label" parent="PanelContainer/VBoxContainer/Properties"]
  105. margin_left = 643.0
  106. margin_top = 5.0
  107. margin_right = 717.0
  108. margin_bottom = 19.0
  109. text = "Arguments:"
  110. [node name="ArgumentsSpinBox" type="SpinBox" parent="PanelContainer/VBoxContainer/Properties"]
  111. margin_left = 725.0
  112. margin_right = 799.0
  113. margin_bottom = 24.0
  114. max_value = 99.0
  115. [node name="Arguments" type="VBoxContainer" parent="PanelContainer/VBoxContainer"]
  116. margin_top = 60.0
  117. margin_right = 982.0
  118. margin_bottom = 60.0
  119. custom_constants/separation = 5
  120. [connection signal="text_changed" from="PanelContainer/VBoxContainer/Properties/TargetNodeEdit" to="." method="_on_Target_LineEdit_text_changed"]
  121. [connection signal="text_changed" from="PanelContainer/VBoxContainer/Properties/CallMethodEdit" to="." method="_on_Method_LineEdit_text_changed"]
  122. [connection signal="value_changed" from="PanelContainer/VBoxContainer/Properties/ArgumentsSpinBox" to="." method="_on_ArgumentsSpinBox_value_changed"]