Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / TileSetEditorTerrain.tscn
@小李xl 小李xl on 23 Dec 2023 6 KB 编辑TileSet地形, 制作中
  1. [gd_scene load_steps=11 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="Script" path="res://src/game/ui/tileSetEditorTerrain/left/TileEditArea.cs" id="2_ynf0r"]
  5. [ext_resource type="Script" path="res://src/game/common/ui/EditorMaskBrush.cs" id="3_gydh0"]
  6. [ext_resource type="Script" path="res://src/game/ui/tileSetEditorTerrain/left/TerrainCellDragHandler.cs" id="3_ssd86"]
  7. [ext_resource type="Script" path="res://src/game/ui/tileSetEditorTerrain/right/TileEditTerrain.cs" id="5_0x7yx"]
  8. [ext_resource type="Texture2D" uid="uid://d2wslibovwv7w" path="res://resource/sprite/ui/commonIcon/CenterTool.png" id="5_08bc4"]
  9. [ext_resource type="Texture2D" uid="uid://18dira1me63t" path="res://resource/sprite/map/PreviewMap.png" id="5_m0oxr"]
  10. [ext_resource type="Texture2D" uid="uid://bqdrgtiyilkma" path="res://resource/sprite/map/PreviewMapShadow.png" id="7_68ntx"]
  11. [ext_resource type="Script" path="res://src/game/ui/tileSetEditorTerrain/right/TerrainBrush.cs" id="7_lmu64"]
  12. [ext_resource type="Script" path="res://src/game/ui/tileSetEditorTerrain/right/TerrainCellDropHandler.cs" id="8_7xxcq"]
  13.  
  14. [node name="TileSetEditorTerrain" 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_6jjk7")
  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="LeftBottom" type="Panel" parent="HSplitContainer"]
  33. layout_mode = 2
  34. size_flags_horizontal = 3
  35. size_flags_vertical = 3
  36. size_flags_stretch_ratio = 50.0
  37.  
  38. [node name="MarginContainer" type="MarginContainer" parent="HSplitContainer/LeftBottom"]
  39. layout_mode = 1
  40. anchors_preset = 15
  41. anchor_right = 1.0
  42. anchor_bottom = 1.0
  43. grow_horizontal = 2
  44. grow_vertical = 2
  45. theme_override_constants/margin_left = 2
  46. theme_override_constants/margin_top = 2
  47. theme_override_constants/margin_right = 2
  48. theme_override_constants/margin_bottom = 2
  49.  
  50. [node name="LeftBg" type="ColorRect" parent="HSplitContainer/LeftBottom/MarginContainer"]
  51. clip_children = 2
  52. z_index = 1
  53. layout_mode = 2
  54. color = Color(0.203922, 0.203922, 0.203922, 1)
  55. script = ExtResource("2_ynf0r")
  56.  
  57. [node name="TileTexture" type="TextureRect" parent="HSplitContainer/LeftBottom/MarginContainer/LeftBg"]
  58. layout_mode = 1
  59. anchors_preset = 8
  60. anchor_left = 0.5
  61. anchor_top = 0.5
  62. anchor_right = 0.5
  63. anchor_bottom = 0.5
  64. grow_horizontal = 2
  65. grow_vertical = 2
  66. scale = Vector2(2, 2)
  67. mouse_filter = 2
  68.  
  69. [node name="CellRoot" type="Control" parent="HSplitContainer/LeftBottom/MarginContainer/LeftBg/TileTexture"]
  70. anchors_preset = 0
  71. offset_right = 1.0
  72. offset_bottom = 1.0
  73. mouse_filter = 2
  74.  
  75. [node name="LeftCell" type="TextureButton" parent="HSplitContainer/LeftBottom/MarginContainer/LeftBg/TileTexture/CellRoot"]
  76. layout_mode = 0
  77. offset_right = 16.0
  78. offset_bottom = 16.0
  79. mouse_filter = 1
  80. script = ExtResource("3_ssd86")
  81.  
  82. [node name="MaskBrush" type="Control" parent="HSplitContainer/LeftBottom/MarginContainer/LeftBg/TileTexture"]
  83. layout_mode = 1
  84. anchors_preset = 15
  85. anchor_right = 1.0
  86. anchor_bottom = 1.0
  87. grow_horizontal = 2
  88. grow_vertical = 2
  89. mouse_filter = 2
  90. script = ExtResource("3_gydh0")
  91.  
  92. [node name="Grid" type="ColorRect" parent="HSplitContainer/LeftBottom/MarginContainer/LeftBg"]
  93. layout_mode = 1
  94. anchors_preset = 15
  95. anchor_right = 1.0
  96. anchor_bottom = 1.0
  97. grow_horizontal = 2
  98. grow_vertical = 2
  99. mouse_filter = 2
  100. color = Color(1, 1, 1, 0)
  101.  
  102. [node name="FocusBtn" type="TextureButton" parent="HSplitContainer/LeftBottom/MarginContainer/LeftBg"]
  103. layout_mode = 1
  104. anchors_preset = 1
  105. anchor_left = 1.0
  106. anchor_right = 1.0
  107. offset_left = -79.0
  108. offset_top = 14.0
  109. offset_right = -15.0
  110. offset_bottom = 78.0
  111. grow_horizontal = 0
  112. tooltip_text = "聚焦"
  113. texture_normal = ExtResource("5_08bc4")
  114. ignore_texture_size = true
  115. stretch_mode = 5
  116.  
  117. [node name="LeftBottom2" type="Panel" parent="HSplitContainer"]
  118. layout_mode = 2
  119. size_flags_horizontal = 3
  120. size_flags_vertical = 3
  121. size_flags_stretch_ratio = 50.0
  122.  
  123. [node name="MarginContainer" type="MarginContainer" parent="HSplitContainer/LeftBottom2"]
  124. layout_mode = 1
  125. anchors_preset = 15
  126. anchor_right = 1.0
  127. anchor_bottom = 1.0
  128. grow_horizontal = 2
  129. grow_vertical = 2
  130. theme_override_constants/margin_left = 2
  131. theme_override_constants/margin_top = 2
  132. theme_override_constants/margin_right = 2
  133. theme_override_constants/margin_bottom = 2
  134.  
  135. [node name="LeftBottomBg" type="ColorRect" parent="HSplitContainer/LeftBottom2/MarginContainer"]
  136. clip_children = 2
  137. z_index = 1
  138. layout_mode = 2
  139. color = Color(0.496094, 0.496094, 0.496094, 1)
  140. script = ExtResource("5_0x7yx")
  141.  
  142. [node name="TileTexture" type="TextureRect" parent="HSplitContainer/LeftBottom2/MarginContainer/LeftBottomBg"]
  143. self_modulate = Color(1, 1, 1, 0.470588)
  144. layout_mode = 1
  145. anchors_preset = 8
  146. anchor_left = 0.5
  147. anchor_top = 0.5
  148. anchor_right = 0.5
  149. anchor_bottom = 0.5
  150. offset_left = -237.0
  151. offset_top = -270.0
  152. offset_right = -77.0
  153. offset_bottom = -94.0
  154. grow_horizontal = 2
  155. grow_vertical = 2
  156. scale = Vector2(3, 3)
  157. mouse_filter = 2
  158. texture = ExtResource("5_m0oxr")
  159. stretch_mode = 2
  160.  
  161. [node name="TileShadow" type="TextureRect" parent="HSplitContainer/LeftBottom2/MarginContainer/LeftBottomBg/TileTexture"]
  162. modulate = Color(0.498039, 0.498039, 0.498039, 1)
  163. layout_mode = 1
  164. anchors_preset = 15
  165. anchor_right = 1.0
  166. anchor_bottom = 1.0
  167. grow_horizontal = 2
  168. grow_vertical = 2
  169. mouse_filter = 2
  170. texture = ExtResource("7_68ntx")
  171. stretch_mode = 2
  172.  
  173. [node name="CellRoot" type="Control" parent="HSplitContainer/LeftBottom2/MarginContainer/LeftBottomBg/TileTexture"]
  174. layout_mode = 3
  175. anchors_preset = 0
  176. offset_right = 1.0
  177. offset_bottom = 1.0
  178. mouse_filter = 2
  179.  
  180. [node name="RightCell" type="Control" parent="HSplitContainer/LeftBottom2/MarginContainer/LeftBottomBg/TileTexture/CellRoot"]
  181. anchors_preset = 0
  182. offset_right = 16.0
  183. offset_bottom = 16.0
  184. mouse_filter = 1
  185. script = ExtResource("8_7xxcq")
  186.  
  187. [node name="CellTexture" type="Sprite2D" parent="HSplitContainer/LeftBottom2/MarginContainer/LeftBottomBg/TileTexture/CellRoot/RightCell"]
  188. centered = false
  189.  
  190. [node name="Brush" type="Control" parent="HSplitContainer/LeftBottom2/MarginContainer/LeftBottomBg/TileTexture"]
  191. layout_mode = 1
  192. anchors_preset = 0
  193. offset_right = 1.0
  194. offset_bottom = 1.0
  195. script = ExtResource("7_lmu64")
  196.  
  197. [node name="Grid" type="ColorRect" parent="HSplitContainer/LeftBottom2/MarginContainer/LeftBottomBg"]
  198. layout_mode = 1
  199. anchors_preset = 15
  200. anchor_right = 1.0
  201. anchor_bottom = 1.0
  202. grow_horizontal = 2
  203. grow_vertical = 2
  204. mouse_filter = 2
  205. color = Color(1, 1, 1, 0)
  206.  
  207. [node name="FocusBtn" type="TextureButton" parent="HSplitContainer/LeftBottom2/MarginContainer/LeftBottomBg"]
  208. layout_mode = 1
  209. anchors_preset = 1
  210. anchor_left = 1.0
  211. anchor_right = 1.0
  212. offset_left = -79.0
  213. offset_top = 14.0
  214. offset_right = -15.0
  215. offset_bottom = 78.0
  216. grow_horizontal = 0
  217. tooltip_text = "聚焦"
  218. texture_normal = ExtResource("5_08bc4")
  219. ignore_texture_size = true
  220. stretch_mode = 5