Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / TileSetEditorCombination.tscn
@小李xl 小李xl on 23 Dec 2023 9 KB 编辑TileSet地形, 制作中
  1. [gd_scene load_steps=11 format=3 uid="uid://daias2tkvj20c"]
  2.  
  3. [ext_resource type="Script" path="res://src/game/ui/tileSetEditorCombination/TileSetEditorCombinationPanel.cs" id="1_to1lc"]
  4. [ext_resource type="Script" path="res://src/game/ui/tileSetEditorCombination/leftBottom/TileEditArea.cs" id="2_h43yx"]
  5. [ext_resource type="Script" path="res://src/game/ui/tileSetEditorCombination/leftTop/RectBrush.cs" id="3_avikb"]
  6. [ext_resource type="Texture2D" uid="uid://fkg21rtph51d" path="res://resource/sprite/ui/commonIcon/Delete2.png" id="5_6jqro"]
  7. [ext_resource type="Texture2D" uid="uid://7l7aqhsaexoh" path="res://resource/sprite/ui/commonIcon/Play.png" id="6_75xjp"]
  8. [ext_resource type="Script" path="res://src/game/ui/tileSetEditorCombination/leftTop/TileEditCombination.cs" id="6_bb3jf"]
  9. [ext_resource type="Texture2D" uid="uid://bn47bmilcw4x0" path="res://resource/sprite/ui/commonIcon/Select2.png" id="6_g5ey6"]
  10. [ext_resource type="Script" path="res://src/game/ui/tileSetEditorCombination/right/TileSelected.cs" id="6_gql80"]
  11. [ext_resource type="Script" path="res://src/game/common/ui/EditorMaskBrush.cs" id="7_k0dkc"]
  12. [ext_resource type="Texture2D" uid="uid://d2wslibovwv7w" path="res://resource/sprite/ui/commonIcon/CenterTool.png" id="7_mbnpy"]
  13.  
  14. [node name="TileSetEditorCombination" type="Control"]
  15. layout_mode = 3
  16. anchors_preset = 15
  17. anchor_right = 1.0
  18. anchor_bottom = 1.0
  19. grow_horizontal = 2
  20. grow_vertical = 2
  21. script = ExtResource("1_to1lc")
  22. Layer = null
  23.  
  24. [node name="HSplitContainer" type="HSplitContainer" parent="."]
  25. layout_mode = 1
  26. anchors_preset = 15
  27. anchor_right = 1.0
  28. anchor_bottom = 1.0
  29. grow_horizontal = 2
  30. grow_vertical = 2
  31.  
  32. [node name="VSplitContainer" type="VSplitContainer" parent="HSplitContainer"]
  33. layout_mode = 2
  34. size_flags_horizontal = 3
  35. size_flags_stretch_ratio = 69.0
  36.  
  37. [node name="LeftTop" type="Panel" parent="HSplitContainer/VSplitContainer"]
  38. layout_mode = 2
  39. size_flags_vertical = 3
  40. size_flags_stretch_ratio = 50.0
  41.  
  42. [node name="MarginContainer" type="MarginContainer" parent="HSplitContainer/VSplitContainer/LeftTop"]
  43. layout_mode = 1
  44. anchors_preset = 15
  45. anchor_right = 1.0
  46. anchor_bottom = 1.0
  47. grow_horizontal = 2
  48. grow_vertical = 2
  49. theme_override_constants/margin_left = 2
  50. theme_override_constants/margin_top = 2
  51. theme_override_constants/margin_right = 2
  52. theme_override_constants/margin_bottom = 2
  53.  
  54. [node name="LeftTopBg" type="ColorRect" parent="HSplitContainer/VSplitContainer/LeftTop/MarginContainer"]
  55. clip_children = 2
  56. z_index = 1
  57. layout_mode = 2
  58. color = Color(0.203922, 0.203922, 0.203922, 1)
  59. script = ExtResource("6_bb3jf")
  60.  
  61. [node name="CombinationRoot" type="Control" parent="HSplitContainer/VSplitContainer/LeftTop/MarginContainer/LeftTopBg"]
  62. layout_mode = 1
  63. anchors_preset = 8
  64. anchor_left = 0.5
  65. anchor_top = 0.5
  66. anchor_right = 0.5
  67. anchor_bottom = 0.5
  68. offset_left = -0.5
  69. offset_top = -0.5
  70. offset_right = 0.5
  71. offset_bottom = 0.5
  72. grow_horizontal = 2
  73. grow_vertical = 2
  74. scale = Vector2(3, 3)
  75. mouse_filter = 2
  76.  
  77. [node name="CanvasRoot" type="Node2D" parent="HSplitContainer/VSplitContainer/LeftTop/MarginContainer/LeftTopBg/CombinationRoot"]
  78.  
  79. [node name="BrushRoot" type="Node2D" parent="HSplitContainer/VSplitContainer/LeftTop/MarginContainer/LeftTopBg/CombinationRoot"]
  80.  
  81. [node name="RectBrush" type="Node2D" parent="HSplitContainer/VSplitContainer/LeftTop/MarginContainer/LeftTopBg/CombinationRoot"]
  82. script = ExtResource("3_avikb")
  83.  
  84. [node name="Grid" type="ColorRect" parent="HSplitContainer/VSplitContainer/LeftTop/MarginContainer/LeftTopBg"]
  85. layout_mode = 1
  86. anchors_preset = 15
  87. anchor_right = 1.0
  88. anchor_bottom = 1.0
  89. grow_horizontal = 2
  90. grow_vertical = 2
  91. mouse_filter = 2
  92. color = Color(1, 1, 1, 0)
  93.  
  94. [node name="FocusBtn" type="TextureButton" parent="HSplitContainer/VSplitContainer/LeftTop/MarginContainer/LeftTopBg"]
  95. layout_mode = 1
  96. anchors_preset = 1
  97. anchor_left = 1.0
  98. anchor_right = 1.0
  99. offset_left = -79.0
  100. offset_top = 14.0
  101. offset_right = -15.0
  102. offset_bottom = 78.0
  103. grow_horizontal = 0
  104. tooltip_text = "聚焦"
  105. texture_normal = ExtResource("7_mbnpy")
  106. ignore_texture_size = true
  107. stretch_mode = 5
  108.  
  109. [node name="DeleteBtn" type="TextureButton" parent="HSplitContainer/VSplitContainer/LeftTop/MarginContainer/LeftTopBg"]
  110. layout_mode = 1
  111. anchors_preset = 1
  112. anchor_left = 1.0
  113. anchor_right = 1.0
  114. offset_left = -151.0
  115. offset_top = 14.0
  116. offset_right = -87.0
  117. offset_bottom = 78.0
  118. grow_horizontal = 0
  119. tooltip_text = "删除所有图块"
  120. texture_normal = ExtResource("5_6jqro")
  121. ignore_texture_size = true
  122. stretch_mode = 5
  123.  
  124. [node name="ImportBtn" type="Button" parent="HSplitContainer/VSplitContainer/LeftTop/MarginContainer/LeftTopBg"]
  125. layout_mode = 1
  126. anchors_preset = 3
  127. anchor_left = 1.0
  128. anchor_top = 1.0
  129. anchor_right = 1.0
  130. anchor_bottom = 1.0
  131. offset_left = -191.0
  132. offset_top = -84.0
  133. offset_right = -15.0
  134. offset_bottom = -20.0
  135. grow_horizontal = 0
  136. grow_vertical = 0
  137. text = "导入组合"
  138. icon = ExtResource("6_75xjp")
  139.  
  140. [node name="LeftBottom" type="Panel" parent="HSplitContainer/VSplitContainer"]
  141. layout_mode = 2
  142. size_flags_horizontal = 3
  143. size_flags_vertical = 3
  144. size_flags_stretch_ratio = 50.0
  145.  
  146. [node name="MarginContainer" type="MarginContainer" parent="HSplitContainer/VSplitContainer/LeftBottom"]
  147. layout_mode = 1
  148. anchors_preset = 15
  149. anchor_right = 1.0
  150. anchor_bottom = 1.0
  151. grow_horizontal = 2
  152. grow_vertical = 2
  153. theme_override_constants/margin_left = 2
  154. theme_override_constants/margin_top = 2
  155. theme_override_constants/margin_right = 2
  156. theme_override_constants/margin_bottom = 2
  157.  
  158. [node name="LeftBottomBg" type="ColorRect" parent="HSplitContainer/VSplitContainer/LeftBottom/MarginContainer"]
  159. clip_children = 2
  160. z_index = 1
  161. layout_mode = 2
  162. color = Color(0.203922, 0.203922, 0.203922, 1)
  163. script = ExtResource("2_h43yx")
  164.  
  165. [node name="TileTexture" type="TextureRect" parent="HSplitContainer/VSplitContainer/LeftBottom/MarginContainer/LeftBottomBg"]
  166. layout_mode = 1
  167. anchors_preset = 8
  168. anchor_left = 0.5
  169. anchor_top = 0.5
  170. anchor_right = 0.5
  171. anchor_bottom = 0.5
  172. grow_horizontal = 2
  173. grow_vertical = 2
  174. scale = Vector2(2, 2)
  175. mouse_filter = 2
  176.  
  177. [node name="MaskRoot" type="Control" parent="HSplitContainer/VSplitContainer/LeftBottom/MarginContainer/LeftBottomBg/TileTexture"]
  178. layout_mode = 1
  179. anchors_preset = 15
  180. anchor_right = 1.0
  181. anchor_bottom = 1.0
  182. grow_horizontal = 2
  183. grow_vertical = 2
  184. mouse_filter = 2
  185.  
  186. [node name="MaskRect" type="ColorRect" parent="HSplitContainer/VSplitContainer/LeftBottom/MarginContainer/LeftBottomBg/TileTexture/MaskRoot"]
  187. layout_mode = 1
  188. offset_right = 16.0
  189. offset_bottom = 16.0
  190. mouse_filter = 2
  191. color = Color(0, 0, 0, 0.588235)
  192.  
  193. [node name="MaskBrush" type="Control" parent="HSplitContainer/VSplitContainer/LeftBottom/MarginContainer/LeftBottomBg/TileTexture"]
  194. layout_mode = 1
  195. anchors_preset = 15
  196. anchor_right = 1.0
  197. anchor_bottom = 1.0
  198. grow_horizontal = 2
  199. grow_vertical = 2
  200. mouse_filter = 2
  201. script = ExtResource("7_k0dkc")
  202.  
  203. [node name="Grid" type="ColorRect" parent="HSplitContainer/VSplitContainer/LeftBottom/MarginContainer/LeftBottomBg"]
  204. layout_mode = 1
  205. anchors_preset = 15
  206. anchor_right = 1.0
  207. anchor_bottom = 1.0
  208. grow_horizontal = 2
  209. grow_vertical = 2
  210. mouse_filter = 2
  211. color = Color(1, 1, 1, 0)
  212.  
  213. [node name="FocusBtn" type="TextureButton" parent="HSplitContainer/VSplitContainer/LeftBottom/MarginContainer/LeftBottomBg"]
  214. layout_mode = 1
  215. anchors_preset = 1
  216. anchor_left = 1.0
  217. anchor_right = 1.0
  218. offset_left = -79.0
  219. offset_top = 14.0
  220. offset_right = -15.0
  221. offset_bottom = 78.0
  222. grow_horizontal = 0
  223. tooltip_text = "聚焦"
  224. texture_normal = ExtResource("7_mbnpy")
  225. ignore_texture_size = true
  226. stretch_mode = 5
  227.  
  228. [node name="Right" type="Panel" parent="HSplitContainer"]
  229. layout_mode = 2
  230. size_flags_horizontal = 3
  231. size_flags_stretch_ratio = 31.0
  232.  
  233. [node name="MarginContainer" type="MarginContainer" parent="HSplitContainer/Right"]
  234. layout_mode = 1
  235. anchors_preset = 15
  236. anchor_right = 1.0
  237. anchor_bottom = 1.0
  238. grow_horizontal = 2
  239. grow_vertical = 2
  240. theme_override_constants/margin_left = 2
  241. theme_override_constants/margin_top = 2
  242. theme_override_constants/margin_right = 2
  243. theme_override_constants/margin_bottom = 2
  244.  
  245. [node name="RightBg" type="VBoxContainer" parent="HSplitContainer/Right/MarginContainer"]
  246. layout_mode = 2
  247. script = ExtResource("6_gql80")
  248.  
  249. [node name="Label" type="Label" parent="HSplitContainer/Right/MarginContainer/RightBg"]
  250. layout_mode = 2
  251. text = "已经导入的组合:"
  252.  
  253. [node name="ScrollContainer" type="ScrollContainer" parent="HSplitContainer/Right/MarginContainer/RightBg"]
  254. layout_mode = 2
  255. size_flags_vertical = 3
  256.  
  257. [node name="CellButton" type="Button" parent="HSplitContainer/Right/MarginContainer/RightBg/ScrollContainer"]
  258. custom_minimum_size = Vector2(120, 170)
  259. layout_mode = 2
  260.  
  261. [node name="PreviewImage" type="TextureRect" parent="HSplitContainer/Right/MarginContainer/RightBg/ScrollContainer/CellButton"]
  262. layout_mode = 1
  263. anchors_preset = 15
  264. anchor_right = 1.0
  265. anchor_bottom = 1.0
  266. offset_left = 2.0
  267. offset_top = 2.0
  268. offset_right = -2.0
  269. offset_bottom = -52.0
  270. grow_horizontal = 2
  271. grow_vertical = 2
  272. mouse_filter = 2
  273. expand_mode = 2
  274. stretch_mode = 5
  275.  
  276. [node name="CellName" type="Label" parent="HSplitContainer/Right/MarginContainer/RightBg/ScrollContainer/CellButton"]
  277. layout_mode = 1
  278. anchors_preset = 12
  279. anchor_top = 1.0
  280. anchor_right = 1.0
  281. anchor_bottom = 1.0
  282. offset_top = -52.0
  283. grow_horizontal = 2
  284. grow_vertical = 0
  285. theme_override_font_sizes/font_size = 16
  286. text = "名称"
  287. horizontal_alignment = 1
  288. vertical_alignment = 1
  289. autowrap_mode = 2
  290. clip_text = true
  291. text_overrun_behavior = 2
  292.  
  293. [node name="SelectTexture" type="NinePatchRect" parent="HSplitContainer/Right/MarginContainer/RightBg/ScrollContainer/CellButton"]
  294. layout_mode = 1
  295. anchors_preset = 15
  296. anchor_right = 1.0
  297. anchor_bottom = 1.0
  298. grow_horizontal = 2
  299. grow_vertical = 2
  300. texture = ExtResource("6_g5ey6")
  301. region_rect = Rect2(0, 0, 36, 36)
  302. patch_margin_left = 3
  303. patch_margin_top = 3
  304. patch_margin_right = 3
  305. patch_margin_bottom = 3