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.

CharacterEditor.tscn 8.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. [gd_scene load_steps=4 format=2]
  2. [ext_resource path="res://addons/dialogic/Editor/CharacterEditor/PortraitEntry.tscn" type="PackedScene" id=1]
  3. [ext_resource path="res://addons/dialogic/Editor/CharacterEditor/CharacterEditor.gd" type="Script" id=2]
  4. [sub_resource type="StyleBoxFlat" id=1]
  5. content_margin_left = 5.0
  6. content_margin_right = 5.0
  7. content_margin_top = 5.0
  8. content_margin_bottom = 5.0
  9. bg_color = Color( 0.2, 0.23, 0.31, 1 )
  10. [node name="CharacterEditor" type="ScrollContainer"]
  11. margin_left = 192.0
  12. margin_right = 1253.0
  13. margin_bottom = 661.0
  14. custom_styles/bg = SubResource( 1 )
  15. script = ExtResource( 2 )
  16. __meta__ = {
  17. "_edit_use_anchors_": false
  18. }
  19. [node name="HBoxContainer" type="HBoxContainer" parent="."]
  20. margin_left = 5.0
  21. margin_top = 5.0
  22. margin_right = 1056.0
  23. margin_bottom = 656.0
  24. size_flags_horizontal = 3
  25. size_flags_vertical = 3
  26. [node name="Container" type="VBoxContainer" parent="HBoxContainer"]
  27. margin_right = 523.0
  28. margin_bottom = 651.0
  29. grow_horizontal = 2
  30. grow_vertical = 2
  31. size_flags_horizontal = 3
  32. size_flags_vertical = 9
  33. [node name="Name" type="HBoxContainer" parent="HBoxContainer/Container"]
  34. margin_right = 523.0
  35. margin_bottom = 24.0
  36. [node name="Label" type="Label" parent="HBoxContainer/Container/Name"]
  37. margin_top = 5.0
  38. margin_right = 130.0
  39. margin_bottom = 19.0
  40. rect_min_size = Vector2( 130, 0 )
  41. text = "Name: "
  42. [node name="LineEdit" type="LineEdit" parent="HBoxContainer/Container/Name"]
  43. margin_left = 134.0
  44. margin_right = 274.0
  45. margin_bottom = 24.0
  46. rect_min_size = Vector2( 140, 0 )
  47. [node name="CheckBox" type="CheckBox" parent="HBoxContainer/Container/Name"]
  48. margin_left = 278.0
  49. margin_right = 451.0
  50. margin_bottom = 24.0
  51. text = "Different display name"
  52. __meta__ = {
  53. "_edit_use_anchors_": false
  54. }
  55. [node name="DisplayName" type="HBoxContainer" parent="HBoxContainer/Container"]
  56. visible = false
  57. margin_top = 28.0
  58. margin_right = 491.0
  59. margin_bottom = 52.0
  60. __meta__ = {
  61. "_editor_description_": "Display name is the name that will
  62. show up on the dialogs in game."
  63. }
  64. [node name="Label" type="Label" parent="HBoxContainer/Container/DisplayName"]
  65. margin_top = 5.0
  66. margin_right = 130.0
  67. margin_bottom = 19.0
  68. rect_min_size = Vector2( 130, 0 )
  69. text = "Display Name: "
  70. [node name="LineEdit" type="LineEdit" parent="HBoxContainer/Container/DisplayName"]
  71. margin_left = 134.0
  72. margin_right = 274.0
  73. margin_bottom = 24.0
  74. rect_min_size = Vector2( 140, 0 )
  75. [node name="Color" type="HBoxContainer" parent="HBoxContainer/Container"]
  76. margin_top = 28.0
  77. margin_right = 523.0
  78. margin_bottom = 48.0
  79. [node name="Label" type="Label" parent="HBoxContainer/Container/Color"]
  80. margin_top = 3.0
  81. margin_right = 130.0
  82. margin_bottom = 17.0
  83. rect_min_size = Vector2( 130, 0 )
  84. text = "Color: "
  85. [node name="ColorPickerButton" type="ColorPickerButton" parent="HBoxContainer/Container/Color"]
  86. margin_left = 134.0
  87. margin_right = 274.0
  88. margin_bottom = 20.0
  89. rect_min_size = Vector2( 140, 0 )
  90. color = Color( 1, 1, 1, 1 )
  91. edit_alpha = false
  92. [node name="Description" type="HBoxContainer" parent="HBoxContainer/Container"]
  93. margin_top = 52.0
  94. margin_right = 523.0
  95. margin_bottom = 152.0
  96. [node name="Label" type="Label" parent="HBoxContainer/Container/Description"]
  97. margin_top = 43.0
  98. margin_right = 130.0
  99. margin_bottom = 57.0
  100. rect_min_size = Vector2( 130, 0 )
  101. text = "Description: "
  102. [node name="TextEdit" type="TextEdit" parent="HBoxContainer/Container/Description"]
  103. margin_left = 134.0
  104. margin_right = 523.0
  105. margin_bottom = 100.0
  106. rect_min_size = Vector2( 100, 100 )
  107. size_flags_horizontal = 3
  108. [node name="Separator" type="Control" parent="HBoxContainer/Container"]
  109. margin_top = 156.0
  110. margin_right = 523.0
  111. margin_bottom = 166.0
  112. rect_min_size = Vector2( 0, 10 )
  113. [node name="Portraits" type="HBoxContainer" parent="HBoxContainer/Container"]
  114. margin_top = 170.0
  115. margin_right = 523.0
  116. margin_bottom = 184.0
  117. [node name="Label" type="Label" parent="HBoxContainer/Container/Portraits"]
  118. margin_right = 143.0
  119. margin_bottom = 14.0
  120. text = "Portraits / Expressions"
  121. [node name="Labels" type="HBoxContainer" parent="HBoxContainer/Container"]
  122. margin_top = 188.0
  123. margin_right = 523.0
  124. margin_bottom = 202.0
  125. [node name="LineEdit" type="Label" parent="HBoxContainer/Container/Labels"]
  126. margin_right = 100.0
  127. margin_bottom = 14.0
  128. rect_min_size = Vector2( 100, 0 )
  129. text = "Name"
  130. [node name="LineEdit2" type="Label" parent="HBoxContainer/Container/Labels"]
  131. margin_left = 104.0
  132. margin_right = 254.0
  133. margin_bottom = 14.0
  134. rect_min_size = Vector2( 150, 0 )
  135. text = "Path"
  136. [node name="ScrollContainer" type="ScrollContainer" parent="HBoxContainer/Container"]
  137. margin_top = 206.0
  138. margin_right = 523.0
  139. margin_bottom = 623.0
  140. size_flags_horizontal = 3
  141. size_flags_vertical = 3
  142. [node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer/Container/ScrollContainer"]
  143. margin_right = 523.0
  144. margin_bottom = 417.0
  145. size_flags_horizontal = 3
  146. size_flags_vertical = 3
  147. [node name="PortraitList" type="VBoxContainer" parent="HBoxContainer/Container/ScrollContainer/VBoxContainer"]
  148. margin_right = 523.0
  149. margin_bottom = 24.0
  150. size_flags_horizontal = 3
  151. [node name="PortraitEntry" parent="HBoxContainer/Container/ScrollContainer/VBoxContainer/PortraitList" instance=ExtResource( 1 )]
  152. margin_right = 523.0
  153. [node name="HBoxContainer" type="HBoxContainer" parent="HBoxContainer/Container/ScrollContainer/VBoxContainer"]
  154. margin_top = 28.0
  155. margin_right = 523.0
  156. margin_bottom = 48.0
  157. [node name="Button" type="Button" parent="HBoxContainer/Container/ScrollContainer/VBoxContainer/HBoxContainer"]
  158. margin_right = 87.0
  159. margin_bottom = 20.0
  160. text = " Add new + "
  161. [node name="FileName" type="HBoxContainer" parent="HBoxContainer/Container"]
  162. visible = false
  163. margin_top = 599.0
  164. margin_right = 523.0
  165. margin_bottom = 623.0
  166. [node name="Label" type="Label" parent="HBoxContainer/Container/FileName"]
  167. margin_top = 5.0
  168. margin_right = 130.0
  169. margin_bottom = 19.0
  170. rect_min_size = Vector2( 130, 0 )
  171. text = "File:"
  172. [node name="LineEdit" type="LineEdit" parent="HBoxContainer/Container/FileName"]
  173. margin_left = 134.0
  174. margin_right = 523.0
  175. margin_bottom = 24.0
  176. rect_min_size = Vector2( 140, 0 )
  177. focus_mode = 0
  178. size_flags_horizontal = 3
  179. editable = false
  180. [node name="Actions" type="HBoxContainer" parent="HBoxContainer/Container"]
  181. margin_top = 627.0
  182. margin_right = 523.0
  183. margin_bottom = 651.0
  184. [node name="DefaultSpeaker" type="CheckBox" parent="HBoxContainer/Container/Actions"]
  185. margin_right = 128.0
  186. margin_bottom = 24.0
  187. hint_tooltip = "By selecting \"Default Speaker\" all the new
  188. Text Events created will automatically
  189. select this character by default.
  190. You can only have 1 Default Speaker
  191. per project."
  192. text = "Default Speaker"
  193. [node name="Control" type="Control" parent="HBoxContainer/Container/Actions"]
  194. margin_left = 132.0
  195. margin_right = 523.0
  196. margin_bottom = 24.0
  197. size_flags_horizontal = 3
  198. [node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer"]
  199. margin_left = 527.0
  200. margin_right = 1051.0
  201. margin_bottom = 651.0
  202. size_flags_horizontal = 3
  203. size_flags_vertical = 3
  204. [node name="Control" type="Panel" parent="HBoxContainer/VBoxContainer"]
  205. margin_right = 524.0
  206. margin_bottom = 623.0
  207. size_flags_horizontal = 3
  208. size_flags_vertical = 3
  209. [node name="TextureRect" type="TextureRect" parent="HBoxContainer/VBoxContainer/Control"]
  210. anchor_right = 1.0
  211. anchor_bottom = 1.0
  212. margin_left = 30.0
  213. margin_top = 30.0
  214. margin_right = -30.0
  215. margin_bottom = -30.0
  216. rect_min_size = Vector2( 100, 100 )
  217. size_flags_horizontal = 3
  218. size_flags_vertical = 3
  219. expand = true
  220. stretch_mode = 6
  221. __meta__ = {
  222. "_edit_use_anchors_": false
  223. }
  224. [node name="Label" type="Label" parent="HBoxContainer/VBoxContainer/Control"]
  225. self_modulate = Color( 1, 1, 1, 0.396078 )
  226. margin_right = 340.0
  227. margin_bottom = 14.0
  228. text = "Preview"
  229. __meta__ = {
  230. "_edit_use_anchors_": false
  231. }
  232. [node name="HBoxContainer" type="HBoxContainer" parent="HBoxContainer/VBoxContainer"]
  233. margin_top = 627.0
  234. margin_right = 524.0
  235. margin_bottom = 651.0
  236. [node name="Label" type="Label" parent="HBoxContainer/VBoxContainer/HBoxContainer"]
  237. margin_top = 5.0
  238. margin_right = 33.0
  239. margin_bottom = 19.0
  240. text = "Scale"
  241. [node name="Scale" type="SpinBox" parent="HBoxContainer/VBoxContainer/HBoxContainer"]
  242. margin_left = 37.0
  243. margin_right = 111.0
  244. margin_bottom = 24.0
  245. value = 100.0
  246. allow_greater = true
  247. align = 2
  248. suffix = "%"
  249. [node name="Label2" type="Label" parent="HBoxContainer/VBoxContainer/HBoxContainer"]
  250. margin_left = 115.0
  251. margin_top = 5.0
  252. margin_right = 186.0
  253. margin_bottom = 19.0
  254. text = " Offset"
  255. [node name="OffsetX" type="SpinBox" parent="HBoxContainer/VBoxContainer/HBoxContainer"]
  256. margin_left = 190.0
  257. margin_right = 290.0
  258. margin_bottom = 24.0
  259. rect_min_size = Vector2( 100, 0 )
  260. allow_greater = true
  261. allow_lesser = true
  262. suffix = "X"
  263. [node name="OffsetY" type="SpinBox" parent="HBoxContainer/VBoxContainer/HBoxContainer"]
  264. margin_left = 294.0
  265. margin_right = 394.0
  266. margin_bottom = 24.0
  267. rect_min_size = Vector2( 100, 0 )
  268. allow_greater = true
  269. allow_lesser = true
  270. suffix = "Y"