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