Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / TileSetEditorTerrain.tscn
@小李xl 小李xl on 14 Jan 2024 11 KB 修复TerrainCell遮挡页签的bug
  1. [gd_scene load_steps=16 format=3 uid="uid://dfqb73y4br8yd"]
  2.  
  3. [ext_resource type="Script" path="res://src/game/ui/tileSetEditorTerrain/TileSetEditorTerrainPanel.cs" id="1_6jjk7"]
  4. [ext_resource type="Texture2D" uid="uid://n4atvj5fkcpg" path="res://resource/sprite/ui/commonIcon/Add.png" id="2_ns54l"]
  5. [ext_resource type="Script" path="res://src/game/ui/tileSetEditorTerrain/down/TileEditArea.cs" id="2_ynf0r"]
  6. [ext_resource type="Script" path="res://src/game/common/ui/EditorMaskBrush.cs" id="3_gydh0"]
  7. [ext_resource type="Texture2D" uid="uid://c5778ntk2rdon" path="res://resource/sprite/ui/commonIcon/Delete.png" id="3_jn1bd"]
  8. [ext_resource type="Texture2D" uid="uid://dggb6p4sdmfry" path="res://resource/sprite/ui/commonIcon/Edit.png" id="3_xmuhh"]
  9. [ext_resource type="Texture2D" uid="uid://bn47bmilcw4x0" path="res://resource/sprite/ui/commonIcon/Select2.png" id="4_ka47m"]
  10. [ext_resource type="Script" path="res://src/game/ui/tileSetEditorTerrain/up/TileEditTerrain.cs" id="5_0x7yx"]
  11. [ext_resource type="Texture2D" uid="uid://d2wslibovwv7w" path="res://resource/sprite/ui/commonIcon/CenterTool.png" id="5_08bc4"]
  12. [ext_resource type="Texture2D" uid="uid://bud6ah5xyey37" path="res://resource/sprite/map/TerrainMask2.png" id="5_xabgh"]
  13. [ext_resource type="Texture2D" uid="uid://dyshwhf3101em" path="res://resource/sprite/map/TerrainMask4.png" id="6_vbhca"]
  14. [ext_resource type="Texture2D" uid="uid://c4ltpf5a3egu1" path="res://resource/sprite/ui/commonIcon/Error_mini.png" id="6_vh7rd"]
  15. [ext_resource type="Texture2D" uid="uid://chisfq2alcq16" path="res://resource/sprite/map/TerrainMask3.png" id="6_vmj5y"]
  16. [ext_resource type="Texture2D" uid="uid://cvjj6jnmxgprw" path="res://resource/sprite/map/TerrainMask.png" id="7_g8dxk"]
  17. [ext_resource type="Script" path="res://src/game/ui/tileSetEditorTerrain/up/TerrainBrush.cs" id="7_lmu64"]
  18.  
  19. [node name="TileSetEditorTerrain" type="Control"]
  20. layout_mode = 3
  21. anchors_preset = 15
  22. anchor_right = 1.0
  23. anchor_bottom = 1.0
  24. grow_horizontal = 2
  25. grow_vertical = 2
  26. script = ExtResource("1_6jjk7")
  27.  
  28. [node name="VSplitContainer" type="VSplitContainer" parent="."]
  29. layout_mode = 1
  30. anchors_preset = 15
  31. anchor_right = 1.0
  32. anchor_bottom = 1.0
  33. grow_horizontal = 2
  34. grow_vertical = 2
  35.  
  36. [node name="PanelTop" type="Panel" parent="VSplitContainer"]
  37. layout_mode = 2
  38. size_flags_horizontal = 3
  39. size_flags_vertical = 3
  40. size_flags_stretch_ratio = 50.0
  41.  
  42. [node name="HSplitContainer" type="HSplitContainer" parent="VSplitContainer/PanelTop"]
  43. layout_mode = 1
  44. anchors_preset = 15
  45. anchor_right = 1.0
  46. anchor_bottom = 1.0
  47. offset_left = 2.0
  48. offset_top = 2.0
  49. offset_right = -2.0
  50. offset_bottom = -2.0
  51. grow_horizontal = 2
  52. grow_vertical = 2
  53.  
  54. [node name="TopTab" type="Panel" parent="VSplitContainer/PanelTop/HSplitContainer"]
  55. custom_minimum_size = Vector2(270, 0)
  56. layout_mode = 2
  57.  
  58. [node name="VBoxContainer" type="VBoxContainer" parent="VSplitContainer/PanelTop/HSplitContainer/TopTab"]
  59. layout_mode = 1
  60. anchors_preset = 15
  61. anchor_right = 1.0
  62. anchor_bottom = 1.0
  63. offset_left = 2.0
  64. offset_top = 2.0
  65. offset_right = -2.0
  66. offset_bottom = -2.0
  67. grow_horizontal = 2
  68. grow_vertical = 2
  69.  
  70. [node name="HBoxContainer" type="HBoxContainer" parent="VSplitContainer/PanelTop/HSplitContainer/TopTab/VBoxContainer"]
  71. custom_minimum_size = Vector2(0, 50)
  72. layout_mode = 2
  73.  
  74. [node name="Label" type="Label" parent="VSplitContainer/PanelTop/HSplitContainer/TopTab/VBoxContainer/HBoxContainer"]
  75. layout_mode = 2
  76. size_flags_horizontal = 3
  77. text = "地形:"
  78.  
  79. [node name="AddButton" type="Button" parent="VSplitContainer/PanelTop/HSplitContainer/TopTab/VBoxContainer/HBoxContainer"]
  80. layout_mode = 2
  81. icon = ExtResource("2_ns54l")
  82.  
  83. [node name="EditButton" type="Button" parent="VSplitContainer/PanelTop/HSplitContainer/TopTab/VBoxContainer/HBoxContainer"]
  84. layout_mode = 2
  85. icon = ExtResource("3_xmuhh")
  86.  
  87. [node name="DeleteButton" type="Button" parent="VSplitContainer/PanelTop/HSplitContainer/TopTab/VBoxContainer/HBoxContainer"]
  88. layout_mode = 2
  89. icon = ExtResource("3_jn1bd")
  90.  
  91. [node name="ScrollContainer" type="ScrollContainer" parent="VSplitContainer/PanelTop/HSplitContainer/TopTab/VBoxContainer"]
  92. layout_mode = 2
  93. size_flags_vertical = 3
  94.  
  95. [node name="TerrainTab" type="Button" parent="VSplitContainer/PanelTop/HSplitContainer/TopTab/VBoxContainer/ScrollContainer"]
  96. custom_minimum_size = Vector2(0, 50)
  97. layout_mode = 2
  98. size_flags_horizontal = 3
  99. text = "name"
  100. alignment = 0
  101. text_overrun_behavior = 3
  102.  
  103. [node name="ErrorIcon" type="TextureRect" parent="VSplitContainer/PanelTop/HSplitContainer/TopTab/VBoxContainer/ScrollContainer/TerrainTab"]
  104. layout_mode = 1
  105. anchors_preset = 6
  106. anchor_left = 1.0
  107. anchor_top = 0.5
  108. anchor_right = 1.0
  109. anchor_bottom = 0.5
  110. offset_left = -45.0
  111. offset_top = -20.0
  112. offset_right = -5.0
  113. offset_bottom = 20.0
  114. grow_horizontal = 0
  115. grow_vertical = 2
  116. mouse_filter = 2
  117. texture = ExtResource("6_vh7rd")
  118.  
  119. [node name="SelectTexture" type="NinePatchRect" parent="VSplitContainer/PanelTop/HSplitContainer/TopTab/VBoxContainer/ScrollContainer/TerrainTab"]
  120. layout_mode = 1
  121. anchors_preset = 15
  122. anchor_right = 1.0
  123. anchor_bottom = 1.0
  124. grow_horizontal = 2
  125. grow_vertical = 2
  126. texture = ExtResource("4_ka47m")
  127. patch_margin_left = 3
  128. patch_margin_top = 3
  129. patch_margin_right = 3
  130. patch_margin_bottom = 3
  131.  
  132. [node name="TopBg" type="ColorRect" parent="VSplitContainer/PanelTop/HSplitContainer"]
  133. clip_children = 2
  134. z_index = 1
  135. layout_mode = 2
  136. size_flags_horizontal = 3
  137. color = Color(0.496094, 0.496094, 0.496094, 1)
  138. script = ExtResource("5_0x7yx")
  139.  
  140. [node name="TerrainRoot" type="Control" parent="VSplitContainer/PanelTop/HSplitContainer/TopBg"]
  141. layout_mode = 1
  142. anchors_preset = 8
  143. anchor_left = 0.5
  144. anchor_top = 0.5
  145. anchor_right = 0.5
  146. anchor_bottom = 0.5
  147. offset_left = -291.0
  148. offset_top = -92.0
  149. offset_right = -98.0
  150. offset_bottom = 4.0
  151. grow_horizontal = 2
  152. grow_vertical = 2
  153. scale = Vector2(3, 3)
  154. mouse_filter = 2
  155.  
  156. [node name="CellRoot" type="Control" parent="VSplitContainer/PanelTop/HSplitContainer/TopBg/TerrainRoot"]
  157. layout_mode = 3
  158. anchors_preset = 0
  159. offset_right = 1.0
  160. offset_bottom = 1.0
  161. mouse_filter = 2
  162.  
  163. [node name="RightCell" type="Control" parent="VSplitContainer/PanelTop/HSplitContainer/TopBg/TerrainRoot/CellRoot"]
  164. z_index = 1
  165. anchors_preset = 0
  166. offset_right = 16.0
  167. offset_bottom = 16.0
  168. mouse_filter = 2
  169.  
  170. [node name="CellTexture" type="Sprite2D" parent="VSplitContainer/PanelTop/HSplitContainer/TopBg/TerrainRoot/CellRoot/RightCell"]
  171. z_index = -1
  172. centered = false
  173.  
  174. [node name="TerrainTexture1" type="TextureRect" parent="VSplitContainer/PanelTop/HSplitContainer/TopBg/TerrainRoot"]
  175. self_modulate = Color(1, 1, 1, 0.27451)
  176. custom_minimum_size = Vector2(192, 64)
  177. layout_mode = 1
  178. offset_right = 192.0
  179. offset_bottom = 64.0
  180. mouse_filter = 2
  181. texture = ExtResource("7_g8dxk")
  182.  
  183. [node name="Label" type="Label" parent="VSplitContainer/PanelTop/HSplitContainer/TopBg/TerrainRoot/TerrainTexture1"]
  184. layout_mode = 0
  185. offset_top = -10.0
  186. offset_right = 136.0
  187. offset_bottom = 30.0
  188. scale = Vector2(0.25, 0.25)
  189. text = "顶部墙壁"
  190.  
  191. [node name="TerrainTexture2" type="TextureRect" parent="VSplitContainer/PanelTop/HSplitContainer/TopBg/TerrainRoot"]
  192. self_modulate = Color(1, 1, 1, 0.27451)
  193. custom_minimum_size = Vector2(64, 16)
  194. layout_mode = 1
  195. offset_top = 80.0
  196. offset_right = 64.0
  197. offset_bottom = 96.0
  198. mouse_filter = 2
  199. texture = ExtResource("5_xabgh")
  200.  
  201. [node name="Label" type="Label" parent="VSplitContainer/PanelTop/HSplitContainer/TopBg/TerrainRoot/TerrainTexture2"]
  202. layout_mode = 0
  203. offset_top = -10.0
  204. offset_right = 136.0
  205. offset_bottom = 30.0
  206. scale = Vector2(0.25, 0.25)
  207. text = "侧方墙壁"
  208.  
  209. [node name="TerrainTexture3" type="TextureRect" parent="VSplitContainer/PanelTop/HSplitContainer/TopBg/TerrainRoot"]
  210. self_modulate = Color(1, 1, 1, 0.27451)
  211. custom_minimum_size = Vector2(16, 16)
  212. layout_mode = 1
  213. offset_left = 80.0
  214. offset_top = 80.0
  215. offset_right = 96.0
  216. offset_bottom = 96.0
  217. mouse_filter = 2
  218. texture = ExtResource("6_vmj5y")
  219.  
  220. [node name="Label" type="Label" parent="VSplitContainer/PanelTop/HSplitContainer/TopBg/TerrainRoot/TerrainTexture3"]
  221. layout_mode = 0
  222. offset_top = -10.0
  223. offset_right = 136.0
  224. offset_bottom = 30.0
  225. scale = Vector2(0.25, 0.25)
  226. text = "地板"
  227.  
  228. [node name="TerrainTexture4" type="TextureRect" parent="VSplitContainer/PanelTop/HSplitContainer/TopBg/TerrainRoot"]
  229. visible = false
  230. self_modulate = Color(1, 1, 1, 0.27451)
  231. custom_minimum_size = Vector2(80, 48)
  232. layout_mode = 1
  233. offset_right = 80.0
  234. offset_bottom = 48.0
  235. mouse_filter = 2
  236. texture = ExtResource("6_vbhca")
  237.  
  238. [node name="Label" type="Label" parent="VSplitContainer/PanelTop/HSplitContainer/TopBg/TerrainRoot/TerrainTexture4"]
  239. layout_mode = 0
  240. offset_top = -10.0
  241. offset_right = 136.0
  242. offset_bottom = 30.0
  243. scale = Vector2(0.25, 0.25)
  244. text = "地形"
  245.  
  246. [node name="Brush" type="Control" parent="VSplitContainer/PanelTop/HSplitContainer/TopBg/TerrainRoot"]
  247. layout_mode = 1
  248. anchors_preset = 15
  249. anchor_right = 1.0
  250. anchor_bottom = 1.0
  251. grow_horizontal = 2
  252. grow_vertical = 2
  253. mouse_filter = 2
  254. script = ExtResource("7_lmu64")
  255.  
  256. [node name="Grid" type="ColorRect" parent="VSplitContainer/PanelTop/HSplitContainer/TopBg"]
  257. layout_mode = 1
  258. anchors_preset = 15
  259. anchor_right = 1.0
  260. anchor_bottom = 1.0
  261. grow_horizontal = 2
  262. grow_vertical = 2
  263. mouse_filter = 2
  264. color = Color(1, 1, 1, 0)
  265.  
  266. [node name="FocusBtn" type="TextureButton" parent="VSplitContainer/PanelTop/HSplitContainer/TopBg"]
  267. layout_mode = 1
  268. anchors_preset = 1
  269. anchor_left = 1.0
  270. anchor_right = 1.0
  271. offset_left = -79.0
  272. offset_top = 14.0
  273. offset_right = -15.0
  274. offset_bottom = 78.0
  275. grow_horizontal = 0
  276. tooltip_text = "聚焦"
  277. texture_normal = ExtResource("5_08bc4")
  278. ignore_texture_size = true
  279. stretch_mode = 5
  280.  
  281. [node name="PanelBottom" type="Panel" parent="VSplitContainer"]
  282. layout_mode = 2
  283. size_flags_horizontal = 3
  284. size_flags_vertical = 3
  285. size_flags_stretch_ratio = 50.0
  286.  
  287. [node name="BottomBg" type="ColorRect" parent="VSplitContainer/PanelBottom"]
  288. clip_children = 2
  289. z_index = 1
  290. layout_mode = 1
  291. anchors_preset = 15
  292. anchor_right = 1.0
  293. anchor_bottom = 1.0
  294. offset_left = 2.0
  295. offset_top = 2.0
  296. offset_right = -2.0
  297. offset_bottom = -2.0
  298. grow_horizontal = 2
  299. grow_vertical = 2
  300. color = Color(0.203922, 0.203922, 0.203922, 1)
  301. script = ExtResource("2_ynf0r")
  302.  
  303. [node name="TileTexture" type="TextureRect" parent="VSplitContainer/PanelBottom/BottomBg"]
  304. layout_mode = 1
  305. anchors_preset = 8
  306. anchor_left = 0.5
  307. anchor_top = 0.5
  308. anchor_right = 0.5
  309. anchor_bottom = 0.5
  310. grow_horizontal = 2
  311. grow_vertical = 2
  312. scale = Vector2(2, 2)
  313. mouse_filter = 2
  314.  
  315. [node name="CellRoot" type="Control" parent="VSplitContainer/PanelBottom/BottomBg/TileTexture"]
  316. anchors_preset = 0
  317. offset_right = 1.0
  318. offset_bottom = 1.0
  319. mouse_filter = 2
  320.  
  321. [node name="BottomCell" type="ColorRect" parent="VSplitContainer/PanelBottom/BottomBg/TileTexture/CellRoot"]
  322. layout_mode = 0
  323. offset_right = 16.0
  324. offset_bottom = 16.0
  325. mouse_filter = 2
  326. color = Color(0, 0, 0, 0.588235)
  327.  
  328. [node name="MaskBrush" type="Control" parent="VSplitContainer/PanelBottom/BottomBg/TileTexture"]
  329. layout_mode = 1
  330. anchors_preset = 15
  331. anchor_right = 1.0
  332. anchor_bottom = 1.0
  333. grow_horizontal = 2
  334. grow_vertical = 2
  335. mouse_filter = 2
  336. script = ExtResource("3_gydh0")
  337.  
  338. [node name="Grid" type="ColorRect" parent="VSplitContainer/PanelBottom/BottomBg"]
  339. layout_mode = 1
  340. anchors_preset = 15
  341. anchor_right = 1.0
  342. anchor_bottom = 1.0
  343. grow_horizontal = 2
  344. grow_vertical = 2
  345. mouse_filter = 2
  346. color = Color(1, 1, 1, 0)
  347.  
  348. [node name="FocusBtn" type="TextureButton" parent="VSplitContainer/PanelBottom/BottomBg"]
  349. layout_mode = 1
  350. anchors_preset = 1
  351. anchor_left = 1.0
  352. anchor_right = 1.0
  353. offset_left = -79.0
  354. offset_top = 14.0
  355. offset_right = -15.0
  356. offset_bottom = 78.0
  357. grow_horizontal = 0
  358. tooltip_text = "聚焦"
  359. texture_normal = ExtResource("5_08bc4")
  360. ignore_texture_size = true
  361. stretch_mode = 5
  362.  
  363. [node name="DragSprite" type="Sprite2D" parent="."]
  364. z_index = 10
  365. region_enabled = true