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.

Dialog_Record.tscn 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. [gd_scene load_steps=4 format=2]
  2. [ext_resource path="res://addons/EXP-System-Dialog/Story Editor/Dialog Record/dialog_record.gd" type="Script" id=1]
  3. [sub_resource type="StyleBoxFlat" id=1]
  4. bg_color = Color( 0.6, 0.6, 0.6, 0 )
  5. border_color = Color( 0.8, 0.8, 0.8, 0 )
  6. shadow_color = Color( 0, 0, 0, 0 )
  7. [sub_resource type="StyleBoxFlat" id=2]
  8. bg_color = Color( 0.6, 0.6, 0.6, 0 )
  9. border_color = Color( 0.8, 0.8, 0.8, 0 )
  10. shadow_color = Color( 0, 0, 0, 0 )
  11. [node name="Dialog_Record" type="Control"]
  12. anchor_right = 1.0
  13. rect_min_size = Vector2( 0, 28 )
  14. script = ExtResource( 1 )
  15. __meta__ = {
  16. "_edit_use_anchors_": false
  17. }
  18. [node name="ColorRect" type="ColorRect" parent="."]
  19. anchor_right = 1.0
  20. anchor_bottom = 1.0
  21. rect_min_size = Vector2( 0, 24 )
  22. size_flags_horizontal = 3
  23. color = Color( 1, 1, 1, 0.12549 )
  24. __meta__ = {
  25. "_edit_use_anchors_": false
  26. }
  27. [node name="HBoxContainer" type="HBoxContainer" parent="ColorRect"]
  28. anchor_right = 1.0
  29. anchor_bottom = 1.0
  30. __meta__ = {
  31. "_edit_use_anchors_": false
  32. }
  33. [node name="CheckBox" type="CheckBox" parent="ColorRect/HBoxContainer"]
  34. margin_right = 24.0
  35. margin_bottom = 28.0
  36. [node name="DID_LBL" type="Label" parent="ColorRect/HBoxContainer"]
  37. margin_left = 28.0
  38. margin_top = 7.0
  39. margin_right = 85.0
  40. margin_bottom = 21.0
  41. text = "DID: 101"
  42. [node name="VSeparator" type="VSeparator" parent="ColorRect/HBoxContainer"]
  43. margin_left = 89.0
  44. margin_right = 93.0
  45. margin_bottom = 28.0
  46. [node name="Edit_BTN" type="Button" parent="ColorRect/HBoxContainer"]
  47. margin_left = 97.0
  48. margin_right = 138.0
  49. margin_bottom = 28.0
  50. hint_tooltip = "Edit this dialog record in the Dialog Editor."
  51. text = "EDIT"
  52. flat = true
  53. [node name="VSeparator4" type="VSeparator" parent="ColorRect/HBoxContainer"]
  54. margin_left = 142.0
  55. margin_right = 146.0
  56. margin_bottom = 28.0
  57. [node name="Name_BTN" type="Button" parent="ColorRect/HBoxContainer"]
  58. margin_left = 150.0
  59. margin_right = 200.0
  60. margin_bottom = 28.0
  61. hint_tooltip = "Edit this dialog record in the Dialog Editor."
  62. text = "NAME"
  63. flat = true
  64. [node name="VSeparator2" type="VSeparator" parent="ColorRect/HBoxContainer"]
  65. margin_left = 204.0
  66. margin_right = 208.0
  67. margin_bottom = 28.0
  68. [node name="Group_BTN" type="OptionButton" parent="ColorRect/HBoxContainer"]
  69. margin_left = 212.0
  70. margin_right = 274.0
  71. margin_bottom = 28.0
  72. hint_tooltip = "View groups applied to this dialog record."
  73. text = "TAGS"
  74. flat = true
  75. [node name="VSeparator3" type="VSeparator" parent="ColorRect/HBoxContainer"]
  76. margin_left = 278.0
  77. margin_right = 282.0
  78. margin_bottom = 28.0
  79. [node name="Human_Readable_LineEdit" type="LineEdit" parent="ColorRect/HBoxContainer"]
  80. margin_left = 286.0
  81. margin_right = 476.0
  82. margin_bottom = 28.0
  83. custom_styles/focus = SubResource( 1 )
  84. custom_styles/normal = SubResource( 2 )
  85. text = "Human Readable Description"
  86. expand_to_text_length = true
  87. context_menu_enabled = false
  88. [connection signal="toggled" from="ColorRect/HBoxContainer/CheckBox" to="." method="_on_CheckBox_toggled"]
  89. [connection signal="pressed" from="ColorRect/HBoxContainer/Edit_BTN" to="." method="_on_Edit_BTN_pressed"]
  90. [connection signal="pressed" from="ColorRect/HBoxContainer/Name_BTN" to="." method="_on_Name_BTN_pressed"]
  91. [connection signal="pressed" from="ColorRect/HBoxContainer/Group_BTN" to="." method="_on_Group_BTN_pressed"]
  92. [connection signal="focus_exited" from="ColorRect/HBoxContainer/Human_Readable_LineEdit" to="." method="_on_Human_Readable_LineEdit_focus_exited"]
  93. [connection signal="text_changed" from="ColorRect/HBoxContainer/Human_Readable_LineEdit" to="." method="_on_Human_Readable_LineEdit_text_changed"]