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.

Story_Editor.tscn 9.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. [gd_scene load_steps=2 format=2]
  2. [ext_resource path="res://addons/EXP-System-Dialog/Story Editor/story_editor.gd" type="Script" id=1]
  3. [node name="Story_Editor" type="Control"]
  4. anchor_right = 1.0
  5. anchor_bottom = 1.0
  6. rect_min_size = Vector2( 0, 256 )
  7. script = ExtResource( 1 )
  8. __meta__ = {
  9. "_edit_use_anchors_": false
  10. }
  11. [node name="VBoxContainer" type="VBoxContainer" parent="."]
  12. anchor_right = 1.0
  13. anchor_bottom = 1.0
  14. __meta__ = {
  15. "_edit_use_anchors_": false
  16. }
  17. [node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
  18. margin_right = 1024.0
  19. margin_bottom = 20.0
  20. [node name="Close_BTN" type="Button" parent="VBoxContainer/HBoxContainer"]
  21. margin_right = 47.0
  22. margin_bottom = 20.0
  23. text = "Close"
  24. [node name="VSeparator5" type="VSeparator" parent="VBoxContainer/HBoxContainer"]
  25. margin_left = 51.0
  26. margin_right = 55.0
  27. margin_bottom = 20.0
  28. [node name="Story" type="MenuButton" parent="VBoxContainer/HBoxContainer"]
  29. margin_left = 59.0
  30. margin_right = 103.0
  31. margin_bottom = 20.0
  32. text = "Story"
  33. items = [ "New Story", null, 0, false, false, 0, 0, null, "", false, "Load Story", null, 0, false, false, 1, 0, null, "", false, "Save Story As", null, 0, false, false, 2, 0, null, "", false, "Bake Story As", null, 0, false, false, 3, 0, null, "", false, "Save CSV As", null, 0, false, false, 4, 0, null, "", false, "Load CSV", null, 0, false, false, 5, 0, null, "", false ]
  34. [node name="VSeparator" type="VSeparator" parent="VBoxContainer/HBoxContainer"]
  35. margin_left = 107.0
  36. margin_right = 111.0
  37. margin_bottom = 20.0
  38. [node name="Label2" type="Label" parent="VBoxContainer/HBoxContainer"]
  39. margin_left = 115.0
  40. margin_top = 3.0
  41. margin_right = 163.0
  42. margin_bottom = 17.0
  43. text = "Dialog: "
  44. [node name="Create_Dialog_BTN" type="Button" parent="VBoxContainer/HBoxContainer"]
  45. margin_left = 167.0
  46. margin_right = 220.0
  47. margin_bottom = 20.0
  48. hint_tooltip = "Create a new dialog record."
  49. text = "Create"
  50. [node name="Delete_Dialog_BTN" type="Button" parent="VBoxContainer/HBoxContainer"]
  51. margin_left = 224.0
  52. margin_right = 279.0
  53. margin_bottom = 20.0
  54. hint_tooltip = "Delete all checked dialog records."
  55. text = "Delete"
  56. [node name="Check_All_BTN" type="Button" parent="VBoxContainer/HBoxContainer"]
  57. margin_left = 283.0
  58. margin_right = 354.0
  59. margin_bottom = 20.0
  60. hint_tooltip = "Check all currently visible dialog records."
  61. text = "Check All"
  62. [node name="UnCheck_All_BTN" type="Button" parent="VBoxContainer/HBoxContainer"]
  63. margin_left = 358.0
  64. margin_right = 447.0
  65. margin_bottom = 20.0
  66. hint_tooltip = "Uncheck all currently visible dialog records."
  67. text = "UnCheck All"
  68. [node name="VSeparator2" type="VSeparator" parent="VBoxContainer/HBoxContainer"]
  69. margin_left = 451.0
  70. margin_right = 455.0
  71. margin_bottom = 20.0
  72. [node name="Label3" type="Label" parent="VBoxContainer/HBoxContainer"]
  73. margin_left = 459.0
  74. margin_top = 3.0
  75. margin_right = 495.0
  76. margin_bottom = 17.0
  77. text = "Tags: "
  78. [node name="Group_Manager_BTN" type="Button" parent="VBoxContainer/HBoxContainer"]
  79. margin_left = 499.0
  80. margin_right = 590.0
  81. margin_bottom = 20.0
  82. hint_tooltip = "Toggles the Group Manager open and closed. Use the Group Manager to add and delete groups that can be applied to dialog records in this story project."
  83. toggle_mode = true
  84. text = "Tag Manager"
  85. [node name="VSeparator3" type="VSeparator" parent="VBoxContainer/HBoxContainer"]
  86. margin_left = 594.0
  87. margin_right = 598.0
  88. margin_bottom = 20.0
  89. [node name="Apply_Group_BTN" type="Button" parent="VBoxContainer/HBoxContainer"]
  90. margin_left = 602.0
  91. margin_right = 650.0
  92. margin_bottom = 20.0
  93. hint_tooltip = "Apply the group selected in the Group selector menu to all checked dialog records."
  94. text = "Apply"
  95. [node name="Remove_Group_BTN" type="Button" parent="VBoxContainer/HBoxContainer"]
  96. margin_left = 654.0
  97. margin_right = 718.0
  98. margin_bottom = 20.0
  99. hint_tooltip = "Remove the group selected in the Group selector menu from all checked dialog records if the group is applied to them."
  100. text = "Remove"
  101. [node name="Group_Selector_BTN" type="OptionButton" parent="VBoxContainer/HBoxContainer"]
  102. margin_left = 722.0
  103. margin_right = 779.0
  104. margin_bottom = 20.0
  105. hint_tooltip = "Select a group to apply or remove from dialog records."
  106. text = "Tags"
  107. [node name="VSeparator4" type="VSeparator" parent="VBoxContainer/HBoxContainer"]
  108. margin_left = 783.0
  109. margin_right = 787.0
  110. margin_bottom = 20.0
  111. [node name="HBoxContainer3" type="HBoxContainer" parent="VBoxContainer"]
  112. margin_top = 24.0
  113. margin_right = 1024.0
  114. margin_bottom = 572.0
  115. size_flags_horizontal = 3
  116. size_flags_vertical = 3
  117. [node name="Panel" type="Panel" parent="VBoxContainer/HBoxContainer3"]
  118. margin_right = 1024.0
  119. margin_bottom = 548.0
  120. size_flags_horizontal = 3
  121. size_flags_vertical = 3
  122. [node name="VScrollBar" type="ScrollContainer" parent="VBoxContainer/HBoxContainer3/Panel"]
  123. anchor_right = 1.0
  124. anchor_bottom = 1.0
  125. rect_min_size = Vector2( 0, 128 )
  126. size_flags_vertical = 3
  127. __meta__ = {
  128. "_edit_use_anchors_": false
  129. }
  130. [node name="Dialog_Record_Root" type="VBoxContainer" parent="VBoxContainer/HBoxContainer3/Panel/VScrollBar"]
  131. margin_right = 1024.0
  132. margin_bottom = 548.0
  133. rect_min_size = Vector2( 0, 128 )
  134. size_flags_horizontal = 3
  135. size_flags_vertical = 3
  136. __meta__ = {
  137. "_edit_use_anchors_": false
  138. }
  139. [node name="Group_Manager" type="VBoxContainer" parent="VBoxContainer/HBoxContainer3"]
  140. visible = false
  141. margin_left = 824.0
  142. margin_right = 1080.0
  143. margin_bottom = 716.0
  144. rect_min_size = Vector2( 256, 0 )
  145. __meta__ = {
  146. "_edit_use_anchors_": false
  147. }
  148. [node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/HBoxContainer3/Group_Manager"]
  149. margin_right = 256.0
  150. margin_bottom = 24.0
  151. [node name="Add_Group_LineEdit" type="LineEdit" parent="VBoxContainer/HBoxContainer3/Group_Manager/HBoxContainer"]
  152. margin_right = 156.0
  153. margin_bottom = 24.0
  154. rect_min_size = Vector2( 128, 0 )
  155. size_flags_horizontal = 3
  156. [node name="Add_Group_BTN" type="Button" parent="VBoxContainer/HBoxContainer3/Group_Manager/HBoxContainer"]
  157. margin_left = 160.0
  158. margin_right = 197.0
  159. margin_bottom = 24.0
  160. hint_tooltip = "Add a group to this story project."
  161. text = "Add"
  162. __meta__ = {
  163. "_edit_use_anchors_": false
  164. }
  165. [node name="Delete_Group_BTN" type="Button" parent="VBoxContainer/HBoxContainer3/Group_Manager/HBoxContainer"]
  166. margin_left = 201.0
  167. margin_right = 256.0
  168. margin_bottom = 24.0
  169. hint_tooltip = "Remove the selected group from this story project."
  170. text = "Delete"
  171. [node name="Group_ItemList" type="ItemList" parent="VBoxContainer/HBoxContainer3/Group_Manager"]
  172. margin_top = 28.0
  173. margin_right = 256.0
  174. margin_bottom = 716.0
  175. size_flags_vertical = 3
  176. [node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer"]
  177. margin_top = 576.0
  178. margin_right = 1024.0
  179. margin_bottom = 600.0
  180. rect_min_size = Vector2( 0, 24 )
  181. [node name="Label" type="Label" parent="VBoxContainer/HBoxContainer2"]
  182. margin_top = 5.0
  183. margin_right = 65.0
  184. margin_bottom = 19.0
  185. text = "Search by "
  186. [node name="Search_OptionButton" type="OptionButton" parent="VBoxContainer/HBoxContainer2"]
  187. margin_left = 69.0
  188. margin_right = 233.0
  189. margin_bottom = 24.0
  190. text = "Human Readable LBL"
  191. items = [ "Human Readable LBL", null, false, 0, null, "DID", null, false, 1, null ]
  192. selected = 0
  193. [node name="Search_LineEdit" type="LineEdit" parent="VBoxContainer/HBoxContainer2"]
  194. margin_left = 237.0
  195. margin_right = 493.0
  196. margin_bottom = 24.0
  197. rect_min_size = Vector2( 256, 0 )
  198. [node name="Filter_MenuButton" type="MenuButton" parent="VBoxContainer/HBoxContainer2"]
  199. margin_left = 497.0
  200. margin_right = 537.0
  201. margin_bottom = 24.0
  202. hint_tooltip = "Select the groups that appear listed in the story editor."
  203. keep_pressed_outside = true
  204. text = "Tags"
  205. flat = false
  206. items = [ "-No Tags-", null, 1, true, false, 0, 0, null, "", false ]
  207. [node name="VSeparator" type="VSeparator" parent="VBoxContainer/HBoxContainer2"]
  208. margin_left = 541.0
  209. margin_right = 545.0
  210. margin_bottom = 24.0
  211. [node name="Filename_LBL" type="Label" parent="VBoxContainer/HBoxContainer2"]
  212. margin_left = 549.0
  213. margin_top = 5.0
  214. margin_right = 640.0
  215. margin_bottom = 19.0
  216. text = "Unsaved Story"
  217. [connection signal="pressed" from="VBoxContainer/HBoxContainer/Close_BTN" to="." method="_on_Close_BTN_pressed"]
  218. [connection signal="pressed" from="VBoxContainer/HBoxContainer/Create_Dialog_BTN" to="." method="_on_Create_Dialog_BTN_pressed"]
  219. [connection signal="pressed" from="VBoxContainer/HBoxContainer/Delete_Dialog_BTN" to="." method="_on_Delete_Dialog_BTN_pressed"]
  220. [connection signal="pressed" from="VBoxContainer/HBoxContainer/Check_All_BTN" to="." method="_on_Check_All_BTN_pressed"]
  221. [connection signal="pressed" from="VBoxContainer/HBoxContainer/UnCheck_All_BTN" to="." method="_on_Uncheck_All_BTN_pressed"]
  222. [connection signal="toggled" from="VBoxContainer/HBoxContainer/Group_Manager_BTN" to="." method="_on_Group_Manager_BTN_toggled"]
  223. [connection signal="pressed" from="VBoxContainer/HBoxContainer/Apply_Group_BTN" to="." method="_on_Apply_Group_BTN_pressed"]
  224. [connection signal="pressed" from="VBoxContainer/HBoxContainer/Remove_Group_BTN" to="." method="_on_Remove_Group_BTN_pressed"]
  225. [connection signal="pressed" from="VBoxContainer/HBoxContainer/Group_Selector_BTN" to="." method="_on_Group_Selector_BTN_pressed"]
  226. [connection signal="text_entered" from="VBoxContainer/HBoxContainer3/Group_Manager/HBoxContainer/Add_Group_LineEdit" to="." method="_on_Add_Group_LineEdit_text_entered"]
  227. [connection signal="pressed" from="VBoxContainer/HBoxContainer3/Group_Manager/HBoxContainer/Add_Group_BTN" to="." method="_on_Add_Group_BTN_pressed"]
  228. [connection signal="pressed" from="VBoxContainer/HBoxContainer3/Group_Manager/HBoxContainer/Delete_Group_BTN" to="." method="_on_Delete_Group_BTN_pressed"]
  229. [connection signal="item_selected" from="VBoxContainer/HBoxContainer2/Search_OptionButton" to="." method="_on_Search_OptionButton_item_selected"]
  230. [connection signal="text_changed" from="VBoxContainer/HBoxContainer2/Search_LineEdit" to="." method="_on_Search_LineEdit_text_changed"]